| | |
| | | on mt.id = mtd.task_id
|
| | | where task_sts not in (199,200)
|
| | | and wave_id in
|
| | | <foreach item="item" collection="waveIds" index="index" separator="," open="(" close=")">
|
| | | <foreach item="item" collection="waveIds" index="index" separator="," open="(" close=")">
|
| | | #{item}
|
| | | </foreach>
|
| | | </select>
|
| | | <select id="getTaskDetlByTaskNo" resultType="com.zy.asrs.wms.apis.wcs.entity.domain.WaveTaskDetl">
|
| | | SELECT mt.task_no,mtd.matnr, mtd.anfme ,mtd.wave_no, mtd.stock, mtd.batch FROM man_task mt INNER JOIN
|
| | | man_task_detl mtd ON mt.id = mtd.task_id
|
| | | WHERE 1 = 1
|
| | | <if test="taskNo != null and taskNo != ''">
|
| | | AND mt.task_no = #{taskNo}
|
| | | </if>
|
| | | GROUP BY mt.task_no, mtd.matnr
|
| | | </select>
|
| | | <select id="getTaskDetlQutify" resultType="com.zy.asrs.wms.apis.wcs.entity.domain.WaveTaskDetl">
|
| | | SELECT
|
| | | matnr,order_no, anfme ,wave_no, work_qty, batch
|
| | | FROM
|
| | | man_wave_seed
|
| | | WHERE
|
| | | task_detl_id IN ( SELECT mtd.id FROM man_task mt INNER JOIN man_task_detl mtd ON mt.id = mtd.task_id
|
| | | WHERE 1 = 1
|
| | | <if test="taskNo != null and taskNo != ''">
|
| | | AND mt.task_no = #{taskNo}
|
| | | </if>
|
| | | )
|
| | | <if test="matnr != null and matnr != ''">
|
| | | AND matnr = #{matnr}
|
| | | </if>
|
| | |
|
| | | </select>
|
| | |
|
| | | </mapper>
|