farm模块-企业图片互转,新增大屏接口

This commit is contained in:
顾君禹
2025-08-26 21:49:24 +08:00
parent 9820d8d9ab
commit 5dc67fe5b5

View File

@@ -91,7 +91,7 @@ public class InputLibraryServiceImpl implements InputLibraryService {
// 投入品名称查重 // 投入品名称查重
InputLibraryDO aDo = inputLibraryMapper.selectOne("asset_name", updateReqVO.getAssetName()); InputLibraryDO aDo = inputLibraryMapper.selectOne("asset_name", updateReqVO.getAssetName());
if (ObjectUtils.isNotEmpty(aDo)) { if (ObjectUtils.isNotEmpty(aDo)) {
return ; return;
} }
// 更新 // 更新
InputLibraryDO updateObj = BeanUtils.toBean(updateReqVO, InputLibraryDO.class); InputLibraryDO updateObj = BeanUtils.toBean(updateReqVO, InputLibraryDO.class);
@@ -128,10 +128,11 @@ public class InputLibraryServiceImpl implements InputLibraryService {
public void deleteInputLibrary(String id) { public void deleteInputLibrary(String id) {
// 校验存在 // 校验存在
validateInputLibraryExists(id); validateInputLibraryExists(id);
// 删除
inputLibraryMapper.deleteById(id);
// 同步 // 同步
this.syncDeleteDict(id); this.syncDeleteDict(id);
// 删除
inputLibraryMapper.deleteById(id);
} }