自动化立体仓库 - WMS系统
zyx
2024-04-02 68a67eab771eb281f5f105b1af87b05d58953bc6
变更:同个容器多次组托
3个文件已修改
13 ■■■■ 已修改文件
src/main/java/com/zy/asrs/controller/AgvMobileController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/AgvMobileServiceImpl.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/common/service/erp/task/ErpScheduler.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/AgvMobileController.java
@@ -54,7 +54,7 @@
    public R combBinding(@RequestBody Map<String,Object> map){
        String barcode = map.get("barcode").toString();
        String stationCode = map.get("stationCode").toString();
        Short containerType = Short.valueOf(map.get("containerType").toString());
        Short containerType = Short.valueOf(barcode.substring(0,2));
        agvMobileService.combBinding(barcode,stationCode,containerType);
        return R.ok("托盘绑定站点成功");
    }
src/main/java/com/zy/asrs/service/impl/AgvMobileServiceImpl.java
@@ -57,10 +57,10 @@
        }
        param.setContainerType(Short.valueOf(param.getBarcode().substring(0,2)));
        //检查是否已存在相同的托盘条码,存在则抛出异常
        if (agvWaitPakinService.selectCount(new EntityWrapper<AgvWaitPakin>().eq("supp_code", param.getBarcode())) > 0) {
            throw new CoolException(param.getBarcode() + "料想码已存在AGV入库通知档中");
        }
//        //检查是否已存在相同的托盘条码,存在则抛出异常
//        if (agvWaitPakinService.selectCount(new EntityWrapper<AgvWaitPakin>().eq("supp_code", param.getBarcode())) > 0) {
//            throw new CoolException(param.getBarcode() + "料想码已存在AGV入库通知档中");
//        }
        //检查库存是否有相同料箱,存在则抛出异常
        if(!Cools.isEmpty(agvLocDetlService.selectOne(new EntityWrapper<AgvLocDetl>().eq("supp_code",param.getBarcode())))){
src/main/java/com/zy/common/service/erp/task/ErpScheduler.java
@@ -11,7 +11,6 @@
import com.zy.common.service.erp.entity.WlzhVStRd;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
@@ -37,7 +36,7 @@
    private InventoryVarianceService inventoryVarianceService;
    @Scheduled(cron = "0 0 2 * * ? ")
    //@Scheduled(cron = "0 0 2 * * ? ")
    public void syncLocDetl(){
        log.info("库存差异信息清除");
        inventoryVarianceService.deleteAll();