Browse Source

Update WmsToAcsServiceImpl.java

master
张江玮 2 years ago
parent
commit
cca7b50e3c
  1. 29
      acs/nladmin-system/src/main/java/org/nl/acs/ext/wms/service/impl/WmsToAcsServiceImpl.java

29
acs/nladmin-system/src/main/java/org/nl/acs/ext/wms/service/impl/WmsToAcsServiceImpl.java

@ -451,28 +451,23 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
log.info("crateTask-----输入参数{}", param);
CreateTaskResponse response = new CreateTaskResponse();
JSONArray errArr = new JSONArray();
CreateTaskRequest request = JsonUtl.format(param, CreateTaskRequest.class);
JSONObject request = JSONObject.parseObject(param);
// String ext_task_id = request.getREQCODE();
String task_code = request.getTASKCODE();
String start_device_code = request.getSTARTPOSITION();
String task_code = request.getString("TASKCODE");
String start_device_code = request.getString("STARTPOSITION");
// String start_device_code2 = request.getStart_device_code2();
String next_device_code = request.getENNPOSITION();
String next_device_code = request.getString("ENNPOSITION");
// String next_device_code2 = request.getNext_device_code2();
// String put_device_code = request.getPut_device_code();
String priority = request.getPriority();
String vehicle_code = request.getPODCODE();
String vehicle_type = request.getVehicle_type();
String route_plan_code = request.getRoute_plan_code();
String task_type = request.getTASKTYPE();
String storage_task_type = request.getDtl_type();
String priority = "1";
String vehicle_code = request.getString("PODCODE");
String vehicle_type = "1";
String route_plan_code = "1";
String task_type = request.getString("TASKTYPE");
String storage_task_type = "1";
String agv_system_type = "1";
String remark = request.getRemark();
String remark = "";
double oven_time = 0.00d;
if (StrUtil.isNotEmpty(request.getOven_time())) {
oven_time = Double.parseDouble(request.getOven_time());
}
String temperature = request.getTemperature();
Map<String, String> params = request.getParams();
String start_point_code = "";
String start_point_code2 = "";
@ -625,7 +620,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
jo.put("agv_system_type", agv_system_type);
jo.put("oven_time", (int) Math.ceil(oven_time));
jo.put("remark", remark);
jo.put("params", params);
jo.put("params", "");
jo.put("task_type", task_type);
if (!StrUtil.isEmpty(task_code)) {

Loading…
Cancel
Save