|
|
|
@ -30,9 +30,9 @@ |
|
|
|
OR h.related_order_no LIKE CONCAT('%', #{searchCode}, '%') |
|
|
|
) |
|
|
|
</if> |
|
|
|
<if test="searchCode == null or searchCode == ''"> |
|
|
|
AND CONVERT(DATE, h.required_outbound_date) = CONVERT(DATE, GETDATE()) |
|
|
|
</if> |
|
|
|
<!-- <if test="searchCode == null or searchCode == ''">--> |
|
|
|
<!-- AND CONVERT(DATE, h.required_outbound_date) = CONVERT(DATE, GETDATE())--> |
|
|
|
<!-- </if>--> |
|
|
|
GROUP BY h.site, h.order_no, h.bu_no, h.required_outbound_date, d.related_order_no, d.related_order_line_no, d.actual_out_qty |
|
|
|
ORDER BY h.required_outbound_date DESC |
|
|
|
</select> |
|
|
|
|