自动化立体仓库 - WCS系统
#
Junjie
昨天 e377f0ffba61c38f4f171d99e9ab6c3591f1d1b7
src/main/java/com/zy/asrs/service/impl/BasCrnpServiceImpl.java
@@ -7,11 +7,15 @@
import com.zy.asrs.mapper.BasCrnpMapper;
import com.zy.asrs.service.BasCrnpService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
@Slf4j
@Service("basCrnpService")
public class BasCrnpServiceImpl extends ServiceImpl<BasCrnpMapper, BasCrnp> implements BasCrnpService {
    @Value("${wms.count}")
    private Integer maxCount;
    @Override
    public BasCrnp checkSiteStatus(Integer crnId) {
@@ -36,6 +40,11 @@
            return false;
        }
        if (pakin) {
//            int storeCount = wrkMastService.getStoreCount(crnNo);
//            if(storeCount >= maxCount){
//                log.error("{}号堆垛机暂存数已满!", crnNo);
//                return false;
//            }
            if ("N".equals(crnp.getInEnable())) {
                log.error("{}号堆垛机不可入", crnNo);
                return false;
@@ -60,4 +69,5 @@
//        }
        return true;
    }
}