代码更新
This commit is contained in:
@@ -173,10 +173,9 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
public JSONObject apply(JSONObject whereJson) {
|
||||
String type = whereJson.getString("type");
|
||||
String point_code = whereJson.getString("point_code");
|
||||
String vehicle_num = whereJson.getString("vehicle_num");
|
||||
String vehicle_type = whereJson.getString("vehicle_type");
|
||||
String vehicle_code = whereJson.getString("vehicle_code");
|
||||
String qty = whereJson.getString("qty");
|
||||
String qty = whereJson.getString("vehicle_num");
|
||||
|
||||
if (ObjectUtil.isEmpty(type)) throw new BadRequestException("类型不能为空");
|
||||
if (ObjectUtil.isEmpty(point_code)) throw new BadRequestException("点位不能为空");
|
||||
@@ -200,12 +199,12 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
*/
|
||||
if (StrUtil.equals(type, "1")) {
|
||||
// 1.共挤线申请空盘: 调用空托盘出库处理类创建任务
|
||||
if (ObjectUtil.isEmpty(vehicle_num)) throw new BadRequestException("数量不能为空");
|
||||
if (ObjectUtil.isEmpty(qty)) throw new BadRequestException("数量不能为空");
|
||||
|
||||
JSONObject param = new JSONObject();
|
||||
param.put("point_code2", point_code);
|
||||
param.put("vehicle_type", vehicle_type);
|
||||
param.put("qty", vehicle_num);
|
||||
param.put("qty", qty);
|
||||
// 创建任务
|
||||
GjxCallEmpVehicleTask taskBean = SpringContextHolder.getBean(GjxCallEmpVehicleTask.class);
|
||||
taskBean.createTask(param);
|
||||
@@ -223,11 +222,11 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
String task_id = taskBean.createTask(param); // 创建任务
|
||||
} else if (StrUtil.equals(type, "3")) {
|
||||
// 3.油漆线申请空盘: 调用空托盘出库处理类创建任务
|
||||
if (ObjectUtil.isEmpty(vehicle_num)) throw new BadRequestException("数量不能为空");
|
||||
if (ObjectUtil.isEmpty(qty)) throw new BadRequestException("数量不能为空");
|
||||
|
||||
JSONObject param = new JSONObject();
|
||||
param.put("point_code2", point_code);
|
||||
param.put("qty", vehicle_num);
|
||||
param.put("qty", qty);
|
||||
// 创建任务
|
||||
GjxCallEmpVehicleTask taskBean = SpringContextHolder.getBean(GjxCallEmpVehicleTask.class);
|
||||
String task_id = taskBean.createTask(param);
|
||||
|
||||
Reference in New Issue
Block a user