Browse Source

修改 处理人员处理接口

tags/v1.1.0^2
wanghaoran 1 year ago
parent
commit
5d35e4e904
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/WorkOrderServiceImpl.java

+ 2
- 3
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/WorkOrderServiceImpl.java View File

@@ -159,13 +159,12 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO
.eq(WorkOrderQuestion::getWorkOrderId, request.getWorkOrderId())
.eq(WorkOrderQuestion::getQuestionId, request.getQuestionId()));

//修改问题处理结果表
//问题处理结果表新增
QuestionHandle questionHandle = new QuestionHandle();
BeanUtils.copyProperties(request, questionHandle);
questionHandle.setHandlerUser(ShiroUtils.getUserId());
questionHandle.setHandlerTime(new Date());
questionHandleMapper.update(questionHandle, new LambdaQueryWrapper<QuestionHandle>()
.eq(QuestionHandle::getQuestionId, request.getQuestionId()));
questionHandleMapper.insert(questionHandle);

//查询工单下待处理的问题,如全部处理完,将工单状态修改为已完成
Integer count = workOrderQuestionMapper.selectCount(new LambdaQueryWrapper<WorkOrderQuestion>()

Loading…
Cancel
Save