Merge remote-tracking branch 'origin/fix_20230911_UAT' into fix_20230911_UAT
This commit is contained in:
+24
-15
@@ -1,30 +1,36 @@
|
||||
package com.jero.modules.authDummy.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.system.query.QueryGenerator;
|
||||
import com.jero.modules.authDummy.entity.AuthDummyInventoryInfoEO;
|
||||
import com.jero.modules.authDummy.service.IAuthDummyInventoryInfoEOService;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.jero.modules.dummy.entity.DummyInventoryInfoEO;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.aspect.annotation.AutoLog;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import com.jero.common.system.query.QueryGenerator;
|
||||
import com.jero.modules.authDummy.entity.AuthDummyInventoryInfoEO;
|
||||
import com.jero.modules.authDummy.service.IAuthDummyInventoryInfoEOService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import com.jero.common.aspect.annotation.AutoLog;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
@@ -68,6 +74,9 @@ public class AuthDummyInventoryInfoEOController extends JeroController<AuthDummy
|
||||
}else {
|
||||
queryWrapper.orderByDesc("create_time");
|
||||
}
|
||||
if(StringUtils.isNotBlank(authDummyInventoryInfoEO.getFirstLevelDutyTerritory())){
|
||||
queryWrapper.lambda().eq(AuthDummyInventoryInfoEO::getDutyDepart,authDummyInventoryInfoEO.getFirstLevelDutyTerritory());
|
||||
}
|
||||
Page<AuthDummyInventoryInfoEO> page = new Page<AuthDummyInventoryInfoEO>(pageNo, pageSize);
|
||||
IPage<AuthDummyInventoryInfoEO> pageList = this.authDummyInventoryInfoEOService.page(page, queryWrapper);
|
||||
this.authDummyInventoryInfoEOService.disposeData(pageList.getRecords(),authDummyInventoryInfoEO.getCut());
|
||||
|
||||
+9
-8
@@ -1,22 +1,19 @@
|
||||
package com.jero.modules.authDummy.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import com.jero.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
@@ -166,4 +163,8 @@ public class AuthDummyInventoryInfoEO implements Serializable {
|
||||
@ApiModelProperty(value = "备注")
|
||||
@Excel(name = "备注", width = 50)
|
||||
private String remark;
|
||||
|
||||
@ApiModelProperty(value = "责任部门")
|
||||
@TableField(exist = false)
|
||||
private String firstLevelDutyTerritory;
|
||||
}
|
||||
|
||||
+12
-1
@@ -763,8 +763,19 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
|
||||
|
||||
if (StringUtils.isNotEmpty(paramsCollectManifestVO.getState())) {
|
||||
paramsCollectManifestVO.setDre(paramsCollectManifestVO.getState().replaceAll("'", "\'"));
|
||||
sqlJoinSb.append(" and state = '").append(paramsCollectManifestVO.getDre()).append("'");
|
||||
String state = paramsCollectManifestVO.getState().replaceAll("'", "\'");
|
||||
// state = "1,2,3,9";
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (String s : Arrays.asList(state.split(","))) {
|
||||
sb.append("'"+s+"',");
|
||||
}
|
||||
String substring = sb.substring(0,sb.length() - 1);
|
||||
sqlJoinSb.append(" and state in ( ").append(substring).append(" )");
|
||||
}
|
||||
// if (StringUtils.isNotEmpty(paramsCollectManifestVO.getState())) {
|
||||
// paramsCollectManifestVO.setDre(paramsCollectManifestVO.getState().replaceAll("'", "\'"));
|
||||
// sqlJoinSb.append(" and state = '").append(paramsCollectManifestVO.getDre()).append("'");
|
||||
// }
|
||||
if (StringUtils.isNotEmpty(paramsCollectManifestVO.getCertCategory())) {
|
||||
sqlJoinSb.append(" and cert_category like '%").append(paramsCollectManifestVO.getCertCategory()).append("%'");
|
||||
}
|
||||
|
||||
+4
-1
@@ -5,7 +5,6 @@ import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.jero.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
@@ -336,6 +335,10 @@ public class DummyInventoryInfoEO implements Serializable {
|
||||
@TableField(exist = false)
|
||||
private String orderByField;
|
||||
|
||||
/**一级责任领域**/
|
||||
@TableField(exist = false)
|
||||
private String firstLevelDutyTerritory;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+33
-4
@@ -46,8 +46,19 @@ import org.apache.commons.io.FileUtils;
|
||||
import org.apache.commons.lang3.ObjectUtils;
|
||||
import org.apache.commons.lang3.SerializationUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.poi.hssf.usermodel.*;
|
||||
import org.apache.poi.ss.usermodel.*;
|
||||
import org.apache.poi.hssf.usermodel.HSSFCell;
|
||||
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
|
||||
import org.apache.poi.hssf.usermodel.HSSFDateUtil;
|
||||
import org.apache.poi.hssf.usermodel.HSSFRichTextString;
|
||||
import org.apache.poi.hssf.usermodel.HSSFSheet;
|
||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.HorizontalAlignment;
|
||||
import org.apache.poi.ss.usermodel.Row;
|
||||
import org.apache.poi.ss.usermodel.Sheet;
|
||||
import org.apache.poi.ss.usermodel.VerticalAlignment;
|
||||
import org.apache.poi.ss.usermodel.Workbook;
|
||||
import org.apache.poi.ss.usermodel.WorkbookFactory;
|
||||
import org.apache.poi.ss.util.CellRangeAddress;
|
||||
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
@@ -65,11 +76,25 @@ import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.*;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.text.Collator;
|
||||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static com.jero.modules.document.service.impl.BussDocumentLibraryEOServiceImpl.copyFile;
|
||||
@@ -168,6 +193,10 @@ public class DummyInventoryInfoEOServiceImpl extends ServiceImpl<DummyInventoryI
|
||||
}
|
||||
});
|
||||
}
|
||||
//责任部门查询
|
||||
if(StringUtils.isNotBlank(dummyInventoryInfoEO.getFirstLevelDutyTerritory())){
|
||||
queryWrapper.lambda().eq(DummyInventoryInfoEO::getDutyDepart,dummyInventoryInfoEO.getFirstLevelDutyTerritory());
|
||||
}
|
||||
|
||||
Page<DummyInventoryInfoEO> page = new Page<DummyInventoryInfoEO>(dummyInventoryInfoEO.getPageNo(), dummyInventoryInfoEO.getPageSize());
|
||||
IPage<DummyInventoryInfoEO> pageInfo = this.page(page, queryWrapper);
|
||||
|
||||
+18
-17
@@ -57,7 +57,6 @@ import com.jero.modules.project.enums.ProjectMessageEnum;
|
||||
import com.jero.modules.project.enums.ProjectUserLocationEnum;
|
||||
import com.jero.modules.project.enums.ReviewResultEnum;
|
||||
import com.jero.modules.project.enums.RoleRelModelTypeEnum;
|
||||
import com.jero.modules.project.enums.TaskAffirmStatusEnum;
|
||||
import com.jero.modules.project.enums.TaskStatusEnum;
|
||||
import com.jero.modules.project.mapper.ProjectRelatedPersonnelMapper;
|
||||
import com.jero.modules.project.service.IProjectCertificationInventoryLogEOService;
|
||||
@@ -80,7 +79,6 @@ import com.jero.modules.system.service.ISysUserService;
|
||||
import com.jero.modules.system.service.impl.SysDictItemServiceImpl;
|
||||
import com.jero.modules.todoCenter.entity.ProcessInfoDetailEO;
|
||||
import com.jero.modules.todoCenter.entity.ProcessInfoEO;
|
||||
import com.jero.modules.todoCenter.enums.TodoCenterStatusEnum;
|
||||
import com.jero.modules.todoCenter.service.IProcessInfoDetailEOService;
|
||||
import com.jero.modules.todoCenter.service.IProcessInfoEOService;
|
||||
import com.jero.modules.wkflow.enums.FlowTypeEnum;
|
||||
@@ -3376,7 +3374,7 @@ public class PlatformProjectCertificationInventoryEOServiceImpl extends ServiceI
|
||||
public List<Map<String, Object>> getTaskToConfirmStatistics(List<ProjectCertificationInventoryEO> pciEoList) {
|
||||
List<Map<String,Object>> result = new ArrayList<>();
|
||||
|
||||
int listToBeReleasedCount = 0;//清单待发布
|
||||
// int listToBeReleasedCount = 0;//清单待发布
|
||||
int taskToBeInitiatedCount = 0;//任务待发起
|
||||
int taskToBeConfirmedCount = 0;//任务待确认
|
||||
int acceptedCount = 0;//责任人接受
|
||||
@@ -3384,13 +3382,13 @@ public class PlatformProjectCertificationInventoryEOServiceImpl extends ServiceI
|
||||
|
||||
if(CollectionUtils.isNotEmpty(pciEoList)){
|
||||
// 清单待发布
|
||||
listToBeReleasedCount = (int) pciEoList.stream().filter(pciEo -> {
|
||||
boolean flag = (
|
||||
StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
|| StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.CERTIFICATION_RETURNED.getValue())
|
||||
);
|
||||
return flag;
|
||||
}).count();
|
||||
// listToBeReleasedCount = (int) pciEoList.stream().filter(pciEo -> {
|
||||
// boolean flag = (
|
||||
// StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
// || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.CERTIFICATION_RETURNED.getValue())
|
||||
// );
|
||||
// return flag;
|
||||
// }).count();
|
||||
// 任务待发起
|
||||
taskToBeInitiatedCount = (int) pciEoList.stream().filter(pciEo -> {
|
||||
boolean flag = (
|
||||
@@ -3424,14 +3422,14 @@ public class PlatformProjectCertificationInventoryEOServiceImpl extends ServiceI
|
||||
}).count();
|
||||
}
|
||||
|
||||
Map<String,Object> listToBeReleasedMap = new HashMap<>();
|
||||
// Map<String,Object> listToBeReleasedMap = new HashMap<>();
|
||||
Map<String,Object> taskToBeInitiatedMap = new HashMap<>();
|
||||
Map<String,Object> taskToBeConfirmedMap = new HashMap<>();
|
||||
Map<String,Object> acceptedMap = new HashMap<>();
|
||||
Map<String,Object> rejectedMap = new HashMap<>();
|
||||
|
||||
listToBeReleasedMap.put("taskAffirmStatus",CertificationInventoryFlowStatusEnum.LIST_TO_BE_RELEASED.getValue());
|
||||
listToBeReleasedMap.put("taskAffirmStatusCount",listToBeReleasedCount);
|
||||
// listToBeReleasedMap.put("taskAffirmStatus",CertificationInventoryFlowStatusEnum.LIST_TO_BE_RELEASED.getValue());
|
||||
// listToBeReleasedMap.put("taskAffirmStatusCount",listToBeReleasedCount);
|
||||
|
||||
taskToBeInitiatedMap.put("taskAffirmStatus",CertificationInventoryFlowStatusEnum.LIST_TO_BE_CHECKED.getValue());
|
||||
taskToBeInitiatedMap.put("taskAffirmStatusCount",taskToBeInitiatedCount);
|
||||
@@ -3445,7 +3443,7 @@ public class PlatformProjectCertificationInventoryEOServiceImpl extends ServiceI
|
||||
rejectedMap.put("taskAffirmStatus",CertificationInventoryFlowStatusEnum.REFUSAL_OF_RESPONSIBLE_PERSON.getValue());
|
||||
rejectedMap.put("taskAffirmStatusCount",rejectedCount);
|
||||
|
||||
result.add(listToBeReleasedMap);
|
||||
// result.add(listToBeReleasedMap);
|
||||
result.add(taskToBeInitiatedMap);
|
||||
result.add(taskToBeConfirmedMap);
|
||||
result.add(acceptedMap);
|
||||
@@ -3467,11 +3465,14 @@ public class PlatformProjectCertificationInventoryEOServiceImpl extends ServiceI
|
||||
// 任务待确认
|
||||
taskToBeConfirmedCount = (int) pciEoList.stream().filter(pciEo -> {
|
||||
boolean flag = (
|
||||
StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
|| StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.CERTIFICATION_RETURNED.getValue())
|
||||
|| StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.LIST_TO_BE_CHECKED.getValue())
|
||||
StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.LIST_TO_BE_CHECKED.getValue())
|
||||
|| StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue())
|
||||
|| StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.REFUSAL_OF_RESPONSIBLE_PERSON.getValue())
|
||||
// StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
// || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.CERTIFICATION_RETURNED.getValue())
|
||||
// || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.LIST_TO_BE_CHECKED.getValue())
|
||||
// || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue())
|
||||
// || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.REFUSAL_OF_RESPONSIBLE_PERSON.getValue())
|
||||
);
|
||||
return flag;
|
||||
}).count();
|
||||
|
||||
+36
-30
@@ -10045,20 +10045,20 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
|
||||
public List<Map<String, Object>> getDesignTaskToConfirmStatistics(List<ProjectLawsInventoryEO> projectLawsInventoryEOList) {
|
||||
List<Map<String,Object>> result = new ArrayList<>();
|
||||
|
||||
int listToBeReleasedCount = 0;//清单待发布
|
||||
// int listToBeReleasedCount = 0;//清单待发布
|
||||
int taskToBeInitiatedCount = 0;//任务待发起
|
||||
int taskToBeConfirmedCount = 0;//任务待确认
|
||||
int acceptedCount = 0;//责任人接收
|
||||
int rejectedCount = 0;//责任人拒绝
|
||||
if(CollectionUtils.isNotEmpty(projectLawsInventoryEOList)){
|
||||
// 清单待发布
|
||||
listToBeReleasedCount = (int) projectLawsInventoryEOList.stream().filter(pliEo -> {
|
||||
boolean flag = (
|
||||
StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
|| StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())
|
||||
);
|
||||
return flag;
|
||||
}).count();
|
||||
// listToBeReleasedCount = (int) projectLawsInventoryEOList.stream().filter(pliEo -> {
|
||||
// boolean flag = (
|
||||
// StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
// || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())
|
||||
// );
|
||||
// return flag;
|
||||
// }).count();
|
||||
|
||||
// 任务待发起
|
||||
taskToBeInitiatedCount = (int) projectLawsInventoryEOList.stream().filter(pliEo -> {
|
||||
@@ -10097,14 +10097,14 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
|
||||
}).count();
|
||||
}
|
||||
|
||||
Map<String,Object> listToBeReleasedMap = new HashMap<>();//清单待发布
|
||||
// Map<String,Object> listToBeReleasedMap = new HashMap<>();//清单待发布
|
||||
Map<String,Object> taskToBeInitiatedMap = new HashMap<>();//任务待发起
|
||||
Map<String,Object> taskToBeConfirmedMap = new HashMap<>();//任务待确认
|
||||
Map<String,Object> acceptedMap = new HashMap<>();//责任人接收
|
||||
Map<String,Object> rejectedMap = new HashMap<>();//责任人拒绝
|
||||
|
||||
listToBeReleasedMap.put("designTaskAffirmStatus",ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue());
|
||||
listToBeReleasedMap.put("designTaskAffirmStatusCount",listToBeReleasedCount);
|
||||
// listToBeReleasedMap.put("designTaskAffirmStatus",ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue());
|
||||
// listToBeReleasedMap.put("designTaskAffirmStatusCount",listToBeReleasedCount);
|
||||
|
||||
taskToBeInitiatedMap.put("designTaskAffirmStatus",ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue());
|
||||
taskToBeInitiatedMap.put("designTaskAffirmStatusCount",taskToBeInitiatedCount);
|
||||
@@ -10118,7 +10118,7 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
|
||||
rejectedMap.put("designTaskAffirmStatus",ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue());
|
||||
rejectedMap.put("designTaskAffirmStatusCount",rejectedCount);
|
||||
|
||||
result.add(listToBeReleasedMap);
|
||||
// result.add(listToBeReleasedMap);
|
||||
result.add(taskToBeInitiatedMap);
|
||||
result.add(taskToBeConfirmedMap);
|
||||
result.add(acceptedMap);
|
||||
@@ -10129,20 +10129,20 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
|
||||
public List<Map<String, Object>> getVerifyTaskToConfirmStatistics(List<ProjectLawsInventoryEO> projectLawsInventoryEOList) {
|
||||
List<Map<String,Object>> result = new ArrayList<>();
|
||||
|
||||
int listToBeReleasedCount = 0;//清单待发布
|
||||
// int listToBeReleasedCount = 0;//清单待发布
|
||||
int taskToBeInitiatedCount = 0;//任务待发起
|
||||
int taskToBeConfirmedCount = 0;//任务待确认
|
||||
int acceptedCount = 0;//责任人接收
|
||||
int rejectedCount = 0;//责任人拒绝
|
||||
if(CollectionUtils.isNotEmpty(projectLawsInventoryEOList)){
|
||||
// 清单待发布
|
||||
listToBeReleasedCount = (int) projectLawsInventoryEOList.stream().filter(pliEo -> {
|
||||
boolean flag = (
|
||||
StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
|| StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())
|
||||
);
|
||||
return flag;
|
||||
}).count();
|
||||
// listToBeReleasedCount = (int) projectLawsInventoryEOList.stream().filter(pliEo -> {
|
||||
// boolean flag = (
|
||||
// StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
// || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())
|
||||
// );
|
||||
// return flag;
|
||||
// }).count();
|
||||
|
||||
// 任务待发起
|
||||
taskToBeInitiatedCount = (int) projectLawsInventoryEOList.stream().filter(pliEo -> {
|
||||
@@ -10181,14 +10181,14 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
|
||||
}).count();
|
||||
}
|
||||
|
||||
Map<String,Object> listToBeReleasedMap = new HashMap<>();//清单待发布
|
||||
// Map<String,Object> listToBeReleasedMap = new HashMap<>();//清单待发布
|
||||
Map<String,Object> taskToBeInitiatedMap = new HashMap<>();//任务待发起
|
||||
Map<String,Object> taskToBeConfirmedMap = new HashMap<>();//任务待确认
|
||||
Map<String,Object> acceptedMap = new HashMap<>();//责任人接收
|
||||
Map<String,Object> rejectedMap = new HashMap<>();//责任人拒绝
|
||||
|
||||
listToBeReleasedMap.put("verifyTaskAffirmStatus",ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue());
|
||||
listToBeReleasedMap.put("verifyTaskAffirmStatusCount",listToBeReleasedCount);
|
||||
// listToBeReleasedMap.put("verifyTaskAffirmStatus",ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue());
|
||||
// listToBeReleasedMap.put("verifyTaskAffirmStatusCount",listToBeReleasedCount);
|
||||
|
||||
taskToBeInitiatedMap.put("verifyTaskAffirmStatus",ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue());
|
||||
taskToBeInitiatedMap.put("verifyTaskAffirmStatusCount",taskToBeInitiatedCount);
|
||||
@@ -10202,7 +10202,7 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
|
||||
rejectedMap.put("verifyTaskAffirmStatus",ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue());
|
||||
rejectedMap.put("verifyTaskAffirmStatusCount",rejectedCount);
|
||||
|
||||
result.add(listToBeReleasedMap);
|
||||
// result.add(listToBeReleasedMap);
|
||||
result.add(taskToBeInitiatedMap);
|
||||
result.add(taskToBeConfirmedMap);
|
||||
result.add(acceptedMap);
|
||||
@@ -10328,11 +10328,14 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
|
||||
// 任务待确认
|
||||
taskToBeConfirmedCount = (int) projectLawsInventoryEOList.stream().filter(pliEo -> {
|
||||
boolean flag = (
|
||||
StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
|| StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())
|
||||
|| StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue())
|
||||
StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue())
|
||||
|| StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue())
|
||||
|| StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue())
|
||||
// StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
// || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())
|
||||
// || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue())
|
||||
// || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue())
|
||||
// || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue())
|
||||
|
||||
);
|
||||
return flag;
|
||||
@@ -10424,11 +10427,14 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
|
||||
// 任务待确认
|
||||
taskToBeConfirmedCount = (int) projectLawsInventoryEOList.stream().filter(pliEo -> {
|
||||
boolean flag = (
|
||||
StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
|| StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())
|
||||
|| StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue())
|
||||
StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue())
|
||||
|| StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue())
|
||||
|| StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue())
|
||||
// StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
// || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())
|
||||
// || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue())
|
||||
// || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue())
|
||||
// || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue())
|
||||
|
||||
);
|
||||
return flag;
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import org.apache.commons.lang.StringUtils;
|
||||
public enum ComplianceFlowStatusEnum {
|
||||
LIST_TO_BE_RELEASED("清单待发布","List to be released","List to be released"),
|
||||
LIST_TO_BE_CHECKED("任务待发起","Task to be initiated","List to be checked"),
|
||||
REGULATORY_ENGINEER_RETURNS("法规工程师退回","Regulatory engineer returns","Regulatory engineer returns"),
|
||||
REGULATORY_ENGINEER_RETURNS("法规退回","Regulatory engineer returns","Regulatory engineer returns"),
|
||||
DUTY_PERSON_REJECTED("责任人拒绝","Rejected by the responsible person","Duty Person Rejected"),
|
||||
DUTY_PERSON_ACCEPTED("责任人接受","Accepted by the responsible person","Duty Person Accepted"),
|
||||
TASK_TO_BE_CONFIRMED("任务待确认","Task to be confirmed","Task to be confirmed"),
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ public enum FlowStateEnum {
|
||||
UNINVOLVED("不涉及","NA","NA"),
|
||||
LIST_TO_BE_RELEASED("清单待发布","List to be released","List to be released"),
|
||||
LIST_TO_BE_CHECKED("任务待发起","Task to be initiated","List to be checked"),
|
||||
REGULATORY_ENGINEER_RETURNS("法规工程师退回","Regulatory engineer returns","Regulatory engineer returns"),
|
||||
REGULATORY_ENGINEER_RETURNS("法规退回","Regulatory engineer returns","Regulatory engineer returns"),
|
||||
REFUSAL_OF_RESPONSIBLE_PERSON("责任人拒绝","Refusal of responsible person","Duty Person Rejected"),
|
||||
TASK_TO_BE_CONFIRMED("任务待确认","Task to be confirmed","Task to be confirmed"),
|
||||
RESULTS_TO_BE_SUBMITTED("结果待提交","Results to be submitted","Results to be submitted"),
|
||||
|
||||
+3
@@ -44,4 +44,7 @@ public class ParamsManifestTodoCenterEO {
|
||||
private Date createTime;
|
||||
private String state;
|
||||
private String projectId;
|
||||
|
||||
//用于区分跳转所带的状态
|
||||
private String flag;
|
||||
}
|
||||
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
package com.jero.modules.todoCenter.enums;
|
||||
|
||||
/**
|
||||
* 待办中心状态枚举类
|
||||
*/
|
||||
public enum FlagEnum {
|
||||
ZERO("0"),
|
||||
ONE("1"),
|
||||
;
|
||||
|
||||
String value;
|
||||
|
||||
private FlagEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
+3
@@ -11,6 +11,7 @@ import com.jero.modules.cert.collect.enums.ManifestStateEnum;
|
||||
import com.jero.modules.cert.collect.mapper.ParamsCollectManifestEOMapper;
|
||||
import com.jero.modules.cert.collect.mapper.ParamsManifestEOMapper;
|
||||
import com.jero.modules.todoCenter.entity.ParamsManifestTodoCenterEO;
|
||||
import com.jero.modules.todoCenter.enums.FlagEnum;
|
||||
import com.jero.modules.todoCenter.service.IParamsManifestTodoCenterService;
|
||||
import com.jero.modules.todoCenter.vo.ParamsManifestTodoCenterEOPage;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
@@ -92,6 +93,7 @@ public class ParamsManifestTodoCenterServiceImpl implements IParamsManifestTodoC
|
||||
if (count > 0) {
|
||||
paramsManifestEO.setWaitFillNum(count);
|
||||
}
|
||||
paramsManifestEO.setFlag(FlagEnum.ZERO.getValue());
|
||||
} else { // 工程接口只能看到工程接口人是自己的;填写人只能看到填写人是自己 的数量
|
||||
// 统计待分配数量 包括状态:待工程接口人处理,填写人退回
|
||||
count = (int) pcmList.stream().filter(e-> (CollectManifestStateEnum.WAIT_SDT.getValue().equals(e.getState())
|
||||
@@ -108,6 +110,7 @@ public class ParamsManifestTodoCenterServiceImpl implements IParamsManifestTodoC
|
||||
if (count > 0) {
|
||||
paramsManifestEO.setWaitFillNum(count);
|
||||
}
|
||||
paramsManifestEO.setFlag(FlagEnum.ONE.getValue());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user