Commit d8c0b241 authored by 王晓倩's avatar 王晓倩

工单基础信息列表异常处理

parent 486a0990
......@@ -98,15 +98,17 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService
BeanUtils.copyProperties(workOrder, workOrderVo);
// 获取巡检员姓名
SysUser appointInspector = sysUserMapper.selectUserById(tWorkOrder.getAppointInspector());
SysUser appointInspector = sysUserMapper.selectUserById(workOrder.getAppointInspector());
workOrderVo.setAppointInspectorName(appointInspector.getNickName());
if(tWorkOrder.getActualInspector() != tWorkOrder.getAppointInspector() && tWorkOrder.getActualInspector() != null){
if(workOrder.getActualInspector() != workOrder.getAppointInspector() && workOrder.getActualInspector() != null){
SysUser actualInspector = sysUserMapper.selectUserById(tWorkOrder.getActualInspector());
workOrderVo.setActualInspectorName(actualInspector.getNickName());
} else {
workOrderVo.setActualInspectorName(appointInspector.getNickName());
}
workOrderVoList.add(workOrderVo);
}
}
return workOrderVoList;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment