|
@ -13,6 +13,13 @@ import com.alibaba.fastjson.JSONObject; |
|
|
import lombok.RequiredArgsConstructor; |
|
|
import lombok.RequiredArgsConstructor; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.nl.acs.device_driver.electric_fence.ElectricFenceDeviceDriver; |
|
|
import org.nl.acs.device_driver.electric_fence.ElectricFenceDeviceDriver; |
|
|
|
|
|
import org.nl.acs.device_driver.hailiang.hailiang_coating.HaiLiangCoatingDeviceDriver; |
|
|
|
|
|
import org.nl.acs.device_driver.hailiang.hailiang_feeding.HaiLiangFeedingDeviceDriver; |
|
|
|
|
|
import org.nl.acs.device_driver.hailiang.hailiang_feeding_trunk.HaiLiangFeedingTrunkDeviceDriver; |
|
|
|
|
|
import org.nl.acs.device_driver.hailiang.hailiang_labeling.HaiLiangLabelingDeviceDriver; |
|
|
|
|
|
import org.nl.acs.device_driver.hailiang.hailiang_lettering.HaiLiangLetteringDeviceDriver; |
|
|
|
|
|
import org.nl.acs.device_driver.hailiang.hailiang_risking.HaiLiangRiskingDeviceDriver; |
|
|
|
|
|
import org.nl.acs.device_driver.hailiang.hailiang_strapping.HaiLiangStrappingDeviceDriver; |
|
|
import org.nl.acs.device_driver.machines_site.MachinesSiteDeviceDriver; |
|
|
import org.nl.acs.device_driver.machines_site.MachinesSiteDeviceDriver; |
|
|
import org.nl.acs.device_driver.non_line_inspect_site.NonLineInspectSiteDeviceDriver; |
|
|
import org.nl.acs.device_driver.non_line_inspect_site.NonLineInspectSiteDeviceDriver; |
|
|
import org.nl.acs.device_driver.non_line_manipulator_inspect_site.NonLineManipulatorInspectSiteDeviceDriver; |
|
|
import org.nl.acs.device_driver.non_line_manipulator_inspect_site.NonLineManipulatorInspectSiteDeviceDriver; |
|
@ -323,6 +330,21 @@ public class StageActorServiceImpl implements StageActorService { |
|
|
StandardRGVDeviceDriver standardRGVDeviceDriver; |
|
|
StandardRGVDeviceDriver standardRGVDeviceDriver; |
|
|
//电子围栏
|
|
|
//电子围栏
|
|
|
ElectricFenceDeviceDriver electricFenceDeviceDriver; |
|
|
ElectricFenceDeviceDriver electricFenceDeviceDriver; |
|
|
|
|
|
//海亮包装项目-上料总线体
|
|
|
|
|
|
HaiLiangFeedingTrunkDeviceDriver haiLiangFeedingTrunkDeviceDriver; |
|
|
|
|
|
//海亮包装项目-上料线体
|
|
|
|
|
|
HaiLiangFeedingDeviceDriver haiLiangFeedingDeviceDriver; |
|
|
|
|
|
//海亮包装项目-刻字线体
|
|
|
|
|
|
HaiLiangLetteringDeviceDriver haiLiangLetteringDeviceDriver; |
|
|
|
|
|
//海亮包装项目-套冒线体
|
|
|
|
|
|
HaiLiangRiskingDeviceDriver haiLiangRiskingDeviceDriver; |
|
|
|
|
|
//海亮包装项目-捆扎线体
|
|
|
|
|
|
HaiLiangStrappingDeviceDriver haiLiangStrappingDeviceDriver; |
|
|
|
|
|
//海亮包装项目-裹膜线体
|
|
|
|
|
|
HaiLiangCoatingDeviceDriver haiLiangCoatingDeviceDriver; |
|
|
|
|
|
//海亮包装项目-贴标线体
|
|
|
|
|
|
HaiLiangLabelingDeviceDriver haiLiangLabelingDeviceDriver; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (device.getDeviceDriver() instanceof StandardCoveyorControlDeviceDriver) { |
|
|
if (device.getDeviceDriver() instanceof StandardCoveyorControlDeviceDriver) { |
|
|
standardCoveyorControlDeviceDriver = (StandardCoveyorControlDeviceDriver) device.getDeviceDriver(); |
|
|
standardCoveyorControlDeviceDriver = (StandardCoveyorControlDeviceDriver) device.getDeviceDriver(); |
|
@ -914,6 +936,241 @@ public class StageActorServiceImpl implements StageActorService { |
|
|
jo.put("error", electricFenceDeviceDriver.getError()); |
|
|
jo.put("error", electricFenceDeviceDriver.getError()); |
|
|
jo.put("isError", electricFenceDeviceDriver.getIserror()); |
|
|
jo.put("isError", electricFenceDeviceDriver.getIserror()); |
|
|
} |
|
|
} |
|
|
|
|
|
else if (device.getDeviceDriver() instanceof HaiLiangFeedingTrunkDeviceDriver) { |
|
|
|
|
|
haiLiangFeedingTrunkDeviceDriver = (HaiLiangFeedingTrunkDeviceDriver) device.getDeviceDriver(); |
|
|
|
|
|
if (haiLiangFeedingTrunkDeviceDriver.getMode() == 0) { |
|
|
|
|
|
mode = "未联机"; |
|
|
|
|
|
} else if (haiLiangFeedingTrunkDeviceDriver.getMode() == 1) { |
|
|
|
|
|
mode = "单机"; |
|
|
|
|
|
} else if (haiLiangFeedingTrunkDeviceDriver.getMode() == 2) { |
|
|
|
|
|
mode = "联机"; |
|
|
|
|
|
} else if (haiLiangFeedingTrunkDeviceDriver.getMode() == 3) { |
|
|
|
|
|
mode = "工作中"; |
|
|
|
|
|
} else if (haiLiangFeedingTrunkDeviceDriver.getMode() == 4) { |
|
|
|
|
|
mode = "申请工单"; |
|
|
|
|
|
} else if (haiLiangFeedingTrunkDeviceDriver.getMode() == 5) { |
|
|
|
|
|
mode = "申请工单明细号"; |
|
|
|
|
|
} else if (haiLiangFeedingTrunkDeviceDriver.getMode() == 6) { |
|
|
|
|
|
mode = "急停"; |
|
|
|
|
|
} |
|
|
|
|
|
obj.put("device_name", haiLiangFeedingTrunkDeviceDriver.getDevice().getDevice_name()); |
|
|
|
|
|
jo.put("mode", mode); |
|
|
|
|
|
jo.put("error", haiLiangFeedingTrunkDeviceDriver.getError()); |
|
|
|
|
|
jo.put("order", haiLiangFeedingTrunkDeviceDriver.getOrder()); |
|
|
|
|
|
jo.put("order_detail", haiLiangFeedingTrunkDeviceDriver.getOrder_detail()); |
|
|
|
|
|
jo.put("last_order_detail", haiLiangFeedingTrunkDeviceDriver.getLast_order_detail()); |
|
|
|
|
|
jo.put("order_feeding_qty", haiLiangFeedingTrunkDeviceDriver.getOrder_feeding_qty()); |
|
|
|
|
|
jo.put("detail_feeding_qty", haiLiangFeedingTrunkDeviceDriver.getDetail_feeding_qty()); |
|
|
|
|
|
jo.put("detail_feeding_qualified_qty", haiLiangFeedingTrunkDeviceDriver.getDetail_feeding_qualified_qty()); |
|
|
|
|
|
jo.put("detail_lettering_qty", haiLiangFeedingTrunkDeviceDriver.getDetail_lettering_qty()); |
|
|
|
|
|
jo.put("detail_lettering_qualified_qty", haiLiangFeedingTrunkDeviceDriver.getDetail_lettering_qualified_qty()); |
|
|
|
|
|
jo.put("detail_risking_qualified_qty", haiLiangFeedingTrunkDeviceDriver.getDetail_risking_qualified_qty()); |
|
|
|
|
|
jo.put("detail_risking_qty", haiLiangFeedingTrunkDeviceDriver.getDetail_risking_qty()); |
|
|
|
|
|
jo.put("detail_strapping_qty", haiLiangFeedingTrunkDeviceDriver.getDetail_strapping_qty()); |
|
|
|
|
|
jo.put("detail_strapping_oneqty", haiLiangFeedingTrunkDeviceDriver.getDetail_strapping_oneqty()); |
|
|
|
|
|
jo.put("detail_coating_qty", haiLiangFeedingTrunkDeviceDriver.getDetail_coating_qty()); |
|
|
|
|
|
jo.put("labeling_order", haiLiangFeedingTrunkDeviceDriver.getLabeling_order()); |
|
|
|
|
|
jo.put("detail_labeling_qualified_qty", haiLiangFeedingTrunkDeviceDriver.getDetail_labeling_qualified_qty()); |
|
|
|
|
|
jo.put("detail_labeling_qty", haiLiangFeedingTrunkDeviceDriver.getDetail_labeling_qty()); |
|
|
|
|
|
jo.put("ready", haiLiangFeedingTrunkDeviceDriver.getReady()); |
|
|
|
|
|
jo.put("clear", haiLiangFeedingTrunkDeviceDriver.getClear()); |
|
|
|
|
|
jo.put("pause", haiLiangFeedingTrunkDeviceDriver.getPause()); |
|
|
|
|
|
jo.put("line_speed", haiLiangFeedingTrunkDeviceDriver.getLine_speed()); |
|
|
|
|
|
jo.put("feeding_mouth", haiLiangFeedingTrunkDeviceDriver.getFeeding_mouth()); |
|
|
|
|
|
jo.put("is_lettering", haiLiangFeedingTrunkDeviceDriver.getIs_lettering()); |
|
|
|
|
|
jo.put("is_risking", haiLiangFeedingTrunkDeviceDriver.getIs_risking()); |
|
|
|
|
|
jo.put("is_coating", haiLiangFeedingTrunkDeviceDriver.getIs_coating()); |
|
|
|
|
|
jo.put("is_strapping", haiLiangFeedingTrunkDeviceDriver.getIs_strapping()); |
|
|
|
|
|
jo.put("is_labeling", haiLiangFeedingTrunkDeviceDriver.getIs_labeling()); |
|
|
|
|
|
jo.put("delay_time", haiLiangFeedingTrunkDeviceDriver.getDelay_time()); |
|
|
|
|
|
jo.put("lettering_frequency", haiLiangFeedingTrunkDeviceDriver.getLettering_frequency()); |
|
|
|
|
|
jo.put("one_speed", haiLiangFeedingTrunkDeviceDriver.getOne_speed()); |
|
|
|
|
|
jo.put("coating_frequency", haiLiangFeedingTrunkDeviceDriver.getCoating_frequency()); |
|
|
|
|
|
} |
|
|
|
|
|
//海亮包装项目-上料线体
|
|
|
|
|
|
else if (device.getDeviceDriver() instanceof HaiLiangFeedingDeviceDriver) { |
|
|
|
|
|
haiLiangFeedingDeviceDriver = (HaiLiangFeedingDeviceDriver) device.getDeviceDriver(); |
|
|
|
|
|
if (haiLiangFeedingDeviceDriver.getMode() == 0) { |
|
|
|
|
|
mode = "未联机"; |
|
|
|
|
|
} else if (haiLiangFeedingDeviceDriver.getMode() == 1) { |
|
|
|
|
|
mode = "单机"; |
|
|
|
|
|
} else if (haiLiangFeedingDeviceDriver.getMode() == 2) { |
|
|
|
|
|
mode = "联机"; |
|
|
|
|
|
} else if (haiLiangFeedingDeviceDriver.getMode() == 3) { |
|
|
|
|
|
mode = "工作中"; |
|
|
|
|
|
} else if (haiLiangFeedingDeviceDriver.getMode() == 4) { |
|
|
|
|
|
mode = "上料完成"; |
|
|
|
|
|
} else if (haiLiangFeedingDeviceDriver.getMode() == 5) { |
|
|
|
|
|
mode = "强制上料完成"; |
|
|
|
|
|
} |
|
|
|
|
|
if (haiLiangFeedingDeviceDriver.getMove() == 0) { |
|
|
|
|
|
move = "无货"; |
|
|
|
|
|
} else if (haiLiangFeedingDeviceDriver.getMove() == 1) { |
|
|
|
|
|
move = "有货"; |
|
|
|
|
|
} |
|
|
|
|
|
obj.put("device_name", haiLiangFeedingDeviceDriver.getDevice().getDevice_name()); |
|
|
|
|
|
jo.put("mode", mode); |
|
|
|
|
|
jo.put("move", move); |
|
|
|
|
|
jo.put("error", haiLiangFeedingDeviceDriver.getError()); |
|
|
|
|
|
jo.put("order", haiLiangFeedingDeviceDriver.getOrder()); |
|
|
|
|
|
jo.put("order_detail", haiLiangFeedingDeviceDriver.getOrder_detail()); |
|
|
|
|
|
jo.put("order_qty", haiLiangFeedingDeviceDriver.getOrder_qty()); |
|
|
|
|
|
jo.put("order_qualified_qty", haiLiangFeedingDeviceDriver.getOrder_qualified_qty()); |
|
|
|
|
|
jo.put("detail_qty", haiLiangFeedingDeviceDriver.getDetail_qty()); |
|
|
|
|
|
jo.put("detail_qualified_qty", haiLiangFeedingDeviceDriver.getDetail_qualified_qty()); |
|
|
|
|
|
} |
|
|
|
|
|
//海亮包装项目-刻字线体
|
|
|
|
|
|
else if (device.getDeviceDriver() instanceof HaiLiangLetteringDeviceDriver) { |
|
|
|
|
|
haiLiangLetteringDeviceDriver = (HaiLiangLetteringDeviceDriver) device.getDeviceDriver(); |
|
|
|
|
|
if (haiLiangLetteringDeviceDriver.getMode() == 0) { |
|
|
|
|
|
mode = "未联机"; |
|
|
|
|
|
} else if (haiLiangLetteringDeviceDriver.getMode() == 1) { |
|
|
|
|
|
mode = "单机"; |
|
|
|
|
|
} else if (haiLiangLetteringDeviceDriver.getMode() == 2) { |
|
|
|
|
|
mode = "联机"; |
|
|
|
|
|
} else if (haiLiangLetteringDeviceDriver.getMode() == 3) { |
|
|
|
|
|
mode = "工作中"; |
|
|
|
|
|
} else if (haiLiangLetteringDeviceDriver.getMode() == 4) { |
|
|
|
|
|
mode = "刻字完成"; |
|
|
|
|
|
} else if (haiLiangLetteringDeviceDriver.getMode() == 5) { |
|
|
|
|
|
mode = "强制刻字完成"; |
|
|
|
|
|
} |
|
|
|
|
|
if (haiLiangLetteringDeviceDriver.getMove() == 0) { |
|
|
|
|
|
move = "无货"; |
|
|
|
|
|
} else if (haiLiangLetteringDeviceDriver.getMove() == 1) { |
|
|
|
|
|
move = "有货"; |
|
|
|
|
|
} |
|
|
|
|
|
obj.put("device_name", haiLiangLetteringDeviceDriver.getDevice().getDevice_name()); |
|
|
|
|
|
jo.put("mode", mode); |
|
|
|
|
|
jo.put("move", move); |
|
|
|
|
|
jo.put("error", haiLiangLetteringDeviceDriver.getError()); |
|
|
|
|
|
jo.put("order", haiLiangLetteringDeviceDriver.getOrder()); |
|
|
|
|
|
jo.put("order_detail", haiLiangLetteringDeviceDriver.getOrder_detail()); |
|
|
|
|
|
jo.put("detail_qty", haiLiangLetteringDeviceDriver.getDetail_qty()); |
|
|
|
|
|
jo.put("detail_qualified_qty", haiLiangLetteringDeviceDriver.getDetail_qualified_qty()); |
|
|
|
|
|
} |
|
|
|
|
|
//海亮包装项目-套冒线体
|
|
|
|
|
|
else if (device.getDeviceDriver() instanceof HaiLiangRiskingDeviceDriver) { |
|
|
|
|
|
haiLiangRiskingDeviceDriver = (HaiLiangRiskingDeviceDriver) device.getDeviceDriver(); |
|
|
|
|
|
if (haiLiangRiskingDeviceDriver.getMode() == 0) { |
|
|
|
|
|
mode = "未联机"; |
|
|
|
|
|
} else if (haiLiangRiskingDeviceDriver.getMode() == 1) { |
|
|
|
|
|
mode = "单机"; |
|
|
|
|
|
} else if (haiLiangRiskingDeviceDriver.getMode() == 2) { |
|
|
|
|
|
mode = "联机"; |
|
|
|
|
|
} else if (haiLiangRiskingDeviceDriver.getMode() == 3) { |
|
|
|
|
|
mode = "工作中"; |
|
|
|
|
|
} else if (haiLiangRiskingDeviceDriver.getMode() == 4) { |
|
|
|
|
|
mode = "套冒完成"; |
|
|
|
|
|
} else if (haiLiangRiskingDeviceDriver.getMode() == 5) { |
|
|
|
|
|
mode = "强制套冒完成"; |
|
|
|
|
|
} |
|
|
|
|
|
if (haiLiangRiskingDeviceDriver.getMove() == 0) { |
|
|
|
|
|
move = "无货"; |
|
|
|
|
|
} else if (haiLiangRiskingDeviceDriver.getMove() == 1) { |
|
|
|
|
|
move = "有货"; |
|
|
|
|
|
} |
|
|
|
|
|
obj.put("device_name", haiLiangRiskingDeviceDriver.getDevice().getDevice_name()); |
|
|
|
|
|
jo.put("mode", mode); |
|
|
|
|
|
jo.put("move", move); |
|
|
|
|
|
jo.put("error", haiLiangRiskingDeviceDriver.getError()); |
|
|
|
|
|
jo.put("order", haiLiangRiskingDeviceDriver.getOrder()); |
|
|
|
|
|
jo.put("order_detail", haiLiangRiskingDeviceDriver.getOrder_detail()); |
|
|
|
|
|
jo.put("detail_qty", haiLiangRiskingDeviceDriver.getDetail_qty()); |
|
|
|
|
|
jo.put("detail_qualified_qty", haiLiangRiskingDeviceDriver.getDetail_qualified_qty()); |
|
|
|
|
|
} |
|
|
|
|
|
//海亮包装项目-捆扎线体
|
|
|
|
|
|
else if (device.getDeviceDriver() instanceof HaiLiangStrappingDeviceDriver) { |
|
|
|
|
|
haiLiangStrappingDeviceDriver = (HaiLiangStrappingDeviceDriver) device.getDeviceDriver(); |
|
|
|
|
|
if (haiLiangStrappingDeviceDriver.getMode() == 0) { |
|
|
|
|
|
mode = "未联机"; |
|
|
|
|
|
} else if (haiLiangStrappingDeviceDriver.getMode() == 1) { |
|
|
|
|
|
mode = "单机"; |
|
|
|
|
|
} else if (haiLiangStrappingDeviceDriver.getMode() == 2) { |
|
|
|
|
|
mode = "联机"; |
|
|
|
|
|
} else if (haiLiangStrappingDeviceDriver.getMode() == 3) { |
|
|
|
|
|
mode = "工作中"; |
|
|
|
|
|
} else if (haiLiangStrappingDeviceDriver.getMode() == 4) { |
|
|
|
|
|
mode = "捆扎完成"; |
|
|
|
|
|
} else if (haiLiangStrappingDeviceDriver.getMode() == 5) { |
|
|
|
|
|
mode = "强制捆扎完成"; |
|
|
|
|
|
} |
|
|
|
|
|
if (haiLiangStrappingDeviceDriver.getMove() == 0) { |
|
|
|
|
|
move = "无货"; |
|
|
|
|
|
} else if (haiLiangStrappingDeviceDriver.getMove() == 1) { |
|
|
|
|
|
move = "有货"; |
|
|
|
|
|
} |
|
|
|
|
|
obj.put("device_name", haiLiangStrappingDeviceDriver.getDevice().getDevice_name()); |
|
|
|
|
|
jo.put("mode", mode); |
|
|
|
|
|
jo.put("move", move); |
|
|
|
|
|
jo.put("error", haiLiangStrappingDeviceDriver.getError()); |
|
|
|
|
|
jo.put("order", haiLiangStrappingDeviceDriver.getOrder()); |
|
|
|
|
|
jo.put("order_detail", haiLiangStrappingDeviceDriver.getOrder_detail()); |
|
|
|
|
|
jo.put("detail_qty", haiLiangStrappingDeviceDriver.getDetail_qty()); |
|
|
|
|
|
jo.put("detail_qualified_qty", haiLiangStrappingDeviceDriver.getDetail_qualified_qty()); |
|
|
|
|
|
jo.put("cache_qty", haiLiangStrappingDeviceDriver.getCache_qty()); |
|
|
|
|
|
jo.put("qty", haiLiangStrappingDeviceDriver.getQty()); |
|
|
|
|
|
} |
|
|
|
|
|
//海亮包装项目-裹膜线体
|
|
|
|
|
|
else if (device.getDeviceDriver() instanceof HaiLiangCoatingDeviceDriver) { |
|
|
|
|
|
haiLiangCoatingDeviceDriver = (HaiLiangCoatingDeviceDriver) device.getDeviceDriver(); |
|
|
|
|
|
if (haiLiangCoatingDeviceDriver.getMode() == 0) { |
|
|
|
|
|
mode = "未联机"; |
|
|
|
|
|
} else if (haiLiangCoatingDeviceDriver.getMode() == 1) { |
|
|
|
|
|
mode = "单机"; |
|
|
|
|
|
} else if (haiLiangCoatingDeviceDriver.getMode() == 2) { |
|
|
|
|
|
mode = "联机"; |
|
|
|
|
|
} else if (haiLiangCoatingDeviceDriver.getMode() == 3) { |
|
|
|
|
|
mode = "工作中"; |
|
|
|
|
|
} else if (haiLiangCoatingDeviceDriver.getMode() == 4) { |
|
|
|
|
|
mode = "裹膜完成"; |
|
|
|
|
|
} else if (haiLiangCoatingDeviceDriver.getMode() == 5) { |
|
|
|
|
|
mode = "强制裹膜完成"; |
|
|
|
|
|
} |
|
|
|
|
|
if (haiLiangCoatingDeviceDriver.getMove() == 0) { |
|
|
|
|
|
move = "无货"; |
|
|
|
|
|
} else if (haiLiangCoatingDeviceDriver.getMove() == 1) { |
|
|
|
|
|
move = "有货"; |
|
|
|
|
|
} |
|
|
|
|
|
obj.put("device_name", haiLiangCoatingDeviceDriver.getDevice().getDevice_name()); |
|
|
|
|
|
jo.put("mode", mode); |
|
|
|
|
|
jo.put("move", move); |
|
|
|
|
|
jo.put("error", haiLiangCoatingDeviceDriver.getError()); |
|
|
|
|
|
jo.put("order", haiLiangCoatingDeviceDriver.getOrder()); |
|
|
|
|
|
jo.put("order_detail", haiLiangCoatingDeviceDriver.getOrder_detail()); |
|
|
|
|
|
jo.put("detail_qty", haiLiangCoatingDeviceDriver.getDetail_qty()); |
|
|
|
|
|
jo.put("detail_qualified_qty", haiLiangCoatingDeviceDriver.getDetail_qualified_qty()); |
|
|
|
|
|
} |
|
|
|
|
|
//海亮包装项目-贴标线体
|
|
|
|
|
|
else if (device.getDeviceDriver() instanceof HaiLiangLabelingDeviceDriver) { |
|
|
|
|
|
haiLiangLabelingDeviceDriver = (HaiLiangLabelingDeviceDriver) device.getDeviceDriver(); |
|
|
|
|
|
if (haiLiangLabelingDeviceDriver.getMode() == 0) { |
|
|
|
|
|
mode = "未联机"; |
|
|
|
|
|
} else if (haiLiangLabelingDeviceDriver.getMode() == 1) { |
|
|
|
|
|
mode = "单机"; |
|
|
|
|
|
} else if (haiLiangLabelingDeviceDriver.getMode() == 2) { |
|
|
|
|
|
mode = "联机"; |
|
|
|
|
|
} else if (haiLiangLabelingDeviceDriver.getMode() == 3) { |
|
|
|
|
|
mode = "工作中"; |
|
|
|
|
|
} else if (haiLiangLabelingDeviceDriver.getMode() == 4) { |
|
|
|
|
|
mode = "工单完成"; |
|
|
|
|
|
} else if (haiLiangLabelingDeviceDriver.getMode() == 5) { |
|
|
|
|
|
mode = "强制工单完成"; |
|
|
|
|
|
} |
|
|
|
|
|
if (haiLiangLabelingDeviceDriver.getMove() == 0) { |
|
|
|
|
|
move = "无货"; |
|
|
|
|
|
} else if (haiLiangLabelingDeviceDriver.getMove() == 1) { |
|
|
|
|
|
move = "有货"; |
|
|
|
|
|
} |
|
|
|
|
|
obj.put("device_name", haiLiangLabelingDeviceDriver.getDevice().getDevice_name()); |
|
|
|
|
|
jo.put("mode", mode); |
|
|
|
|
|
jo.put("move", move); |
|
|
|
|
|
jo.put("error", haiLiangLabelingDeviceDriver.getError()); |
|
|
|
|
|
jo.put("order", haiLiangLabelingDeviceDriver.getOrder()); |
|
|
|
|
|
jo.put("order_detail", haiLiangLabelingDeviceDriver.getOrder_detail()); |
|
|
|
|
|
jo.put("detail_qty", haiLiangLabelingDeviceDriver.getDetail_qty()); |
|
|
|
|
|
jo.put("detail_qualified_qty", haiLiangLabelingDeviceDriver.getDetail_qualified_qty()); |
|
|
|
|
|
} |
|
|
obj.put("data", jo); |
|
|
obj.put("data", jo); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|