| | |
| | | public interface LocMastMapper extends BaseMapper<LocMast> { |
| | | |
| | | List<LocMast> queryFreeLocMast(@Param("rows") List<Integer> rows, @Param("rowsLen") Integer rowsLen, @Param("locType1") Short locType1); |
| | | List<LocMast> queryFreeLocMast2(@Param("rows") List<Integer> rows, @Param("rowsLen") Integer rowsLen, @Param("locType1") Short locType1, @Param("inout_everyday") Boolean inoutEveryday); |
| | | List<LocMast> queryFreeLocMast2(@Param("rows") List<Integer> rows, @Param("rowsLen") Integer rowsLen, @Param("locType1") Short locType1, @Param("inoutEveryday") Boolean inoutEveryday); |
| | | |
| | | @Select("select loc_no from asr_loc_mast where 1=1 and loc_sts = 'O' and crn_no = #{crnNo}") |
| | | List<String> queryGroupEmptyStock(Integer crnNo); |
| | |
| | | // 订单关联 |
| | | List<WrkDetl> wrkDetls = wrkDetlService.selectByWrkNo(wrkMast.getWrkNo()); |
| | | for (WrkDetl wrkDetl : wrkDetls) { |
| | | if (!Cools.isEmpty(wrkDetl.getOrderNo())){ |
| | | String[] orderNos = GetOrderNo(wrkDetl.getOrderNo()); |
| | | String[] anfmes = GetAnfme(wrkDetl.getOrderNo()); |
| | | int i = 0; |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | // 取消操作人员记录 |
| | | wrkMast.setManuType("手动取消"); |
| | | wrkMast.setModiUser(userId); |
| | |
| | | List<Integer> rows = Utils.getGroupLoc(curRow); |
| | | |
| | | Mat mat = matService.selectByMatnr(matNos.get(0)); |
| | | if (Cools.isEmpty(mat.getInoutEveryday())){ |
| | | mat.setInoutEveryday(false); |
| | | } |
| | | List<LocMast> locMasts = locMastService.queryFreeLocMast2(rows, rows.size(), locTypeDto.getLocType1(),mat.getInoutEveryday()); |
| | | if (!Cools.isEmpty(locMasts)) { |
| | | Integer innermostRow = Utils.getInnermostRow(locMasts.get(0).getLocNo()); |
| | |
| | | * |
| | | from asr_loc_mast |
| | | where 1=1 |
| | | <if test="inoutEveryday == 2.0"> |
| | | and bay1 >= 10 |
| | | <if test="inoutEveryday == false "> |
| | | and bay1 > 10 |
| | | </if> |
| | | <if test="inoutEveryday != 2.0"> |
| | | and bay1 < 10 |
| | | <if test="inoutEveryday == true"> |
| | | and bay1 < 11 |
| | | </if> |
| | | and row1 in |
| | | <foreach item="item" collection="rows" index="index" separator="," open="(" close=")"> |