|
@@ -148,6 +148,26 @@ public class SystemScenePackageService {
|
|
|
@SneakyThrows
|
|
|
public List<SystemScenePackageVO> querySystemScenePackageList(SystemScenePackageParam params) {
|
|
|
List<SystemScenePackageVO> list = systemScenePackageMapper.querySystemScenePackageList(params);
|
|
|
+
|
|
|
+ for (SystemScenePackageVO vo:list) {
|
|
|
+
|
|
|
+ SystemScenePackageSublistPO sublistPo=new SystemScenePackageSublistPO();
|
|
|
+ sublistPo.setSceneAndPackage(vo.getId());
|
|
|
+ sublistPo.setSceneType("1");
|
|
|
+ List<String> zrList=systemScenePackageSublistMapper.querySceneNaturalList(sublistPo);
|
|
|
+ sublistPo.setSceneType("2");
|
|
|
+ List<String> bzList=systemScenePackageSublistMapper.querySceneStandardsRegulationsList(sublistPo);
|
|
|
+ sublistPo.setSceneType("3");
|
|
|
+ List<String> jtList=systemScenePackageSublistMapper.querySceneAccidentList(sublistPo);
|
|
|
+ sublistPo.setSceneType("4");
|
|
|
+ List<String> fhList=systemScenePackageSublistMapper.querySceneGeneralTemplateList(sublistPo);
|
|
|
+ vo.setZrCount(zrList.size());
|
|
|
+ vo.setBzCount(bzList.size());
|
|
|
+ vo.setJtCount(jtList.size());
|
|
|
+ vo.setFhCount(fhList.size());
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
return list;
|
|
|
}
|
|
|
|
|
@@ -158,13 +178,13 @@ public class SystemScenePackageService {
|
|
|
SystemScenePackageSublistPO sublistPo=new SystemScenePackageSublistPO();
|
|
|
sublistPo.setSceneAndPackage(params.getId());
|
|
|
sublistPo.setSceneType("1");
|
|
|
- List<String> zrList=systemScenePackageSublistMapper.querySystemScenePackageSublistList(sublistPo);
|
|
|
+ List<String> zrList=systemScenePackageSublistMapper.querySceneNaturalList(sublistPo);
|
|
|
sublistPo.setSceneType("2");
|
|
|
- List<String> bzList=systemScenePackageSublistMapper.querySystemScenePackageSublistList(sublistPo);
|
|
|
+ List<String> bzList=systemScenePackageSublistMapper.querySceneStandardsRegulationsList(sublistPo);
|
|
|
sublistPo.setSceneType("3");
|
|
|
- List<String> jtList=systemScenePackageSublistMapper.querySystemScenePackageSublistList(sublistPo);
|
|
|
+ List<String> jtList=systemScenePackageSublistMapper.querySceneAccidentList(sublistPo);
|
|
|
sublistPo.setSceneType("4");
|
|
|
- List<String> fhList=systemScenePackageSublistMapper.querySystemScenePackageSublistList(sublistPo);
|
|
|
+ List<String> fhList=systemScenePackageSublistMapper.querySceneGeneralTemplateList(sublistPo);
|
|
|
BeanUtils.copyProperties(po, newPo);
|
|
|
newPo.setZrSceneNames(zrList);
|
|
|
newPo.setBzSceneNames(bzList);
|
|
@@ -425,7 +445,30 @@ public class SystemScenePackageService {
|
|
|
|
|
|
@SneakyThrows
|
|
|
public ResponseBodyVO<List<Map>> querySystemScenePackageListByTJ(SystemScenePackageParam params) {
|
|
|
- List<Map> list = systemScenePackageMapper.querySystemScenePackageListByTJ(params);
|
|
|
+
|
|
|
+
|
|
|
+ List<String> zrList=systemScenePackageMapper.querySceneNaturalListByTJ(params);
|
|
|
+ List<String> bzList=systemScenePackageMapper.querySceneStandardsRegulationsListByTJ(params);
|
|
|
+ List<String> jtList=systemScenePackageMapper.querySceneAccidentListByTJ(params);
|
|
|
+ List<String> fhList=systemScenePackageMapper.querySceneGeneralTemplateListByTJ(params);
|
|
|
+
|
|
|
+ List<Map> list=new ArrayList<>();
|
|
|
+ Map map=new HashMap();
|
|
|
+ map.put("scene_type","1");
|
|
|
+ map.put("aaa",zrList.size());
|
|
|
+ Map map1=new HashMap();
|
|
|
+ map1.put("scene_type","2");
|
|
|
+ map1.put("aaa",bzList.size());
|
|
|
+ Map map2=new HashMap();
|
|
|
+ map2.put("scene_type","3");
|
|
|
+ map2.put("aaa",jtList.size());
|
|
|
+ Map map3=new HashMap();
|
|
|
+ map3.put("scene_type","4");
|
|
|
+ map3.put("aaa",fhList.size());
|
|
|
+ list.add(map1);
|
|
|
+ list.add(map2);
|
|
|
+ list.add(map3);
|
|
|
+ list.add(map);
|
|
|
return new ResponseBodyVO(ResponseBodyVO.Response.SUCCESS, list);
|
|
|
}
|
|
|
}
|