|
|
@ -95,7 +95,7 @@ public class KGHJRKTask extends AbstractTask { |
|
|
|
} |
|
|
|
task.setPoint_code2(point.getNext_wait_point()); |
|
|
|
task.setTask_status(TaskStatus.CREATED.getCode()); |
|
|
|
task.setRemark(""); |
|
|
|
task.setRemark(point.getPoint_code()); |
|
|
|
taskService.update(task); |
|
|
|
|
|
|
|
//发起任务时先把点位占用,防止发起重复任务
|
|
|
@ -264,6 +264,14 @@ public class KGHJRKTask extends AbstractTask { |
|
|
|
endPointObj.setIng_task_code(""); |
|
|
|
endPointObj.setIs_lock(false); |
|
|
|
pointService.update(endPointObj); |
|
|
|
}else{ |
|
|
|
//如果等待点未二次分配取消,通过remark找到初始锁定点位解锁软锁
|
|
|
|
endPointObj = pointService.getById(taskObj.getRemark()); |
|
|
|
if (ObjectUtil.isNotEmpty(endPointObj)) { |
|
|
|
endPointObj.setIng_task_code(""); |
|
|
|
endPointObj.setIs_lock(false); |
|
|
|
pointService.update(endPointObj); |
|
|
|
} |
|
|
|
} |
|
|
|
taskObj.setRemark("任务取消"); |
|
|
|
taskObj.setTask_status(TaskStatus.CANCELED.getCode()); |
|
|
|