Merge branch 'b_lms' into master_merge

This commit is contained in:
2024-06-21 10:24:13 +08:00
3 changed files with 13 additions and 11 deletions

View File

@@ -379,7 +379,7 @@ public class SendOutManageServiceImpl implements SendOutManageService {
}
@Override
public void createSendOutTaskTwo(JSONObject whereJson) {
public String createSendOutTaskTwo(JSONObject whereJson) {
WQLObject taskTab = WQLObject.getWQLObject("sch_base_task");
WQLObject pointTab = WQLObject.getWQLObject("sch_base_point");
@@ -448,13 +448,13 @@ public class SendOutManageServiceImpl implements SendOutManageService {
}
}
//创建任务
JSONObject task_jo = new JSONObject();
task_jo.put("point_code1", taskJson.getString("point_code2"));
task_jo.put("point_code2", point_code4);
task_jo.put("vehicle_code", taskJson.getString("vehicle_code"));
task_jo.put("task_type", "010721");
TwoSendOutTask taskBean = new TwoSendOutTask();
taskBean.createTask(task_jo);
// 更新当前点位终点
taskJson.put("point_code2", point_code4);
taskJson.put("point_code4", "");
taskTab.update(taskJson);
// 返回点位
return point_code4;
}
}

View File

@@ -36,7 +36,8 @@ public interface SendOutManageService {
* @param whereJson {
* task_code任务号第一次申请时下发的任务号
* }
* @return 新点位
*/
void createSendOutTaskTwo(JSONObject whereJson);
String createSendOutTaskTwo(JSONObject whereJson);
}

View File

@@ -2003,7 +2003,8 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
sendOutManageService.createSendOutTaskOne(whereJson);
} else {
// 第二次申请
sendOutManageService.createSendOutTaskTwo(whereJson);
String point_code = sendOutManageService.createSendOutTaskTwo(whereJson);
result.put("data", point_code);
}
result.put("status", HttpStatus.OK.value());
result.put("message", "下发成功!");