farm模块-企业图片互转,新增大屏接口
This commit is contained in:
@@ -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);
|
||||||
@@ -124,14 +124,15 @@ public class InputLibraryServiceImpl implements InputLibraryService {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
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);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user