嘉耐更新
This commit is contained in:
@@ -19,7 +19,7 @@ public interface AcsToWmsService {
|
|||||||
HttpResponse lnshApplyTaskToWms(JSONObject json);
|
HttpResponse lnshApplyTaskToWms(JSONObject json);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 申请入窑
|
||||||
* @param json
|
* @param json
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -76,6 +76,8 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
|
|||||||
String next_point_code = task.getString("next_device_code");
|
String next_point_code = task.getString("next_device_code");
|
||||||
String start_device_code = "";
|
String start_device_code = "";
|
||||||
String next_device_code = "";
|
String next_device_code = "";
|
||||||
|
String start_parent_code = "";
|
||||||
|
String next_parent_code = "";
|
||||||
if (StrUtil.isEmpty(task_code)) {
|
if (StrUtil.isEmpty(task_code)) {
|
||||||
throw new WDKException("任务号不能为空");
|
throw new WDKException("任务号不能为空");
|
||||||
}
|
}
|
||||||
@@ -89,10 +91,12 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
|
|||||||
JSONObject start_device_json = WQLObject.getWQLObject("acs_storage_cell").query("parent_storage_code ='" + start_point_code + "'").uniqueResult(0);
|
JSONObject start_device_json = WQLObject.getWQLObject("acs_storage_cell").query("parent_storage_code ='" + start_point_code + "'").uniqueResult(0);
|
||||||
if (!ObjectUtil.isEmpty(start_device_json)) {
|
if (!ObjectUtil.isEmpty(start_device_json)) {
|
||||||
start_point_code = (String) start_device_json.get("parent_storage_code") == null ? start_point_code : (String) start_device_json.get("storage_code");
|
start_point_code = (String) start_device_json.get("parent_storage_code") == null ? start_point_code : (String) start_device_json.get("storage_code");
|
||||||
|
start_parent_code = start_device_json.get("parent_storage_code") == null ? start_point_code : (String) start_device_json.get("parent_storage_code");
|
||||||
}
|
}
|
||||||
JSONObject next_device_json = WQLObject.getWQLObject("acs_storage_cell").query("parent_storage_code ='" + next_point_code + "'").uniqueResult(0);
|
JSONObject next_device_json = WQLObject.getWQLObject("acs_storage_cell").query("parent_storage_code ='" + next_point_code + "'").uniqueResult(0);
|
||||||
if (!ObjectUtil.isEmpty(next_device_json)) {
|
if (!ObjectUtil.isEmpty(next_device_json)) {
|
||||||
next_point_code = (String) next_device_json.get("parent_storage_code") == null ? next_point_code : (String) next_device_json.get("storage_code");
|
next_point_code = (String) next_device_json.get("parent_storage_code") == null ? next_point_code : (String) next_device_json.get("storage_code");
|
||||||
|
next_parent_code = next_device_json.get("parent_storage_code") == null ? next_point_code : (String) next_device_json.get("parent_storage_code");
|
||||||
}
|
}
|
||||||
String priority = task.getString("priority");
|
String priority = task.getString("priority");
|
||||||
String vehicle_code = task.getString("vehicle_code");
|
String vehicle_code = task.getString("vehicle_code");
|
||||||
@@ -139,8 +143,8 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
|
|||||||
jo.put("ext_task_uuid", ext_task_uuid);
|
jo.put("ext_task_uuid", ext_task_uuid);
|
||||||
jo.put("start_point_code", start_point_code);
|
jo.put("start_point_code", start_point_code);
|
||||||
jo.put("next_point_code", next_point_code);
|
jo.put("next_point_code", next_point_code);
|
||||||
jo.put("start_parent_code", start_point_code);
|
jo.put("start_parent_code", start_parent_code);
|
||||||
jo.put("next_parent_code", next_point_code);
|
jo.put("next_parent_code", next_parent_code);
|
||||||
jo.put("start_device_code", start_device_code);
|
jo.put("start_device_code", start_device_code);
|
||||||
jo.put("next_device_code", next_device_code);
|
jo.put("next_device_code", next_device_code);
|
||||||
jo.put("priority", priority);
|
jo.put("priority", priority);
|
||||||
|
|||||||
Reference in New Issue
Block a user