farm模块-基地
This commit is contained in:
@@ -74,12 +74,6 @@ public class BaseInfoServiceImpl implements BaseInfoService {
|
||||
String baseId = updateReqVO.getId();
|
||||
// 校验存在
|
||||
validateBaseInfoExists(baseId);
|
||||
BaseInfoDO sourceBaseInfoDO = baseInfoMapper.selectById(baseId);
|
||||
BigDecimal oldArea = sourceBaseInfoDO.getArea();
|
||||
BigDecimal newArea = updateReqVO.getArea();
|
||||
if (oldArea.compareTo(newArea) == 0) {
|
||||
return ;
|
||||
}
|
||||
// 更新
|
||||
BaseInfoDO updateObj = BeanUtils.toBean(updateReqVO, BaseInfoDO.class);
|
||||
baseInfoMapper.updateById(updateObj);
|
||||
|
||||
Reference in New Issue
Block a user