add:增加返回点类型

This commit is contained in:
2025-07-24 20:25:48 +08:00
parent 7ea49920bc
commit ae4feca5b3
2 changed files with 4 additions and 1 deletions

View File

@@ -57,6 +57,9 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements IT
case "Move" : case "Move" :
json.put("taskType", "O0"); json.put("taskType", "O0");
break; break;
case "Return" :
json.put("taskType", "O0");
break;
} }
tasks.add(json); tasks.add(json);
} }

View File

@@ -75,7 +75,7 @@ public class TaskManageServiceImpl implements TaskManageService {
// 判断前端参数是否有返回点 // 判断前端参数是否有返回点
boolean move = staList.stream() boolean move = staList.stream()
.anyMatch(row -> row.getAction_type().equals("Move")); .anyMatch(row -> row.getAction_type().equals("Return"));
if (!move) { if (!move) {
// 取返回点 // 取返回点