|
|
@ -218,6 +218,7 @@ |
|
|
|
logpm_distribution_delivery_list |
|
|
|
logpm_distribution_delivery_list |
|
|
|
<where> |
|
|
|
<where> |
|
|
|
is_deleted = 0 |
|
|
|
is_deleted = 0 |
|
|
|
|
|
|
|
AND YEAR(create_time) = YEAR(CURDATE()) |
|
|
|
AND type IS NOT NULL |
|
|
|
AND type IS NOT NULL |
|
|
|
AND kind = 1 |
|
|
|
AND kind = 1 |
|
|
|
<if test="param.warehouseIds != null"> |
|
|
|
<if test="param.warehouseIds != null"> |
|
|
@ -258,6 +259,7 @@ |
|
|
|
LEFT JOIN logpm_distribution_signfor AS lds ON lds.reservation_id = ldr.id AND lds.is_deleted = 0 |
|
|
|
LEFT JOIN logpm_distribution_signfor AS lds ON lds.reservation_id = ldr.id AND lds.is_deleted = 0 |
|
|
|
LEFT JOIN logpm_distribution_delivery_list AS lddl ON lds.delivery_id = lddl.id AND lddl.is_deleted = 0 |
|
|
|
LEFT JOIN logpm_distribution_delivery_list AS lddl ON lds.delivery_id = lddl.id AND lddl.is_deleted = 0 |
|
|
|
<where> |
|
|
|
<where> |
|
|
|
|
|
|
|
YEAR(ldr.create_time) = YEAR(CURDATE()) and |
|
|
|
ldr.reservation_status != 40 |
|
|
|
ldr.reservation_status != 40 |
|
|
|
AND ldr.is_deleted = 0 |
|
|
|
AND ldr.is_deleted = 0 |
|
|
|
AND ldr.delivery_type = #{type} |
|
|
|
AND ldr.delivery_type = #{type} |
|
|
|