|
@@ -17,7 +17,9 @@ import javax.annotation.Resource;
|
|
|
import java.time.LocalTime;
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
import java.util.Date;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
@@ -56,6 +58,9 @@ public class ReportDataServiceImpl implements ReportDataService {
|
|
|
@Resource
|
|
|
private BerthingTimeConfigMapper berthingTimeConfigMapper;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private BerthingPointConfigMapper berthingPointConfigMapper;
|
|
|
+
|
|
|
@Override
|
|
|
public CarPosition carLocation(Long siteId){
|
|
|
return carPositionMapper.queryBysiteId(siteId);
|
|
@@ -153,9 +158,31 @@ public class ReportDataServiceImpl implements ReportDataService {
|
|
|
return measureUploadMapper.queryBySiteIdTime(siteId,createTime);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public BerthingPointConfig getPointConfig (Long siteId){
|
|
|
+ //先查询最后一次开测时间
|
|
|
+ TaskResult taskResult = taskResultMapper.queryBySiteIdOne(siteId);
|
|
|
+ if (taskResult == null){
|
|
|
+ return null;
|
|
|
+ } else {
|
|
|
+ Long planid = taskResult.getPlanid();
|
|
|
+ BerthingPointConfig berthingPointConfig = berthingPointConfigMapper.queryByPlanid(siteId, planid);
|
|
|
+ if (berthingPointConfig == null){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ return berthingPointConfig;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
private static LocalTime parseTime(Object timeStr) {
|
|
|
return LocalTime.parse(timeStr.toString(), DateTimeFormatter.ofPattern("HH:mm"));
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|