自动化立体仓库 - WMS系统
Administrator
2023-12-12 3aaa2f73d832be9f277e3bad798896d061c85516
src/main/java/com/zy/common/service/CommonService.java
@@ -106,7 +106,7 @@
     * @param matNos      物料号集合
     * @return locNo 检索到的库位号
     */
    public StartupDto getLocNo(Integer whsType, Integer staDescId, Integer sourceStaNo, List<String> matNos, LocTypeDto locTypeDto) {
    public StartupDto getLocNo(Integer whsType, Integer staDescId, Integer sourceStaNo, List<String> matNos, LocTypeDto locTypeDto, Integer matTypeIn) {
        int start;
        int end;
        Integer matType = null;//物料类型
@@ -178,6 +178,11 @@
                    throw new CoolException("混放物料类型不一致");
                }
            }
            if (!Cools.isEmpty(matTypeIn)) {
                if (!matTypeIn.equals(0)) {
                    matType = matTypeIn;
                }
            }
            if (matNos.size() > 1 && matType == 1) {
                //物料为单品类型,且物料种类超过1(实际为高频混放),则禁止入库