|
@@ -97,7 +97,12 @@ public class ZEngineeringIndustryServiceImpl implements IZEngineeringIndustrySer
|
|
|
DateList.add(item.substring(item.indexOf("2")));
|
|
|
});
|
|
|
String username = LoginHelper.getUsername();
|
|
|
- Page<Map<String, Object>> listPage = baseMapper.getByUserList(DateList, username, leftJoin, szAndGy, page);
|
|
|
+ Page<Map<String, Object>> listPage = null;
|
|
|
+ if (type.equals("6")) {
|
|
|
+ listPage = baseMapper.getByUserList1(DateList, username, leftJoin, szAndGy, page);
|
|
|
+ } else {
|
|
|
+ listPage = baseMapper.getByUserList(DateList, username, leftJoin, szAndGy, page);
|
|
|
+ }
|
|
|
|
|
|
if ("1".equals(type)){ // 顶管
|
|
|
listPage.getRecords().forEach(item -> {
|
|
@@ -180,7 +185,11 @@ public class ZEngineeringIndustryServiceImpl implements IZEngineeringIndustrySer
|
|
|
mapList.forEach(ite -> {
|
|
|
String str = "2".equals(ite.get("reviewStatus"))?"未审核":"1".equals(ite.get("reviewStatus"))?"通过":"未通过";
|
|
|
// "municipal_engineering_node";
|
|
|
- ite.put("type",municipalEngineeringNode.stream().filter(ie-> ie.getDictValue() .equals(ite.get("type"))).collect(Collectors.toList()).get(0).getDictLabel());
|
|
|
+ try {
|
|
|
+ ite.put("type",municipalEngineeringNode.stream().filter(ie-> ie.getDictValue() .equals(ite.get("type"))).collect(Collectors.toList()).get(0).getDictLabel());
|
|
|
+ } catch (Exception e) {
|
|
|
+ ite.put("type","");
|
|
|
+ }
|
|
|
ite.put("reviewStatus", str);
|
|
|
});
|
|
|
municipalEngineeringNode.forEach(ite -> {
|
|
@@ -211,10 +220,13 @@ public class ZEngineeringIndustryServiceImpl implements IZEngineeringIndustrySer
|
|
|
});
|
|
|
MonthTableNameHandler.removeData();
|
|
|
}
|
|
|
- else if ("6".equals(type)){ // 工业工程
|
|
|
+ else if ("6".equals(type)){ // 带气封堵
|
|
|
listPage.getRecords().forEach(item -> {
|
|
|
String date = new SimpleDateFormat("yyyy_MM").format(Date.from(((LocalDateTime)item.get("createTime")).atZone(ZoneId.systemDefault()).toInstant()));;
|
|
|
;
|
|
|
+ Map<String, List<SysDictData>> sysDictMap = RedisUtils.getCacheMap("sys_dict");
|
|
|
+ List<SysDictData> municipalEngineeringNode = sysDictMap.get("air_wall_node");
|
|
|
+
|
|
|
MonthTableNameHandler.setData(date);
|
|
|
List<Map<String, String>> mapList = baseMapper.getReviewStatusByNodeId(item.get("id").toString());
|
|
|
mapList.forEach(ite -> {
|