|
|
|
@ -1387,11 +1387,11 @@
|
|
|
|
|
FROM |
|
|
|
|
logpm_distribution_reservation AS ldr |
|
|
|
|
LEFT JOIN logpm_distribution_signfor AS lds ON ldr.id = lds.reservation_id |
|
|
|
|
WHERE |
|
|
|
|
<where> |
|
|
|
|
ldr.is_deleted = 0 |
|
|
|
|
AND lds.is_deleted = 0 |
|
|
|
|
AND ( ldr.reservation_num + ldr.reservation_stock_list_num ) > 0 |
|
|
|
|
AND date_format( lds.signing_time, '%y%m%d%' ) <= date_format( |
|
|
|
|
AND date_format( lds.signing_time, '%y%m%d%' ) <= date_format( |
|
|
|
|
'2024-04-28', |
|
|
|
|
'%y%m%d%') |
|
|
|
|
AND lds.signing_status = 2 |
|
|
|
@ -1401,6 +1401,8 @@
|
|
|
|
|
#{warehouseId} |
|
|
|
|
</foreach> |
|
|
|
|
</if> |
|
|
|
|
</where> |
|
|
|
|
|
|
|
|
|
GROUP BY ldr.warehouse_id |
|
|
|
|
</select> |
|
|
|
|
</mapper> |
|
|
|
|