|
@@ -67,7 +67,7 @@ public class ZEngineeringIndustryServiceImpl implements IZEngineeringIndustrySer
|
|
|
private ZEngineeringCivilMapper zEngineeringCivilMapper;
|
|
|
|
|
|
@Override
|
|
|
- public TableDataInfo<Map<String, Object>> getByUserList(String type,String enginName,String enginType,String enginProcedure,String enginStatus,PageQuery pageQuery,String nodeType,String createBy) {
|
|
|
+ public TableDataInfo<Map<String, Object>> getByUserList(String type,String enginName,String enginType,String enginProcedure,String enginStatus,PageQuery pageQuery,String nodeType,String createBy,String enginClassification) {
|
|
|
Page<T> page = new Page<>(pageQuery.getPageNum(), pageQuery.getPageSize());
|
|
|
String leftJoin = null;
|
|
|
String szAndGy = null;
|
|
@@ -89,6 +89,7 @@ public class ZEngineeringIndustryServiceImpl implements IZEngineeringIndustrySer
|
|
|
}
|
|
|
else if ("5".equals(type)){
|
|
|
leftJoin = "z_engineering_gy"; // 工业工程
|
|
|
+ szAndGy = "gy";
|
|
|
}
|
|
|
else if ("6".equals(type)){
|
|
|
leftJoin = "z_engineering_air_wall"; // 带气工程
|
|
@@ -108,7 +109,7 @@ public class ZEngineeringIndustryServiceImpl implements IZEngineeringIndustrySer
|
|
|
if (type.equals("6")) {
|
|
|
listPage = baseMapper.getByUserList1(DateList, username, leftJoin, szAndGy, page,enginName,enginType);
|
|
|
} else {
|
|
|
- listPage = baseMapper.getByUserList(DateList, username, leftJoin, szAndGy, page,enginName,enginType);
|
|
|
+ listPage = baseMapper.getByUserList(DateList, username, leftJoin, szAndGy, page,enginName,enginType,enginClassification);
|
|
|
}
|
|
|
|
|
|
if ("1".equals(type)){ // 顶管
|
|
@@ -245,15 +246,20 @@ public class ZEngineeringIndustryServiceImpl implements IZEngineeringIndustrySer
|
|
|
}
|
|
|
else if ("5".equals(type)){ // 工业工程
|
|
|
listPage.getRecords().forEach(item -> {
|
|
|
- String date = new SimpleDateFormat("yyyy_MM").format(Date.from(((LocalDateTime)item.get("createTime")).atZone(ZoneId.systemDefault()).toInstant()));;
|
|
|
- ;
|
|
|
+ String date = new SimpleDateFormat("yyyy_MM").format(Date.from(((LocalDateTime)item.get("createTime")).atZone(ZoneId.systemDefault()).toInstant()));
|
|
|
MonthTableNameHandler.setData(date);
|
|
|
List<Map<String, String>> mapList = baseMapper.getReviewStatusByNodeId(item.get("id").toString());
|
|
|
Map<String, List<SysDictData>> sysDictMap = RedisUtils.getCacheMap("sys_dict");
|
|
|
List<SysDictData> municipalEngineeringNode = new ArrayList<>();
|
|
|
- municipalEngineeringNode.addAll(sysDictMap.get("gy_inner"));
|
|
|
- municipalEngineeringNode.addAll(sysDictMap.get("gy_out"));
|
|
|
- municipalEngineeringNode.addAll(sysDictMap.get("gy_tyg"));
|
|
|
+ if (item.get("enginClassification").equals("室内管线")){
|
|
|
+ municipalEngineeringNode.addAll(sysDictMap.get("gy_inner"));
|
|
|
+ }
|
|
|
+ if (item.get("enginClassification").equals("室外管线")){
|
|
|
+ municipalEngineeringNode.addAll(sysDictMap.get("gy_out"));
|
|
|
+ }
|
|
|
+ if (item.get("enginClassification").equals("调压柜")){
|
|
|
+ municipalEngineeringNode.addAll(sysDictMap.get("gy_tyg"));
|
|
|
+ }
|
|
|
mapList.forEach(ite -> {
|
|
|
String str = "2".equals(ite.get("reviewStatus"))?"未审核":"1".equals(ite.get("reviewStatus"))?"通过":"未通过";
|
|
|
try {
|