| | |
| | | |
| | | long selectAllPageSize(Map<String, Object> condition); |
| | | |
| | | ManLocDetl selectInventory(String LocNo, String Matnr, String batch); |
| | | ManLocDetl selectInventory(@Param("LocNo") String LocNo,@Param("matnr") String Matnr,@Param("batch") String batch); |
| | | |
| | | int deleteDatailed (String locNo, String matnr,String batch); |
| | | |
| | |
| | | String jsonLocNo = (String) json.get("locNo"); //获取库位码 |
| | | String jsonBarNo = (String) json.get("barcode"); //获取托盘码 |
| | | |
| | | LocMast locMast = locMastService.selectLocStatus(jsonLocNo); |
| | | if (locMast.getLocSts().equals("X")){ |
| | | return R.error("库位已被冻结"); |
| | | } |
| | | |
| | | List<WaitPakin> waitPakins = waitPakinService.selectList(new EntityWrapper<WaitPakin>().eq("zpallet", jsonBarNo)); //获取对应组托信息 |
| | | if (Cools.isEmpty(waitPakins)){ |
| | | return R.error("未查询到组托"); |
| | |
| | | select top 1 * from man_loc_detl |
| | | where loc_no=#{LocNo} |
| | | and 1=1 |
| | | and matnr=#{Matnr} |
| | | <choose> |
| | | <when test="batch != null and batch != ''"> |
| | | and batch = #{batch} |
| | | </when> |
| | | <otherwise> |
| | | and (batch IS NULL OR batch = '') |
| | | </otherwise> |
| | | </choose> |
| | | and matnr=#{matnr} |
| | | <if test="batch != null and batch !='' "> |
| | | and batch like '%' + #{batch} + '%' |
| | | </if> |
| | | </select> |
| | | <sql id="selectAllWarningSql"> |
| | | <if test="locNo!=null and locNo!='' "> |