Browse Source

工单问题详情 增加处理人名称 字段

tags/v1.1.0^2
wanghaoran 1 year ago
parent
commit
d778ff16f7
2 changed files with 12 additions and 0 deletions
  1. +6
    -0
      tuoheng-admin/src/main/java/com/tuoheng/admin/entity/domain/QuestionHandle.java
  2. +6
    -0
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/WorkOrderServiceImpl.java

+ 6
- 0
tuoheng-admin/src/main/java/com/tuoheng/admin/entity/domain/QuestionHandle.java View File

@@ -58,4 +58,10 @@ public class QuestionHandle extends BaseEntity implements Serializable {
*/
@TableField(exist = false)
private Integer status;

/**
* 处理人名称
*/
@TableField(exist = false)
private String handlerUserName;
}

+ 6
- 0
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/WorkOrderServiceImpl.java View File

@@ -223,6 +223,12 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO
questionHandle.setHandlerImage(handerImg);
}

//查询处理人名称
User user = userMapper.selectById(questionHandle.getHandlerUser());
if(ObjectUtil.isNotNull(user)){
questionHandle.setHandlerUserName(user.getRealname());
}

//查询问题处理状态
WorkOrderQuestion workOrderQuestion = workOrderQuestionMapper.selectOne(new LambdaQueryWrapper<WorkOrderQuestion>()
.eq(WorkOrderQuestion::getQuestionId, questionId));

Loading…
Cancel
Save