Browse Source

优化待办列表代码

master
PoffyZhang 1 year ago
parent
commit
cedb0e93ef
2 changed files with 3 additions and 6 deletions
  1. +1
    -3
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/req/ToBeProcessedReq.java
  2. +2
    -3
      pmapi/src/main/java/com/ningdatech/pmapi/user/service/impl/UserInfoServiceImpl.java

+ 1
- 3
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/req/ToBeProcessedReq.java View File

@@ -11,8 +11,6 @@ import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;

/**
* 待办中心-列表查询实体信息
*
@@ -42,7 +40,7 @@ public class ToBeProcessedReq extends PagePo implements Serializable {
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime createOnMax;

@ApiModelProperty(value = "是否增补项目",allowableValues = "非增补项目 0,增补项目 1")
@ApiModelProperty(value = "是否增补项目",allowableValues = "0,1")
private Integer isTemporaryAugment;

@ApiModelProperty("流程配置ID")


+ 2
- 3
pmapi/src/main/java/com/ningdatech/pmapi/user/service/impl/UserInfoServiceImpl.java View File

@@ -39,7 +39,7 @@ public class UserInfoServiceImpl extends ServiceImpl<NdUserInfoMapper, UserInfo>
@Override
public Map<String, ProcessInstanceUserDto> getUserMapByIds(Set<String> staterUsers) {
List<UserInfo> userInfos = userInfoMapper.selectBatchIds(staterUsers);
List<ProcessInstanceUserDto> resVos = userInfos.stream().map(u -> {
return userInfos.stream().map(u -> {
ProcessInstanceUserDto userInfo = new ProcessInstanceUserDto();
userInfo.setUserId(String.valueOf(u.getId()));
userInfo.setUserName(u.getRealName());
@@ -58,8 +58,7 @@ public class UserInfoServiceImpl extends ServiceImpl<NdUserInfoMapper, UserInfo>
userInfo.setOrgCode(organizationCode);
userInfo.setOrgName(organizationName);
return userInfo;
}).collect(Collectors.toList());
return resVos.stream().collect(Collectors.toMap((ProcessInstanceUserDto::getUserId), v -> v));
}).collect(Collectors.toMap((ProcessInstanceUserDto::getUserId), v -> v));
}

@Override


Loading…
Cancel
Save