自动化立体仓库 - WMS系统
#
Administrator
3 天以前 e955eb6077fc28f0ad379af45c5adec1962eeff6
src/main/java/com/zy/api/service/impl/WcsApiServiceImpl.java
@@ -18,6 +18,8 @@
import com.zy.common.constant.MesConstant;
import com.zy.common.service.CommonService;
import com.zy.common.utils.HttpHandler;
import com.zy.system.entity.Config;
import com.zy.system.service.ConfigService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
@@ -48,6 +50,8 @@
    private WrkMastService wrkMastService;
    @Autowired
    private WorkService workService;
    @Autowired
    private ConfigService configService;
    @Autowired
    private WrkDetlService wrkDetlService;
    @Autowired
@@ -156,10 +160,12 @@
            throw new CoolException("未指定回库类型!!");
        }
        LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no",mast.getLocNo()));
        if((mast.getCrnNo() != locMast.getCrnNo()) && mast.getIsSuplus()!=0){ //若源库位不在本巷道/空板直接回本巷道
            return workService.backLocOperationV2(mast.getWrkNo() + "", mast.getAppeUser());
        Config config = configService.selectConfigByCode("BackLocV2");
        if (!Cools.isEmpty(config) && config.getValue().equals("true")) {
            if((mast.getCrnNo() != locMast.getCrnNo()) && mast.getIsSuplus()!=0){ //若源库位不在本巷道/空板直接回本巷道
                return workService.backLocOperationV2(mast.getWrkNo() + "", mast.getAppeUser());
            }
        }
        return workService.backLocOperation(mast.getWrkNo() + "", mast.getAppeUser());
    }