|
@@ -6,6 +6,7 @@ import com.shanghaichengdi.downloadcenterserver.domain.VideoAnalysis;
|
|
|
import com.shanghaichengdi.downloadcenterserver.mapper.VideoAnalysisMapper;
|
|
|
import com.shanghaichengdi.downloadcenterserver.service.VideoAnalysisService;
|
|
|
import com.shanghaichengdi.downloadcenterserver.util.HTTPUtil;
|
|
|
+import com.shanghaigeography.Util.DateUtils;
|
|
|
import java.util.Arrays;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
@@ -31,7 +32,7 @@ public class VideoAnalysisServiceImpl extends ServiceImpl<VideoAnalysisMapper, V
|
|
|
|
|
|
@Override
|
|
|
public void complements(String time) {
|
|
|
- log.info("开始生成:{} 这一天的数据",time);
|
|
|
+ log.info("开始生成:{} 这一天的数据", time);
|
|
|
List<VideoAnalysis> videoAnalyseList = mapper.selectData(time);
|
|
|
for (VideoAnalysis videoAnalysis : videoAnalyseList) {
|
|
|
if (!"8".equals(videoAnalysis.getBayonetId())) {
|
|
@@ -39,15 +40,16 @@ public class VideoAnalysisServiceImpl extends ServiceImpl<VideoAnalysisMapper, V
|
|
|
.collect(Collectors.toList());
|
|
|
Map<String, Object> params = new HashMap<>(2);
|
|
|
params.put("imageUrls", (List<String>) imageList);
|
|
|
- params.put("passTime", videoAnalysis.getTime());
|
|
|
+ params.put("passTime", DateUtils.dateToString(videoAnalysis.getTime(),DateUtils.DATE_FORMAT_19));
|
|
|
params.put("id", videoAnalysis.getEventcode());
|
|
|
params.put("bayonetId", videoAnalysis.getBayonetId());
|
|
|
HTTPUtil.httpClientPost(
|
|
|
- "http://10.121.41.4:8090/download/pictures", JSONObject.toJSON(params).toString(),
|
|
|
+ "http://10.121.41.4:8090/download/pictures/history",
|
|
|
+ JSONObject.toJSON(params).toString(),
|
|
|
"UTF-8");
|
|
|
}
|
|
|
}
|
|
|
- log.info("{} 的数据生成结束",time);
|
|
|
+ log.info("{} 的数据生成结束", time);
|
|
|
}
|
|
|
}
|
|
|
|