| | |
| | | |
| | | LocMast queryDemoLoc(@Param("crnNo") Integer crnNo); |
| | | |
| | | LocMast queryDemoLoc0(@Param("crnNo") Integer crnNo, @Param("locType1") short locType1); |
| | | |
| | | @Select("select count(*) as count from asr_loc_mast where 1=1 and loc_sts = 'O' and loc_type1 = #{locType1} and crn_no = #{crnNo}") |
| | | Integer selectEmptyLocCount(@Param("locType1") Short locType1, @Param("crnNo") Integer crnNo); |
| | | |
| | |
| | | LocMast queryDemoLoc(Integer crn); |
| | | |
| | | /** |
| | | * 堆垛机演示获取目标库位 |
| | | * @param crn |
| | | * @param locType1 |
| | | * @return |
| | | */ |
| | | LocMast queryDemoLoc0(Integer crn, short locType1); |
| | | |
| | | /** |
| | | * 检查当前库位所属巷道的空库位数量 |
| | | * @param locMast |
| | | * @return |
| | |
| | | } |
| | | |
| | | @Override |
| | | public LocMast queryDemoLoc0(Integer crn, short locType1) { |
| | | return this.baseMapper.queryDemoLoc0(crn,locType1); |
| | | } |
| | | |
| | | @Override |
| | | public Boolean checkEmptyCount(LocMast locMast) { |
| | | if (locMast == null) { |
| | | return false; |
| | |
| | | } |
| | | |
| | | LocMast sourceLoc = locMastService.queryDemoSourceLoc(crn.getId()); |
| | | LocMast loc = locMastService.queryDemoLoc(crn.getId()); |
| | | if (null == sourceLoc || null == loc) { |
| | | if (null == sourceLoc ) { |
| | | continue; |
| | | } |
| | | LocMast loc = locMastService.queryDemoLoc0(crn.getId(),sourceLoc.getLocType1()); |
| | | if ( null == loc) { |
| | | continue; |
| | | } |
| | | |
| | |
| | | ORDER BY NEWID() |
| | | </select> |
| | | |
| | | <select id="queryDemoLoc0" resultMap="BaseResultMap"> |
| | | select top 1 * from asr_loc_mast where crn_no = #{crnNo} and loc_sts = 'O'and loc_type1 = #{locType1} |
| | | ORDER BY NEWID() |
| | | </select> |
| | | </mapper> |