自动化立体仓库 - WMS系统
pang.jiabao
2025-02-17 a23bf319248345801a7f3110f246336d244e8edc
退货增加退货标识,退货人,退货备注,清空库区和库位值
1个文件已修改
12 ■■■■ 已修改文件
src/main/java/com/zy/asrs/service/impl/PlaServiceImpl.java 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/PlaServiceImpl.java
@@ -125,11 +125,18 @@
            //pla.setStatus(GlobleParameter.PLA_STATUS_0);
            pla.setModifyTime(new Date());
            // 退货人 modify_user,退货备注 create_user,退货标识 transfer
            pla.setModifyUser(user.getUsername());
            pla.setCreateUser(plaQty.getMemo());
            pla.setTransfer("退货");
            pla.setStash(""); // 库区
            pla.setLocNo(""); // 库位
            pla.setWeightAnfme(pla.getWeightAnfme() + plaQty.getOrderWeight());
            pla.setStatus(GlobleParameter.PLA_STATUS_1);
            this.updateById(pla);
            SaasUtils.insertLog(0,pla.getLocNo(),pla.getBrand(),plaQty.getOrderWeight(),user.getUsername(),
            SaasUtils.insertLog(4,pla.getLocNo(),pla.getBrand(),plaQty.getOrderWeight(),user.getUsername(),
                    null,pla.getBatch(),pla.getPackageNo(),pla.getOwner(),pla.getWorkshop(),null);
        });
@@ -165,6 +172,7 @@
        Object status = page.getCondition().get("status");
        String type = (String) page.getCondition().get("type");
        String workshop = (String) page.getCondition().get("workshop");
        String transfer = (String) page.getCondition().get("transfer");
        String createTime = create_time == null ? null : create_time.toString();
        if(!Cools.isEmpty(createTime)){
@@ -172,7 +180,7 @@
            stime = DateUtils.convert(dates[0]);
            etime = DateUtils.convert(dates[1]);
        }
        plaList=baseMapper.getStockStatisAll(brand == null ? null:brand.toString(), status == null ? null:status.toString(),  stime,etime, type, workshop);
        plaList=baseMapper.getStockStatisAll(brand == null ? null:brand.toString(), status == null ? null:status.toString(),  stime,etime, type, workshop, transfer);
        double weightSum = plaList.stream().mapToDouble(Pla::getWeight).sum();