|
|
@ -102,6 +102,9 @@ |
|
|
<if test="query.departmentNo != null and query.departmentNo != ''"> |
|
|
<if test="query.departmentNo != null and query.departmentNo != ''"> |
|
|
AND h.department_no = #{query.departmentNo} |
|
|
AND h.department_no = #{query.departmentNo} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="query.inWarehouse != null and query.inWarehouse != ''"> |
|
|
|
|
|
AND h.in_warehouse = #{query.inWarehouse} |
|
|
|
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
ORDER BY h.created_date DESC, h.order_no, d.part_no |
|
|
ORDER BY h.created_date DESC, h.order_no, d.part_no |
|
|
<if test="limit > 0"> |
|
|
<if test="limit > 0"> |
|
|
@ -160,6 +163,9 @@ |
|
|
<if test="query.departmentNo != null and query.departmentNo != ''"> |
|
|
<if test="query.departmentNo != null and query.departmentNo != ''"> |
|
|
AND h.department_no = #{query.departmentNo} |
|
|
AND h.department_no = #{query.departmentNo} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="query.inWarehouse != null and query.inWarehouse != ''"> |
|
|
|
|
|
AND h.in_warehouse = #{query.inWarehouse} |
|
|
|
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|