自动化立体仓库 - WMS系统
luxiaotao1123
2021-08-26 37286cd9b177e9a1b8f28bfbc054c8cfedec6a5e
src/main/java/com/zy/common/service/CommonService.java
@@ -91,15 +91,15 @@
     * @return locNo 检索到的库位号
     */
    public StartupDto getLocNo(Integer whsType, Integer staDescId, Integer sourceStaNo, List<String> matNos, int times) {
        if (sourceStaNo == 3) {
            whsType = 1;
        } else if (sourceStaNo == 7) {
            whsType = 2;
        } else if (sourceStaNo == 19) {
            whsType = 3;
        } else {
            throw new CoolException("无效入库站");
        }
//        if (sourceStaNo == 3) {
//            whsType = 1;
//        } else if (sourceStaNo == 7) {
//            whsType = 2;
//        } else if (sourceStaNo == 19) {
//            whsType = 3;
//        } else {
//            throw new CoolException("无效入库站");
//        }
        StartupDto startupDto = new StartupDto();
        RowLastno rowLastno = rowLastnoService.selectById(whsType);
        if (Cools.isEmpty(rowLastno)) {