自动化立体仓库 - WMS系统
#1
dubin
4 天以前 aa360de4381100150d34a469ecc087a78cf1720e
#1
8个文件已修改
34 ■■■■■ 已修改文件
pom.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/mapper/LocMastMapper.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/LocMastService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/LocMastServiceImpl.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/common/service/CommonService.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/common/web/WcsController.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/LocMastMapper.xml 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/pakStore/emptyOut.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pom.xml
@@ -117,7 +117,7 @@
    <build>
        <finalName>zjhlasrs</finalName>
        <finalName>wms</finalName>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
src/main/java/com/zy/asrs/mapper/LocMastMapper.java
@@ -47,7 +47,7 @@
    LocMast selectByBarcode(@Param("zpallet")String zpallet);
    LocMast queryLocToOne(Short locType1);
    LocMast queryLocToOne(@Param("locType2") Short locType2);
    LocMast queryLocToTwo(Short locType2);
    LocMast queryLocToTwo(@Param("locType2") Short locType2);
}
src/main/java/com/zy/asrs/service/LocMastService.java
@@ -53,7 +53,7 @@
    LocMast selectByBarcode(String zpallet);
    LocMast queryLocToOne(Short locType1);
    LocMast queryLocToOne(Short locType2);
    LocMast queryLocToTwo(Short locType2);
}
src/main/java/com/zy/asrs/service/impl/LocMastServiceImpl.java
@@ -71,8 +71,8 @@
    }
    @Override
    public LocMast queryLocToOne(Short locType1) {
        return this.baseMapper.queryLocToOne(locType1);
    public LocMast queryLocToOne(Short locType2) {
        return this.baseMapper.queryLocToOne(locType2);
    }
    @Override
src/main/java/com/zy/common/service/CommonService.java
@@ -383,9 +383,9 @@
    public StartupDto getLocNoToOne(Integer whsType, Integer staDescId, Integer sourceStaNo, String matnr, String batch, String grade, Integer moveCrnNo, LocTypeDto locTypeDto, int times) {
        //目标库位
        LocMast locMast = null;
        if (locTypeDto.getLocType2()==5||locTypeDto.getLocType2()==6){
        if (locTypeDto.getLocType2()==5||locTypeDto.getLocType2()==6||locTypeDto.getLocType2()==4){
            //1号巷道 3种货物类型
            locMast=locMastService.queryLocToOne(locTypeDto.getLocType1());
            locMast=locMastService.queryLocToOne(locTypeDto.getLocType2());
        }else if (locTypeDto.getLocType2()==7||locTypeDto.getLocType2()==8){
            //2号巷道 2种货物类型
src/main/java/com/zy/common/web/WcsController.java
@@ -115,6 +115,8 @@
            locTypeDto.setLocType2((short) 7);
        }else if (param.getBarcode().startsWith("8")){
            locTypeDto.setLocType2((short) 8);
        }else if (param.getBarcode().startsWith("4")){
            locTypeDto.setLocType2((short) 4);
        }else {
            return R.error("条码规则不存在:"+param.getBarcode());
        }
src/main/resources/mapper/LocMastMapper.xml
@@ -122,16 +122,22 @@
    <select id="queryLocToOne" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast
        where loc_status = 'O' and row1 in (1,2)
        <if test="locType1 ! = null">
            and loc_type1 = #{locType1}
        where loc_sts = 'O' and row1 in (1,2)
        <if test="locType2 == 4">
            and lev1 in(1)
        </if>
        <if test="locType2 == 5">
            and lev1 in(2,3)
        </if>
        <if test="locType2 == 6">
            and lev1 in(4,5)
        </if>
        order by lev1 asc,bay1 asc
    </select>
    <select id="queryLocToTwo" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast
        where loc_status = 'O' and row1 in (3,4)
        where loc_sts = 'O' and row1 in (3,4)
        <if test="locType2 == 7">
            and lev1 in(1,2)
        </if>
src/main/webapp/views/pakStore/emptyOut.html
@@ -96,7 +96,7 @@
    </div>
    <div class="layui-inline">
        <div class="layui-input-inline">
            <select name="loc_type2">
            <select name="loc_type1">
                <option value="">请选择托盘类型</option>
                <option value="4">1500*1500*870</option>
                <option value="5">1500*1500*1670</option>