更新
This commit is contained in:
@@ -1782,6 +1782,7 @@ public class DeviceServiceImpl implements DeviceService, ApplicationAutoInitial
|
||||
@Override
|
||||
public void updateBarcode(JSONObject json) throws Exception {
|
||||
String device_code = json.getString("device_code");
|
||||
String islock = json.getString("islock");
|
||||
String barcode = json.getString("barcode");
|
||||
Device device = deviceAppService.findDeviceByCode(device_code);
|
||||
StandardScannerDeviceDriver standardScannerDeviceDriver;
|
||||
@@ -1792,7 +1793,16 @@ public class DeviceServiceImpl implements DeviceService, ApplicationAutoInitial
|
||||
}
|
||||
if (device.getDeviceDriver() instanceof StandardEmptyPalletSiteDeviceDriver) {
|
||||
standardEmptyPalletSiteDeviceDriver = (StandardEmptyPalletSiteDeviceDriver) device.getDeviceDriver();
|
||||
device.setIslock(islock);
|
||||
standardEmptyPalletSiteDeviceDriver.setContainer(barcode);
|
||||
WQLObject runpointwo = WQLObject.getWQLObject("acs_device_runpoint");
|
||||
JSONObject json1 = runpointwo.query("device_code ='" + device_code + "'").uniqueResult(0);
|
||||
if (ObjectUtil.isNotEmpty(json1)) {
|
||||
DeviceRunpointDto obj = (DeviceRunpointDto) JSONObject.toBean(json1, DeviceRunpointDto.class);
|
||||
obj.setIslock(islock);
|
||||
JSONObject updatejson = JSONObject.fromObject(obj);
|
||||
runpointwo.update(updatejson, "device_code = '" + device_code + "'");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -144,7 +144,11 @@ public class StandardInspectSiteDeviceDriver extends AbstractOpcDeviceDriver imp
|
||||
|
||||
if (mode != last_mode) {
|
||||
if (mode == 5){
|
||||
this.setEmptyrequireSucess(false);
|
||||
if (move != last_move){
|
||||
if (move == 0){
|
||||
this.setEmptyrequireSucess(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (mode == 6){
|
||||
this.setInrequireSucess(false);
|
||||
|
||||
@@ -511,18 +511,24 @@ public class StageActorServiceImpl implements StageActorService {
|
||||
else if (device.getDeviceDriver() instanceof StandardInspectSiteDeviceDriver) {
|
||||
standardInspectSiteDevicedriver = (StandardInspectSiteDeviceDriver) device.getDeviceDriver();
|
||||
if (standardInspectSiteDevicedriver.getMode() == 0) {
|
||||
mode = "未联机";
|
||||
} else if (standardInspectSiteDevicedriver.getMode() == 1) {
|
||||
mode = "单机";
|
||||
} else if (standardInspectSiteDevicedriver.getMode() == 2) {
|
||||
mode = "联机";
|
||||
mode = "脱机";
|
||||
} else if (standardInspectSiteDevicedriver.getMode() == 2) {
|
||||
mode = "待机";
|
||||
} else if (standardInspectSiteDevicedriver.getMode() == 3) {
|
||||
mode = "运行中";
|
||||
}else if (standardInspectSiteDevicedriver.getMode() == 4) {
|
||||
mode = "叫料";
|
||||
}else if (standardInspectSiteDevicedriver.getMode() == 5) {
|
||||
mode = "申请空盘";
|
||||
}else if (standardInspectSiteDevicedriver.getMode() == 6) {
|
||||
mode = "申请入库";
|
||||
}
|
||||
if (standardInspectSiteDevicedriver.getMove() == 0) {
|
||||
move = "无货";
|
||||
} else if (standardInspectSiteDevicedriver.getMove() == 1) {
|
||||
move = "有货";
|
||||
move = "有托盘";
|
||||
} else if (standardInspectSiteDevicedriver.getMove() == 2) {
|
||||
move = "有托盘有货";
|
||||
move = "有托盘有物料";
|
||||
}
|
||||
obj.put("device_name", standardInspectSiteDevicedriver.getDevice().getDevice_name());
|
||||
jo.put("mode", mode);
|
||||
@@ -663,24 +669,23 @@ public class StageActorServiceImpl implements StageActorService {
|
||||
else if (device.getDeviceDriver() instanceof StandardEmptyPalletSiteDeviceDriver) {
|
||||
standardEmptyPalletSiteDeviceDriver = (StandardEmptyPalletSiteDeviceDriver) device.getDeviceDriver();
|
||||
if (standardEmptyPalletSiteDeviceDriver.getMode() == 0) {
|
||||
mode = "未联机";
|
||||
} else if (standardEmptyPalletSiteDeviceDriver.getMode() == 1) {
|
||||
mode = "单机";
|
||||
mode = "脱机";
|
||||
} else if (standardEmptyPalletSiteDeviceDriver.getMode() == 2) {
|
||||
mode = "联机";
|
||||
mode = "待机";
|
||||
} else if (standardEmptyPalletSiteDeviceDriver.getMode() == 3) {
|
||||
mode = "申请空盘";
|
||||
}
|
||||
if (standardEmptyPalletSiteDeviceDriver.getMove() == 0) {
|
||||
move = "无货";
|
||||
} else if (standardEmptyPalletSiteDeviceDriver.getMove() == 1) {
|
||||
move = "有货";
|
||||
} else if (standardEmptyPalletSiteDeviceDriver.getMove() == 2) {
|
||||
move = "有托盘有货";
|
||||
move = "有托盘";
|
||||
}
|
||||
obj.put("device_name", standardEmptyPalletSiteDeviceDriver.getDevice().getDevice_name());
|
||||
jo.put("mode", mode);
|
||||
jo.put("move", move);
|
||||
//点击弹出
|
||||
jo.put("is_click", true);
|
||||
jo.put("is_lock",device.getIslock());
|
||||
jo.put("number", standardEmptyPalletSiteDeviceDriver.getNumber());
|
||||
jo.put("hasGoods", standardEmptyPalletSiteDeviceDriver.getHasGoods());
|
||||
jo.put("isOnline", standardEmptyPalletSiteDeviceDriver.getIsonline());
|
||||
|
||||
Reference in New Issue
Block a user