自动化立体仓库 - WMS系统
#
gt-fuwuqi
2024-11-30 891fa06cf39c457a07214f1c82efc0b12b4c1d43
src/main/java/com/zy/common/web/WcsController.java
@@ -66,7 +66,7 @@
        String sta = param.get("sta");
        // 命令集合
        List<LedCommand> commands = new ArrayList<>();
        if ("0".equals(sta)) {
        if (!"0".equals(taskNo)) {
            // 工作档集合
            List<WrkMast> wrkMasts = new ArrayList<>();
@@ -139,7 +139,7 @@
            for (WrkMast wrkMast1 : wrkMasts) {
                wrkMast1.setOveMk("Y");
                wrkMast1.setModiTime(new Date());
                if (wrkMastService.updateById(wrkMast1)) {
                if (!wrkMastService.update(wrkMast1,new EntityWrapper<WrkMast>().eq("wrk_No",wrkMast1.getWrkNo()))) {
                    throw new CoolException("更新工作档失败");
                }
            }
@@ -160,7 +160,7 @@
    public synchronized R getledError(@RequestBody Map<String, String> param) {
        String sta = param.get("sta");
        String message = param.get("msg");
        if (Cools.isEmpty(sta) || Cools.isEmpty(message)) {
        if (Cools.isEmpty(sta) ) {
            return R.error();
        }
        Map<String,Object> map=new HashMap<String, Object>();
@@ -192,7 +192,7 @@
        if (Cools.isEmpty(staDesc)){
            throw new CoolException("未找到站点路径");
        }
        if (wrkMast.getWrkSts() == 14 && wrkMast.getIoType() == 103){
        if (wrkMast.getWrkSts() == 14 && (wrkMast.getIoType() == 103 || wrkMast.getIoType() == 107)){
            try {
                // 保存工作明细档历史档
                if (wrkMastService.saveWrkDetlLog(wrkMast.getWrkNo()) == 0) {
@@ -399,7 +399,7 @@
        }
        WrkMast wrkMastPakin = wrkMastService.selectOne(new EntityWrapper<WrkMast>()
                .eq("barcode", param.getBarcode())
                .in("io_type", 103,53)
                .in("io_type", 103,53,107,57)
                .eq("wrk_sts",14));
        if (!Cools.isEmpty(wrkMastPakin)){
            StartupDto locNo3 = getLocNo3(param);