farm模块-基地

This commit is contained in:
顾君禹
2025-08-31 15:20:40 +08:00
parent 53b7c4a495
commit edbbc3abd3

View File

@@ -74,12 +74,6 @@ public class BaseInfoServiceImpl implements BaseInfoService {
String baseId = updateReqVO.getId(); String baseId = updateReqVO.getId();
// 校验存在 // 校验存在
validateBaseInfoExists(baseId); 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); BaseInfoDO updateObj = BeanUtils.toBean(updateReqVO, BaseInfoDO.class);
baseInfoMapper.updateById(updateObj); baseInfoMapper.updateById(updateObj);