Quellcode durchsuchen

员工号没有 待办中心的问题 debug

master
PoffyZhang vor 1 Jahr
Ursprung
Commit
b4938b1bc7
2 geänderte Dateien mit 11 neuen und 4 gelöschten Zeilen
  1. +8
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java
  2. +3
    -3
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/vo/TodoNumVO.java

+ 8
- 1
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java Datei anzeigen

@@ -286,6 +286,9 @@ public class TodoCenterManage {
ProjectListReq projectListReq = new ProjectListReq();
BeanUtils.copyProperties(param, projectListReq);
List<Project> projects = projectLibManage.projectList(projectListReq);
if(StringUtils.isBlank(employeeCode)){
projects = Collections.emptyList();
}
if (CollUtil.isNotEmpty(projects)) {
Map<Long, Project> projectsMap = CollUtils.listToMap(projects, Project::getId);
// 再查出项目关联的流程实例ID
@@ -1725,8 +1728,12 @@ public class TodoCenterManage {
// 获取登录用户全量信息
UserFullInfoDTO userFullInfo = userInfoHelper.getUserFullInfo(userId);
// 获取员工浙政钉code
String employeeCode = userFullInfo.getEmployeeCode();
TodoNumVO todoNumVo = new TodoNumVO();
String employeeCode = userFullInfo.getEmployeeCode();
if (StringUtils.isBlank(employeeCode)) {
return todoNumVo;
}

// 查出项目库项目
ProjectListReq projectListReq = new ProjectListReq();
BeanUtils.copyProperties(param, projectListReq);


+ 3
- 3
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/vo/TodoNumVO.java Datei anzeigen

@@ -18,11 +18,11 @@ import lombok.NoArgsConstructor;
public class TodoNumVO {

@ApiModelProperty("待我处理总数量")
private Integer totalNum;
private Integer totalNum = 0;

@ApiModelProperty("待我处理非增补项目总数量")
private Integer notAppendNum;
private Integer notAppendNum = 0;

@ApiModelProperty("待我处理非增补项目总数量")
private Integer appendNum;
private Integer appendNum = 0;
}

Laden…
Abbrechen
Speichern