| | |
| | | |
| | | |
| | | <build> |
| | | <finalName>zjhlasrs</finalName> |
| | | <finalName>wms</finalName> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | |
| | | |
| | | 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); |
| | | } |
| | |
| | | |
| | | LocMast selectByBarcode(String zpallet); |
| | | |
| | | LocMast queryLocToOne(Short locType1); |
| | | LocMast queryLocToOne(Short locType2); |
| | | |
| | | LocMast queryLocToTwo(Short locType2); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public LocMast queryLocToOne(Short locType1) { |
| | | return this.baseMapper.queryLocToOne(locType1); |
| | | public LocMast queryLocToOne(Short locType2) { |
| | | return this.baseMapper.queryLocToOne(locType2); |
| | | } |
| | | |
| | | @Override |
| | |
| | | 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种货物类型 |
| | |
| | | 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()); |
| | | } |
| | |
| | | |
| | | <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> |
| | |
| | | </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> |