异常场景取消及手动页面清空来源点位

This commit is contained in:
psh
2024-07-02 14:13:29 +08:00
parent 28cc482001
commit fbba53d92c
2 changed files with 6 additions and 2 deletions

View File

@@ -217,12 +217,12 @@ public class KGHJRKTask extends AbstractTask {
}
String startPoint = taskObj.getPoint_code1(); // 获取起点
if (taskObj.getPoint_code2().startsWith("QHQ")) {
if (ObjectUtil.isNotEmpty(taskObj)&&ObjectUtil.isNotEmpty(taskObj.getPoint_code2())&&taskObj.getPoint_code2().startsWith("QHQ")) {
taskObj.setPoint_code2("HCQ" + taskObj.getPoint_code2().substring(3));
}
String endPoint = taskObj.getPoint_code2(); // 获取终点
SchBasePoint startPointObj = pointService.getById(startPoint);
if (endPoint.startsWith("ZJBDJW")) {
if (ObjectUtil.isNotEmpty(endPoint)&&endPoint.startsWith("ZJBDJW")) {
endPoint = endPoint.substring(0, endPoint.length() - 2);
}
SchBasePoint endPointObj = pointService.getById(endPoint);