|
|
@@ -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>() |