|
|
@@ -80,6 +80,7 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO |
|
|
|
.like(StringUtils.isNotEmpty(request.getCode()), WorkOrder::getCode, request.getCode()) |
|
|
|
.eq(ObjectUtil.isNotEmpty(request.getStatus()), WorkOrder::getStatus, request.getStatus()) |
|
|
|
.between(ObjectUtil.isNotNull(startDate),WorkOrder::getCreateTime, startDate, endDate) |
|
|
|
.apply(1 == request.getHandleFlag(),"FIND_IN_SET(" + ShiroUtils.getUserId()+",assign_user)") |
|
|
|
.eq(WorkOrder::getMark, MarkTypeEnum.VALID.getCode()) |
|
|
|
.orderByDesc(WorkOrder::getCreateTime)); |
|
|
|
|
|
|
@@ -175,6 +176,7 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO |
|
|
|
WorkOrder workOrder = new WorkOrder(); |
|
|
|
workOrder.setId(request.getWorkOrderId()); |
|
|
|
workOrder.setStatus(WorkOrderStatusEnum.COMPLETED.getCode()); |
|
|
|
workOrder.setFinishTime(new Date()); |
|
|
|
workOrderMapper.updateById(workOrder); |
|
|
|
} |
|
|
|
return JsonResult.success(); |