|
|
@ -109,6 +109,8 @@ public class NjyfHandServiceImpl implements NjyfHandService { |
|
|
|
StandardStorageDeviceDriver standardStorageDeviceDriver; |
|
|
|
|
|
|
|
jo.put("device_code",device_code); |
|
|
|
jo.put("device_name",device_code); |
|
|
|
jo.put("status","1"); |
|
|
|
jo.put("allow_update", "1"); |
|
|
|
jo.put("input_material", "1"); |
|
|
|
resultArr.add(jo); |
|
|
@ -247,24 +249,24 @@ public class NjyfHandServiceImpl implements NjyfHandService { |
|
|
|
// return resultJson;
|
|
|
|
// }
|
|
|
|
//判断起点有货,终点为空
|
|
|
|
if (ObjectUtil.isEmpty(startDevice.getMaterial_type()) || Integer.parseInt(startDevice.getMaterial_type()) == 0) { |
|
|
|
resultJson.put("code", "0"); |
|
|
|
resultJson.put("desc", "起点必须有货"); |
|
|
|
resultJson.put("result", ""); |
|
|
|
return resultJson; |
|
|
|
} |
|
|
|
if (!ObjectUtil.isEmpty(nextDevice.getMaterial_type()) && !StrUtil.equals(nextDevice.getMaterial_type(), "0")) { |
|
|
|
resultJson.put("code", "0"); |
|
|
|
resultJson.put("desc", "终点必须为空"); |
|
|
|
resultJson.put("result", ""); |
|
|
|
return resultJson; |
|
|
|
} |
|
|
|
if(Boolean.parseBoolean(startDevice.getIslock()) || Boolean.parseBoolean(nextDevice.getIslock())){ |
|
|
|
resultJson.put("code", "0"); |
|
|
|
resultJson.put("desc", "起点或终点设备已被锁定"); |
|
|
|
resultJson.put("result", ""); |
|
|
|
return resultJson; |
|
|
|
} |
|
|
|
// if (ObjectUtil.isEmpty(startDevice.getMaterial_type()) || Integer.parseInt(startDevice.getMaterial_type()) == 0) {
|
|
|
|
// resultJson.put("code", "0");
|
|
|
|
// resultJson.put("desc", "起点必须有货");
|
|
|
|
// resultJson.put("result", "");
|
|
|
|
// return resultJson;
|
|
|
|
// }
|
|
|
|
// if (!ObjectUtil.isEmpty(nextDevice.getMaterial_type()) && !StrUtil.equals(nextDevice.getMaterial_type(), "0")) {
|
|
|
|
// resultJson.put("code", "0");
|
|
|
|
// resultJson.put("desc", "终点必须为空");
|
|
|
|
// resultJson.put("result", "");
|
|
|
|
// return resultJson;
|
|
|
|
// }
|
|
|
|
// if(Boolean.parseBoolean(startDevice.getIslock()) || Boolean.parseBoolean(nextDevice.getIslock())){
|
|
|
|
// resultJson.put("code", "0");
|
|
|
|
// resultJson.put("desc", "起点或终点设备已被锁定");
|
|
|
|
// resultJson.put("result", "");
|
|
|
|
// return resultJson;
|
|
|
|
// }
|
|
|
|
if (StrUtil.isEmpty(priority)) { |
|
|
|
priority = "1"; |
|
|
|
} |
|
|
|