Browse Source

BUG修复 修改停泊点策略时不显示BUG

qinguocai 1 year ago
parent
commit
687bdde0d0

+ 2 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/BerthingServiceImpl.java

@@ -260,6 +260,8 @@ public class BerthingServiceImpl implements BerthingService {
                 berthingPointConfig.setIsDel(1);
                 berthingPointConfig.setIsDel(1);
                 berthingPointConfigMapper.update(berthingPointConfig);
                 berthingPointConfigMapper.update(berthingPointConfig);
                 berthingPointConfig.setStopId(0L);
                 berthingPointConfig.setStopId(0L);
+                berthingPointConfig.setIsDel(0);
+                berthingPoint.setCreateTime(new Date());
                 berthingPointConfig.setPositions(JSONUtil.toJsonStr(positions));
                 berthingPointConfig.setPositions(JSONUtil.toJsonStr(positions));
                 berthingPointConfig.setWlevel(berthingPointConfigDTO.getWlevel());
                 berthingPointConfig.setWlevel(berthingPointConfigDTO.getWlevel());
                 berthingPointConfig.setFactors(JSONUtil.toJsonStr(berthingPointConfigDTO.getFactors()));
                 berthingPointConfig.setFactors(JSONUtil.toJsonStr(berthingPointConfigDTO.getFactors()));