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