|
@@ -145,190 +145,138 @@ public class CustomPlanServiceImpl implements CustomPlanService {
|
|
|
planService.save(customPlan);
|
|
|
|
|
|
|
|
|
- List<Long> idList = new ArrayList<>();
|
|
|
- if (StringUtil.isNotEmpty(customPlan.getUserIds())){
|
|
|
- Arrays.asList(customPlan.getUserIds().split(",")).forEach(k -> {
|
|
|
- idList.add(Long.parseLong(k));
|
|
|
- });
|
|
|
- }
|
|
|
- else{
|
|
|
- idList.add(userId);
|
|
|
+ int childPlanNums = 1;
|
|
|
+ if (customPlan.getPeriodId() != 1) {
|
|
|
+ PlanPeriodType planPeriodType = planPeriodTypeService.getOne(Wrappers.<PlanPeriodType>lambdaQuery().eq(PlanPeriodType::getId, customPlan.getPeriodId()));
|
|
|
+ IntervalDays = planPeriodType.getIntervalDays().intValue();
|
|
|
+ childPlanNums = (getTimeDistance(customPlan.getPlanBegindate(), customPlan.getPlanEnddate()) + 1) / IntervalDays;
|
|
|
+ } else {
|
|
|
+ IntervalDays = getTimeDistance(customPlan.getPlanBegindate(), customPlan.getPlanEnddate()) + 1;
|
|
|
}
|
|
|
-
|
|
|
- for (Long userIdNew : idList) {
|
|
|
-
|
|
|
-
|
|
|
- int childPlanNums = 1;
|
|
|
- if (customPlan.getPeriodId() != 1) {
|
|
|
- PlanPeriodType planPeriodType = planPeriodTypeService.getOne(Wrappers.<PlanPeriodType>lambdaQuery().eq(PlanPeriodType::getId, customPlan.getPeriodId()));
|
|
|
- IntervalDays = planPeriodType.getIntervalDays().intValue();
|
|
|
- childPlanNums = (getTimeDistance(customPlan.getPlanBegindate(), customPlan.getPlanEnddate()) + 1) / IntervalDays;
|
|
|
- } else {
|
|
|
- IntervalDays = getTimeDistance(customPlan.getPlanBegindate(), customPlan.getPlanEnddate()) + 1;
|
|
|
- }
|
|
|
- Date beginDate = customPlan.getPlanBegindate();
|
|
|
- Calendar cal = Calendar.getInstance();
|
|
|
- Date now = cal.getTime();
|
|
|
- cal.setTime(beginDate);
|
|
|
-
|
|
|
- tf_plan_point_tempId = Math.max(tf_plan_point_tempId, customPlanMapper.getPlanTempMaxId("TF_PLAN_POINT_TEMP"));
|
|
|
- tf_plan_path_tempId = Math.max(tf_plan_path_tempId, customPlanMapper.getPlanTempMaxId("TF_PLAN_PATH_TEMP"));
|
|
|
- List<PlanPointTemp> pointTempList = new ArrayList<>();
|
|
|
- List<TfPlanPathTemp> pathTempList = new ArrayList<>();
|
|
|
-
|
|
|
- for (int i = 1; i <= childPlanNums; i++) {
|
|
|
- PlanChild planChild = new PlanChild();
|
|
|
- int pointNum = 0;
|
|
|
- cal.set(Calendar.HOUR_OF_DAY, 0);
|
|
|
- cal.set(Calendar.MINUTE, 0);
|
|
|
- cal.set(Calendar.SECOND, 0);
|
|
|
- planChild.setChildBeginDate(cal.getTime());
|
|
|
- cal.add(Calendar.DATE, IntervalDays - 1);
|
|
|
- cal.set(Calendar.HOUR_OF_DAY, 23);
|
|
|
- cal.set(Calendar.MINUTE, 59);
|
|
|
- cal.set(Calendar.SECOND, 59);
|
|
|
- planChild.setChildEndDate(cal.getTime());
|
|
|
- planChild.setChildPlanState("1");
|
|
|
- planChild.setMainPlanId(customPlan.getId());
|
|
|
- planChild.setChildNum(new BigDecimal(i));
|
|
|
- planChild.setPeriodId(customPlan.getPeriodId());
|
|
|
- planChild.setDeviceTypeId(customPlan.getDeviceTypeId());
|
|
|
- planChild.setLastTime(now);
|
|
|
- planChild.setRegionId(customPlan.getRegionId());
|
|
|
- planChild.setUserId(userIdNew);
|
|
|
- planChild.setPlanRate(customPlan.getPlanRate());
|
|
|
- planChild.setCompanyId(customPlan.getCompanyId());
|
|
|
- planChild.setDeptId(deptId);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- cal.add(Calendar.DATE, 1);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- if (type.equals("0")) {
|
|
|
- planChild.setPointNum(Long.valueOf(geo.size()));
|
|
|
- planChildService.save(planChild);
|
|
|
- for (int j = 0; j < geo.size(); j++) {
|
|
|
- PlanPointTemp planPointTemp = new PlanPointTemp();
|
|
|
+ Date beginDate = customPlan.getPlanBegindate();
|
|
|
+ Calendar cal = Calendar.getInstance();
|
|
|
+ Date now = cal.getTime();
|
|
|
+ cal.setTime(beginDate);
|
|
|
+
|
|
|
+ tf_plan_point_tempId = Math.max(tf_plan_point_tempId, customPlanMapper.getPlanTempMaxId("TF_PLAN_POINT_TEMP"));
|
|
|
+ tf_plan_path_tempId = Math.max(tf_plan_path_tempId, customPlanMapper.getPlanTempMaxId("TF_PLAN_PATH_TEMP"));
|
|
|
+ List<PlanPointTemp> pointTempList = new ArrayList<>();
|
|
|
+ List<TfPlanPathTemp> pathTempList = new ArrayList<>();
|
|
|
+
|
|
|
+ for (int i = 1; i <= childPlanNums; i++) {
|
|
|
+ PlanChild planChild = new PlanChild();
|
|
|
+ int pointNum = 0;
|
|
|
+ cal.set(Calendar.HOUR_OF_DAY, 0);
|
|
|
+ cal.set(Calendar.MINUTE, 0);
|
|
|
+ cal.set(Calendar.SECOND, 0);
|
|
|
+ planChild.setChildBeginDate(cal.getTime());
|
|
|
+ cal.add(Calendar.DATE, IntervalDays - 1);
|
|
|
+ cal.set(Calendar.HOUR_OF_DAY, 23);
|
|
|
+ cal.set(Calendar.MINUTE, 59);
|
|
|
+ cal.set(Calendar.SECOND, 59);
|
|
|
+ planChild.setChildEndDate(cal.getTime());
|
|
|
+ planChild.setChildPlanState("1");
|
|
|
+ planChild.setMainPlanId(customPlan.getId());
|
|
|
+ planChild.setChildNum(new BigDecimal(i));
|
|
|
+ planChild.setPeriodId(customPlan.getPeriodId());
|
|
|
+ planChild.setDeviceTypeId(customPlan.getDeviceTypeId());
|
|
|
+ planChild.setLastTime(now);
|
|
|
+ planChild.setRegionId(customPlan.getRegionId());
|
|
|
+ planChild.setUserId(userId);
|
|
|
+ planChild.setPlanRate(customPlan.getPlanRate());
|
|
|
+ planChild.setCompanyId(customPlan.getCompanyId());
|
|
|
+ planChild.setDeptId(deptId);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ cal.add(Calendar.DATE, 1);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if (type.equals("0")) {
|
|
|
+ planChild.setPointNum(Long.valueOf(geo.size()));
|
|
|
+ planChildService.save(planChild);
|
|
|
+ for (int j = 0; j < geo.size(); j++) {
|
|
|
+ PlanPointTemp planPointTemp = new PlanPointTemp();
|
|
|
+ planPointTemp.setPlanId(customPlan.getId());
|
|
|
+ planPointTemp.setPeriodId(customPlan.getPeriodId());
|
|
|
+ planPointTemp.setUserId(userId);
|
|
|
+ planPointTemp.setCompanyId(companyId);
|
|
|
+ planPointTemp.setIsover("0");
|
|
|
+ planPointTemp.setChildPlanId(planChild.getId());
|
|
|
+ planPointTemp.setRegionId(customPlan.getRegionId());
|
|
|
+ planPointTemp.setDeviceTypeId(customPlan.getDeviceTypeId());
|
|
|
+ if (gisUrl == null) {
|
|
|
+ planPointTemp.setPointId(geo.getJSONObject(j).getLong("sid"));
|
|
|
+ planPointTemp.setGeometry(geo.getJSONObject(j).getString("geometry"));
|
|
|
+ planPointTemp.setContent(geo.getJSONObject(j).getString("content"));
|
|
|
+ planPointTemp.setName(geo.getJSONObject(j).getString("name"));
|
|
|
+ planPointTemp.setAddress(geo.getJSONObject(j).getString("address"));
|
|
|
+ planPointTemp.setCode(geo.getJSONObject(j).getString("code"));
|
|
|
+ planPointTemp.setLat(geo.getJSONObject(j).getJSONObject("geometry").getBigDecimal("y"));
|
|
|
+ planPointTemp.setLng(geo.getJSONObject(j).getJSONObject("geometry").getBigDecimal("x"));
|
|
|
+ planPointTemp.setPipeLength("0");
|
|
|
+ } else {
|
|
|
planPointTemp.setPlanId(customPlan.getId());
|
|
|
- planPointTemp.setPeriodId(customPlan.getPeriodId());
|
|
|
- planPointTemp.setUserId(userIdNew);
|
|
|
- planPointTemp.setCompanyId(companyId);
|
|
|
- planPointTemp.setIsover("0");
|
|
|
- planPointTemp.setChildPlanId(planChild.getId());
|
|
|
- planPointTemp.setRegionId(customPlan.getRegionId());
|
|
|
- planPointTemp.setDeviceTypeId(customPlan.getDeviceTypeId());
|
|
|
- if (gisUrl == null) {
|
|
|
- planPointTemp.setPointId(geo.getJSONObject(j).getLong("sid"));
|
|
|
- planPointTemp.setGeometry(geo.getJSONObject(j).getString("geometry"));
|
|
|
- planPointTemp.setContent(geo.getJSONObject(j).getString("content"));
|
|
|
- planPointTemp.setName(geo.getJSONObject(j).getString("name"));
|
|
|
- planPointTemp.setAddress(geo.getJSONObject(j).getString("address"));
|
|
|
- planPointTemp.setCode(geo.getJSONObject(j).getString("code"));
|
|
|
- planPointTemp.setLat(geo.getJSONObject(j).getJSONObject("geometry").getBigDecimal("y"));
|
|
|
- planPointTemp.setLng(geo.getJSONObject(j).getJSONObject("geometry").getBigDecimal("x"));
|
|
|
- planPointTemp.setPipeLength("0");
|
|
|
- } else {
|
|
|
- planPointTemp.setPlanId(customPlan.getId());
|
|
|
- planPointTemp.setPointId(geo.getJSONObject(j).getJSONObject("attributes").getLong("OBJECTID"));
|
|
|
- planPointTemp.setGeometry(geo.getJSONObject(j).getString("geometry"));
|
|
|
- planPointTemp.setLat(geo.getJSONObject(j).getJSONObject("geometry").getBigDecimal("y"));
|
|
|
- planPointTemp.setLng(geo.getJSONObject(j).getJSONObject("geometry").getBigDecimal("x"));
|
|
|
- planPointTemp.setPipeLength("0");
|
|
|
- }
|
|
|
-
|
|
|
- planPointTemp.setId(tf_plan_point_tempId);
|
|
|
- pointTempList.add(planPointTemp);
|
|
|
- tf_plan_point_tempId++;
|
|
|
-
|
|
|
+ planPointTemp.setPointId(geo.getJSONObject(j).getJSONObject("attributes").getLong("OBJECTID"));
|
|
|
+ planPointTemp.setGeometry(geo.getJSONObject(j).getString("geometry"));
|
|
|
+ planPointTemp.setLat(geo.getJSONObject(j).getJSONObject("geometry").getBigDecimal("y"));
|
|
|
+ planPointTemp.setLng(geo.getJSONObject(j).getJSONObject("geometry").getBigDecimal("x"));
|
|
|
+ planPointTemp.setPipeLength("0");
|
|
|
}
|
|
|
+
|
|
|
+ planPointTemp.setId(tf_plan_point_tempId);
|
|
|
+ pointTempList.add(planPointTemp);
|
|
|
+ tf_plan_point_tempId++;
|
|
|
+
|
|
|
}
|
|
|
-
|
|
|
- else {
|
|
|
- planChildService.save(planChild);
|
|
|
- BigDecimal pipeLengthTotal = BigDecimal.ZERO;
|
|
|
- for (int j = 0; j < geo.size(); j++) {
|
|
|
- JSONArray paths;
|
|
|
-
|
|
|
- if (gisUrl == null) {
|
|
|
+ }
|
|
|
+
|
|
|
+ else {
|
|
|
+ planChildService.save(planChild);
|
|
|
+ BigDecimal pipeLengthTotal = BigDecimal.ZERO;
|
|
|
+ for (int j = 0; j < geo.size(); j++) {
|
|
|
+ JSONArray paths;
|
|
|
+
|
|
|
+ if (gisUrl == null) {
|
|
|
|
|
|
- JSONArray pipe;
|
|
|
- pipe = geo.getJSONObject(j).getJSONArray("pipe");
|
|
|
-
|
|
|
- for (int w = 0; w < pipe.size(); w++) {
|
|
|
- PlanPointTemp planPointTemp = new PlanPointTemp();
|
|
|
- planPointTemp.setPlanId(customPlan.getId());
|
|
|
- planPointTemp.setPeriodId(customPlan.getPeriodId());
|
|
|
- planPointTemp.setRegionId(customPlan.getRegionId());
|
|
|
- planPointTemp.setDeviceTypeId(customPlan.getDeviceTypeId());
|
|
|
- planPointTemp.setChildPlanId(planChild.getId());
|
|
|
- planPointTemp.setUserId(userIdNew);
|
|
|
- planPointTemp.setCompanyId(companyId);
|
|
|
- planPointTemp.setIsover("0");
|
|
|
-
|
|
|
- planPointTemp.setPointId(geo.getJSONObject(j).getLong("sid"));
|
|
|
- planPointTemp.setGeometry(pipe.getJSONObject(w).getString("geometry"));
|
|
|
- planPointTemp.setContent(geo.getJSONObject(j).getString("content"));
|
|
|
- planPointTemp.setName(geo.getJSONObject(j).getString("name"));
|
|
|
- planPointTemp.setAddress(geo.getJSONObject(j).getString("address"));
|
|
|
- planPointTemp.setCode(geo.getJSONObject(j).getString("code"));
|
|
|
-
|
|
|
- planPointTemp.setPipeLength(pipe.getJSONObject(w).getString("length"));
|
|
|
- pipeLengthTotal = pipeLengthTotal.add(new BigDecimal(pipe.getJSONObject(w).getString("length")));
|
|
|
- planPointTemp.setId(tf_plan_point_tempId);
|
|
|
- pointTempList.add(planPointTemp);
|
|
|
- tf_plan_point_tempId++;
|
|
|
-
|
|
|
-
|
|
|
- paths = pipe.getJSONObject(w).getJSONObject("geometry").getJSONArray("paths").getJSONArray(0);
|
|
|
- for (int e = 0; e < paths.size(); e++) {
|
|
|
- TfPlanPathTemp tfPlanPathTemp = new TfPlanPathTemp();
|
|
|
- tfPlanPathTemp.setTempId(planPointTemp.getId());
|
|
|
- tfPlanPathTemp.setPointId(planPointTemp.getPointId());
|
|
|
- tfPlanPathTemp.setLat(new BigDecimal(paths.getJSONArray(e).get(1).toString()));
|
|
|
- tfPlanPathTemp.setLng(new BigDecimal(paths.getJSONArray(e).get(0).toString()));
|
|
|
- tfPlanPathTemp.setIsover(new BigDecimal(0));
|
|
|
- tfPlanPathTemp.setNum(new BigDecimal(e + 1));
|
|
|
- tfPlanPathTemp.setChildPlanId(planChild.getId());
|
|
|
-
|
|
|
- tfPlanPathTemp.setId(tf_plan_path_tempId);
|
|
|
- pathTempList.add(tfPlanPathTemp);
|
|
|
- tf_plan_path_tempId++;
|
|
|
- pointNum++;
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
+ JSONArray pipe;
|
|
|
+ pipe = geo.getJSONObject(j).getJSONArray("pipe");
|
|
|
+
|
|
|
+ for (int w = 0; w < pipe.size(); w++) {
|
|
|
PlanPointTemp planPointTemp = new PlanPointTemp();
|
|
|
planPointTemp.setPlanId(customPlan.getId());
|
|
|
planPointTemp.setPeriodId(customPlan.getPeriodId());
|
|
|
planPointTemp.setRegionId(customPlan.getRegionId());
|
|
|
planPointTemp.setDeviceTypeId(customPlan.getDeviceTypeId());
|
|
|
planPointTemp.setChildPlanId(planChild.getId());
|
|
|
- planPointTemp.setUserId(userIdNew);
|
|
|
+ planPointTemp.setUserId(userId);
|
|
|
planPointTemp.setCompanyId(companyId);
|
|
|
planPointTemp.setIsover("0");
|
|
|
|
|
|
- planPointTemp.setPointId(geo.getJSONObject(j).getJSONObject("attributes").getLong("OBJECTID"));
|
|
|
- planPointTemp.setGeometry(geo.getJSONObject(j).getString("geometry"));
|
|
|
- planPointTemp.setPipeLength(geo.getJSONObject(j).getJSONObject("attributes").getString("PIPELENGTH"));
|
|
|
- if (geo.getJSONObject(j).getJSONObject("attributes").getString("PIPELENGTH") != null) {
|
|
|
- pipeLengthTotal = pipeLengthTotal.add(new BigDecimal(geo.getJSONObject(j).getJSONObject("attributes").getString("PIPELENGTH")));
|
|
|
- }
|
|
|
- paths = geo.getJSONObject(j).getJSONObject("geometry").getJSONArray("paths").getJSONArray(0);
|
|
|
+ planPointTemp.setPointId(geo.getJSONObject(j).getLong("sid"));
|
|
|
+ planPointTemp.setGeometry(pipe.getJSONObject(w).getString("geometry"));
|
|
|
+ planPointTemp.setContent(geo.getJSONObject(j).getString("content"));
|
|
|
+ planPointTemp.setName(geo.getJSONObject(j).getString("name"));
|
|
|
+ planPointTemp.setAddress(geo.getJSONObject(j).getString("address"));
|
|
|
+ planPointTemp.setCode(geo.getJSONObject(j).getString("code"));
|
|
|
+
|
|
|
+ planPointTemp.setPipeLength(pipe.getJSONObject(w).getString("length"));
|
|
|
+ pipeLengthTotal = pipeLengthTotal.add(new BigDecimal(pipe.getJSONObject(w).getString("length")));
|
|
|
planPointTemp.setId(tf_plan_point_tempId);
|
|
|
pointTempList.add(planPointTemp);
|
|
|
tf_plan_point_tempId++;
|
|
|
|
|
|
-
|
|
|
- for (int k = 0; k < paths.size(); k++) {
|
|
|
+
|
|
|
+ paths = pipe.getJSONObject(w).getJSONObject("geometry").getJSONArray("paths").getJSONArray(0);
|
|
|
+ for (int e = 0; e < paths.size(); e++) {
|
|
|
TfPlanPathTemp tfPlanPathTemp = new TfPlanPathTemp();
|
|
|
tfPlanPathTemp.setTempId(planPointTemp.getId());
|
|
|
tfPlanPathTemp.setPointId(planPointTemp.getPointId());
|
|
|
- tfPlanPathTemp.setLat(new BigDecimal(paths.getJSONArray(k).get(1).toString()));
|
|
|
- tfPlanPathTemp.setLng(new BigDecimal(paths.getJSONArray(k).get(0).toString()));
|
|
|
+ tfPlanPathTemp.setLat(new BigDecimal(paths.getJSONArray(e).get(1).toString()));
|
|
|
+ tfPlanPathTemp.setLng(new BigDecimal(paths.getJSONArray(e).get(0).toString()));
|
|
|
tfPlanPathTemp.setIsover(new BigDecimal(0));
|
|
|
- tfPlanPathTemp.setNum(new BigDecimal(k + 1));
|
|
|
+ tfPlanPathTemp.setNum(new BigDecimal(e + 1));
|
|
|
tfPlanPathTemp.setChildPlanId(planChild.getId());
|
|
|
|
|
|
tfPlanPathTemp.setId(tf_plan_path_tempId);
|
|
@@ -337,7 +285,46 @@ public class CustomPlanServiceImpl implements CustomPlanService {
|
|
|
pointNum++;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ } else {
|
|
|
+ PlanPointTemp planPointTemp = new PlanPointTemp();
|
|
|
+ planPointTemp.setPlanId(customPlan.getId());
|
|
|
+ planPointTemp.setPeriodId(customPlan.getPeriodId());
|
|
|
+ planPointTemp.setRegionId(customPlan.getRegionId());
|
|
|
+ planPointTemp.setDeviceTypeId(customPlan.getDeviceTypeId());
|
|
|
+ planPointTemp.setChildPlanId(planChild.getId());
|
|
|
+ planPointTemp.setUserId(userId);
|
|
|
+ planPointTemp.setCompanyId(companyId);
|
|
|
+ planPointTemp.setIsover("0");
|
|
|
+
|
|
|
+ planPointTemp.setPointId(geo.getJSONObject(j).getJSONObject("attributes").getLong("OBJECTID"));
|
|
|
+ planPointTemp.setGeometry(geo.getJSONObject(j).getString("geometry"));
|
|
|
+ planPointTemp.setPipeLength(geo.getJSONObject(j).getJSONObject("attributes").getString("PIPELENGTH"));
|
|
|
+ if (geo.getJSONObject(j).getJSONObject("attributes").getString("PIPELENGTH") != null) {
|
|
|
+ pipeLengthTotal = pipeLengthTotal.add(new BigDecimal(geo.getJSONObject(j).getJSONObject("attributes").getString("PIPELENGTH")));
|
|
|
+ }
|
|
|
+ paths = geo.getJSONObject(j).getJSONObject("geometry").getJSONArray("paths").getJSONArray(0);
|
|
|
+ planPointTemp.setId(tf_plan_point_tempId);
|
|
|
+ pointTempList.add(planPointTemp);
|
|
|
+ tf_plan_point_tempId++;
|
|
|
+
|
|
|
+
|
|
|
+ for (int k = 0; k < paths.size(); k++) {
|
|
|
+ TfPlanPathTemp tfPlanPathTemp = new TfPlanPathTemp();
|
|
|
+ tfPlanPathTemp.setTempId(planPointTemp.getId());
|
|
|
+ tfPlanPathTemp.setPointId(planPointTemp.getPointId());
|
|
|
+ tfPlanPathTemp.setLat(new BigDecimal(paths.getJSONArray(k).get(1).toString()));
|
|
|
+ tfPlanPathTemp.setLng(new BigDecimal(paths.getJSONArray(k).get(0).toString()));
|
|
|
+ tfPlanPathTemp.setIsover(new BigDecimal(0));
|
|
|
+ tfPlanPathTemp.setNum(new BigDecimal(k + 1));
|
|
|
+ tfPlanPathTemp.setChildPlanId(planChild.getId());
|
|
|
+
|
|
|
+ tfPlanPathTemp.setId(tf_plan_path_tempId);
|
|
|
+ pathTempList.add(tfPlanPathTemp);
|
|
|
+ tf_plan_path_tempId++;
|
|
|
+ pointNum++;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -359,20 +346,19 @@ public class CustomPlanServiceImpl implements CustomPlanService {
|
|
|
|
|
|
|
|
|
|
|
|
- }
|
|
|
-
|
|
|
- planChildService.update(Wrappers.<PlanChild>lambdaUpdate()
|
|
|
- .eq(PlanChild::getId, planChild.getId())
|
|
|
- .set(PlanChild::getPointNum, pointNum)
|
|
|
- .set(PlanChild::getTotal, pipeLengthTotal));
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ planChildService.update(Wrappers.<PlanChild>lambdaUpdate()
|
|
|
+ .eq(PlanChild::getId, planChild.getId())
|
|
|
+ .set(PlanChild::getPointNum, pointNum)
|
|
|
+ .set(PlanChild::getTotal, pipeLengthTotal));
|
|
|
}
|
|
|
-
|
|
|
- uploadPlanState();
|
|
|
|
|
|
+ }
|
|
|
+
|
|
|
+ uploadPlanState();
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -380,8 +366,7 @@ public class CustomPlanServiceImpl implements CustomPlanService {
|
|
|
|
|
|
|
|
|
|
|
|
- handler(pointTempList, pathTempList);
|
|
|
- }
|
|
|
+ handler(pointTempList, pathTempList);
|
|
|
return true;
|
|
|
}
|
|
|
|