|
@@ -44,7 +44,6 @@ public class CustomPointServiceImpl implements CustomPointService {
|
|
|
List<Long> childList = new ArrayList<>();
|
|
|
HashSet<Long> childIds = new HashSet();
|
|
|
|
|
|
- Log.warn("#############################1");
|
|
|
for (UpdatePoint u : updatePoints) {
|
|
|
if (u.getTempId() != null && u.getCheckTime() != null && u.getGpsSpeed() != null) {
|
|
|
if ("0".equals(u.getType())) {
|
|
@@ -53,7 +52,6 @@ public class CustomPointServiceImpl implements CustomPointService {
|
|
|
transfer.put("pointTempId", u.getTempId());
|
|
|
continue;
|
|
|
}
|
|
|
- Log.warn("#############################2");
|
|
|
planPointTempService.update(Wrappers.<PlanPointTemp>lambdaUpdate()
|
|
|
.set(PlanPointTemp::getIsover, "1")
|
|
|
.set(PlanPointTemp::getOverDate, u.getCheckTime())
|
|
@@ -69,7 +67,6 @@ public class CustomPointServiceImpl implements CustomPointService {
|
|
|
childList.add(u.getPlanChildId());
|
|
|
}
|
|
|
}
|
|
|
- Log.warn("#############################3");
|
|
|
planPathTempService.update(Wrappers.<TfPlanPathTemp>lambdaUpdate()
|
|
|
.set(TfPlanPathTemp::getIsover, "1")
|
|
|
.set(TfPlanPathTemp::getOverDate, u.getCheckTime())
|
|
@@ -77,21 +74,18 @@ public class CustomPointServiceImpl implements CustomPointService {
|
|
|
.eq(TfPlanPathTemp::getId, u.getTempId()));
|
|
|
|
|
|
Long pointTempId =planPathTempService.getById(u.getTempId()).getTempId();
|
|
|
- Log.warn("#############################4");
|
|
|
int isOverNum = planPathTempService.count(Wrappers.<TfPlanPathTemp>lambdaQuery().eq(TfPlanPathTemp::getTempId, pointTempId).eq(TfPlanPathTemp::getIsover, "1"));
|
|
|
int allNum = planPathTempService.count(Wrappers.<TfPlanPathTemp>lambdaQuery().eq(TfPlanPathTemp::getTempId, pointTempId));
|
|
|
- Log.warn("#############################5");
|
|
|
double pathOver = new BigDecimal((float) isOverNum / allNum).setScale(4, BigDecimal.ROUND_HALF_UP).doubleValue();
|
|
|
- Log.warn("#############################6");
|
|
|
PlanPointTemp one = new PlanPointTemp();
|
|
|
one.setId(pointTempId);
|
|
|
one.setPathIsover(new BigDecimal(pathOver));
|
|
|
planPointTempService.updateById(one);
|
|
|
- Log.warn("#############################7");
|
|
|
}
|
|
|
}
|
|
|
childIds.add(u.getPlanChildId());
|
|
|
}
|
|
|
+ Log.warn("#############################1");
|
|
|
|
|
|
ExecutorService executorService = Executors.newSingleThreadExecutor();
|
|
|
executorService.execute(new Runnable() {
|
|
@@ -113,13 +107,14 @@ public class CustomPointServiceImpl implements CustomPointService {
|
|
|
|
|
|
|
|
|
|
|
|
+ Log.warn("#############################3");
|
|
|
return transfer;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public void percentUpdate(String childPlanIds) {
|
|
|
List<String> list = Arrays.asList(childPlanIds.split(","));
|
|
|
- Log.warn("#############################8");
|
|
|
+ Log.warn("#############################2");
|
|
|
for (String sid : list) {
|
|
|
Long childPlanId = Long.parseLong(sid);
|
|
|
Date now = Date8Util.getCurrentDate();
|
|
@@ -215,6 +210,7 @@ public class CustomPointServiceImpl implements CustomPointService {
|
|
|
planChildService.update(Wrappers.<PlanChild>lambdaUpdate().set(PlanChild::getChildPlanState, "3")
|
|
|
.eq(PlanChild::getPercent1, 1).eq(PlanChild::getId, childPlanId));
|
|
|
}
|
|
|
+ Log.warn("#############################4");
|
|
|
}
|
|
|
|
|
|
|