| | |
| | | throw new CoolException(param.getBarcode() + "数据已经在库"); |
| | | } |
| | | |
| | | //判断托盘是否已经在工作档 |
| | | if (wrkMastService.selectCount(new EntityWrapper<WrkMast>() |
| | | .eq("barcode", param.getBarcode())) > 0) { |
| | | throw new CoolException(param.getBarcode() + "数据已经在任务档中"); |
| | | } |
| | | |
| | | //判断是否存在料箱码 => 存在料箱码则要求提交上来的物料list必须全部都有料箱码 |
| | | boolean hasContainerCode = false; |
| | | int containerCodeCount = 0;//料箱码数量 |
| | |
| | | update asr_loc_mast set loc_sts = 'S' |
| | | where row1 >=1 and row1 <= 16 |
| | | and bay1 in(21,22,23,37,38,39,56,57,58) |
| | | and lev1 >= 3 and lev1 <= 10 |
| | | and lev1 >= 1 and lev1 <= 10 |
| | | and loc_sts = 'O' |
| | | </delete> |
| | | </mapper> |
| | |
| | | where 1=1 |
| | | and order_no = #{orderNo} |
| | | and matnr = #{matnr} |
| | | <if test="batch!=null and batch!='' "> |
| | | <choose> |
| | | <when test="batch != null and batch != ''"> |
| | | and batch = #{batch} |
| | | </if> |
| | | <if test="csocode!=null and csocode!='' "> |
| | | </when> |
| | | <otherwise> |
| | | and (batch IS NULL OR batch = '') |
| | | </otherwise> |
| | | </choose> |
| | | <choose> |
| | | <when test="csocode != null and csocode != ''"> |
| | | and three_code = #{csocode} |
| | | </if> |
| | | <if test="isocode!=null and isocode!='' "> |
| | | </when> |
| | | <otherwise> |
| | | and (three_code IS NULL OR three_code = '') |
| | | </otherwise> |
| | | </choose> |
| | | <choose> |
| | | <when test="isocode != null and isocode != ''"> |
| | | and dead_time = #{isocode} |
| | | </if> |
| | | </when> |
| | | <otherwise> |
| | | and (dead_time IS NULL OR dead_time = '') |
| | | </otherwise> |
| | | </choose> |
| | | </select> |
| | | |
| | | <select id="selectItemNoneOfBatch" resultMap="BaseResultMap"> |