|
@@ -1,6 +1,7 @@
|
|
package com.fdkankan.manage.service.impl;
|
|
package com.fdkankan.manage.service.impl;
|
|
|
|
|
|
import cn.dev33.satoken.stp.StpUtil;
|
|
import cn.dev33.satoken.stp.StpUtil;
|
|
|
|
+import cn.hutool.core.bean.BeanUtil;
|
|
import cn.hutool.core.io.FileUtil;
|
|
import cn.hutool.core.io.FileUtil;
|
|
import cn.hutool.json.JSONUtil;
|
|
import cn.hutool.json.JSONUtil;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
@@ -292,9 +293,9 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public PageInfo pageList(SceneParam param) {
|
|
public PageInfo pageList(SceneParam param) {
|
|
- if(param.getType() == 2 || param.getType() == 6){ //深时
|
|
|
|
- return laserService.pageList(param);
|
|
|
|
- }
|
|
|
|
|
|
+// if(param.getType() == 2 || param.getType() == 6){ //深时
|
|
|
|
+// return laserService.pageList(param);
|
|
|
|
+// }
|
|
// if(param.getType() == 3){ //双目lite
|
|
// if(param.getType() == 3){ //双目lite
|
|
// return sceneService.pageList(param);
|
|
// return sceneService.pageList(param);
|
|
// }
|
|
// }
|
|
@@ -316,9 +317,23 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
List<String> numList = records.parallelStream().map(SceneVo::getNum).collect(Collectors.toList());
|
|
List<String> numList = records.parallelStream().map(SceneVo::getNum).collect(Collectors.toList());
|
|
HashMap<String,SceneCopyLog> map = copyLogService.getByNewNumList(numList);
|
|
HashMap<String,SceneCopyLog> map = copyLogService.getByNewNumList(numList);
|
|
|
|
|
|
|
|
+ HashMap<String,SceneVo> voHashMap = new HashMap<>();
|
|
|
|
+ if(param.getType() == 2 || param.getType() == 6){ //深时点云,深光点云
|
|
|
|
+ param.setSceneCodes(numList);
|
|
|
|
+ List<SceneVo> sceneVos = laserService.pageList(param);
|
|
|
|
+ for (SceneVo sceneVo : sceneVos) {
|
|
|
|
+ voHashMap.put(sceneVo.getNum(),sceneVo);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
for (SceneVo record : page.getRecords()) {
|
|
for (SceneVo record : page.getRecords()) {
|
|
record.setStatusString(SceneStatusUtil.getStatusString(record));
|
|
record.setStatusString(SceneStatusUtil.getStatusString(record));
|
|
|
|
+
|
|
|
|
+ SceneVo sceneVo = voHashMap.get(record.getNum());
|
|
|
|
+ if(sceneVo !=null){
|
|
|
|
+ BeanUtil.copyProperties(sceneVo,record);
|
|
|
|
+ }
|
|
|
|
+
|
|
if(map !=null ){
|
|
if(map !=null ){
|
|
SceneCopyLog sceneCopyLog = map.get(record.getNum());
|
|
SceneCopyLog sceneCopyLog = map.get(record.getNum());
|
|
if(sceneCopyLog != null){
|
|
if(sceneCopyLog != null){
|
|
@@ -594,4 +609,9 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
|
|
|
return snCodeMap;
|
|
return snCodeMap;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public static void main(String[] args) {
|
|
|
|
+ System.out.println(SecurityUtil.MD5("4Dage168"));
|
|
|
|
+ System.out.println(SecurityUtil.MD52("4Dage168"));
|
|
|
|
+ }
|
|
}
|
|
}
|