|
@@ -220,6 +220,10 @@ public class BerthingServiceImpl implements BerthingService {
|
|
|
if(berthingPointConfigDTO.getPositions().size() != berthingPointConfigDTO.getFactors().size()){
|
|
|
throw new BaseException("修正系数与停泊点位长度不匹配");
|
|
|
}
|
|
|
+ BerthingPoint berthingPoint = berthingPointMapper.queryBySiteId(berthingPointConfigDTO.getSiteId());
|
|
|
+ if (berthingPoint == null) {
|
|
|
+ throw new BaseException("有效的断面数据未找到");
|
|
|
+ }
|
|
|
boolean res = false;
|
|
|
BerthingPointConfig berthingPointConfig = berthingPointConfigMapper.queryById(berthingPointConfigDTO.getStopId());
|
|
|
try {
|
|
@@ -243,7 +247,7 @@ public class BerthingServiceImpl implements BerthingService {
|
|
|
}
|
|
|
berthingPointConfig.setStopId(0L);
|
|
|
berthingPointConfig.setSiteId(siteInfo.getSiteId());
|
|
|
- berthingPointConfig.setBerthingId(0L);
|
|
|
+ berthingPointConfig.setBerthingId(berthingPoint.getBerthingId());
|
|
|
berthingPointConfig.setPositions(JSONUtil.toJsonStr(positions));
|
|
|
berthingPointConfig.setPlanid(berthingPointConfigDTO.getPlanid());
|
|
|
berthingPointConfig.setWlevel(berthingPointConfigDTO.getWlevel());
|