|
@@ -654,21 +654,30 @@ public class WorkProjectNotifyController extends BaseController {
|
|
*/
|
|
*/
|
|
public void formatNotifyResp(List<WorkProjectNotify> list) {
|
|
public void formatNotifyResp(List<WorkProjectNotify> list) {
|
|
if (list.size() > 0) {
|
|
if (list.size() > 0) {
|
|
|
|
+ List<Dict> dictList = DictUtils.getDictList("project_notify_type");
|
|
for (WorkProjectNotify info: list) {
|
|
for (WorkProjectNotify info: list) {
|
|
// 获取流程类型
|
|
// 获取流程类型
|
|
- String typeLabel = DictUtils.getDictLabel(info.getType(),"project_notify_type","");
|
|
|
|
- info.setTypeLabel(typeLabel);
|
|
|
|
|
|
+ for (Dict dict : dictList) {
|
|
|
|
+ if (info.getType().equals(dict.getValue())){
|
|
|
|
+ info.setTypeLabel(dict.getLabel());
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ /*String typeLabel = DictUtils.getDictLabel(info.getType(),"project_notify_type","");
|
|
|
|
+ info.setTypeLabel(typeLabel);*/
|
|
// 获取流程提交人
|
|
// 获取流程提交人
|
|
- if (Objects.nonNull(info.getCreateBy())) {
|
|
|
|
|
|
+ /*if (Objects.nonNull(info.getCreateBy())) {
|
|
User cUser = UserUtils.getByUserId(info.getCreateBy().getId());
|
|
User cUser = UserUtils.getByUserId(info.getCreateBy().getId());
|
|
if (Objects.nonNull(cUser)) {
|
|
if (Objects.nonNull(cUser)) {
|
|
info.setCreateUserName(cUser.getName());
|
|
info.setCreateUserName(cUser.getName());
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
// 获取流程审核人
|
|
// 获取流程审核人
|
|
- User audit = UserUtils.getByUserId(info.getAuditor());
|
|
|
|
- if (Objects.nonNull(audit)) {
|
|
|
|
- info.setAuditUserName(audit.getName());
|
|
|
|
|
|
+ if(StringUtils.isNotBlank(info.getAuditor())){
|
|
|
|
+ User audit = UserUtils.getByUserId(info.getAuditor());
|
|
|
|
+ if (Objects.nonNull(audit)) {
|
|
|
|
+ info.setAuditUserName(audit.getName());
|
|
|
|
+ }
|
|
}
|
|
}
|
|
// 设置所属系统为ccpm
|
|
// 设置所属系统为ccpm
|
|
info.setBelongProject("ccpm");
|
|
info.setBelongProject("ccpm");
|