|
|
|
@ -103,7 +103,6 @@
|
|
|
|
|
'取消装车' AS `scanNodeType`, |
|
|
|
|
'配送' AS `nodeName` |
|
|
|
|
FROM |
|
|
|
|
|
|
|
|
|
`logpm_distribution_parcel_list` `ldpl` |
|
|
|
|
JOIN `logpm_distribution_loadscan` `ldl` ON |
|
|
|
|
`ldpl`.`id` = `ldl`.`package_id` |
|
|
|
@ -143,8 +142,8 @@
|
|
|
|
|
<if test="param.thirdProduct != null and param.thirdProduct != '' "> |
|
|
|
|
and ldpl.third_product like concat('%',#{param.thirdProduct},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.date != null "> |
|
|
|
|
and ldl.update_time like concat(#{param.date},'%') |
|
|
|
|
<if test="param.date != null "> |
|
|
|
|
and DATE(ldpl.warehouse_entry_time_end)= #{param.date} |
|
|
|
|
</if> |
|
|
|
|
</where> |
|
|
|
|
UNION ALL |
|
|
|
@ -245,7 +244,7 @@
|
|
|
|
|
and ldpl.third_product like concat('%',#{param.thirdProduct},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.date != null "> |
|
|
|
|
and ldl.create_time like concat(#{param.date},'%') |
|
|
|
|
and DATE(ldl.create_time) = #{param.date} |
|
|
|
|
</if> |
|
|
|
|
</where> |
|
|
|
|
UNION ALL |
|
|
|
@ -346,7 +345,7 @@
|
|
|
|
|
and ldpl.third_product like concat('%',#{param.thirdProduct},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.date != null "> |
|
|
|
|
and ldl.update_time like concat(#{param.date},'%') |
|
|
|
|
and DATE(ldl.update_time) = #{param.date} |
|
|
|
|
</if> |
|
|
|
|
</where> |
|
|
|
|
UNION ALL |
|
|
|
@ -406,7 +405,6 @@
|
|
|
|
|
`lds`.`create_time` AS `operatorTime`, |
|
|
|
|
`lds`.`create_user` AS `operatorId`,( |
|
|
|
|
CASE |
|
|
|
|
|
|
|
|
|
WHEN ( `lds`.`conditions` = 1 ) THEN |
|
|
|
|
'配送备货' |
|
|
|
|
WHEN ( `lds`.`conditions` = 2 ) THEN |
|
|
|
@ -453,7 +451,7 @@
|
|
|
|
|
and ldpl.third_product like concat('%',#{param.thirdProduct},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.date != null "> |
|
|
|
|
and lds.create_time like concat(#{param.date},'%') |
|
|
|
|
and DATE(lds.create_time) =#{param.date} |
|
|
|
|
</if> |
|
|
|
|
</where> |
|
|
|
|
UNION ALL |
|
|
|
@ -553,7 +551,7 @@
|
|
|
|
|
and ldpl.third_product like concat('%',#{param.thirdProduct},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.date != null "> |
|
|
|
|
and lwug.create_time like concat(#{param.date},'%') |
|
|
|
|
and DATE(lwug.create_time) =#{param.date} |
|
|
|
|
</if> |
|
|
|
|
</where> |
|
|
|
|
UNION ALL |
|
|
|
@ -653,7 +651,7 @@
|
|
|
|
|
and ldpl.third_product like concat('%',#{param.thirdProduct},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.date != null "> |
|
|
|
|
and lwtg.create_time like concat(#{param.date},'%') |
|
|
|
|
and DATE(lwtg.create_time) =#{param.date} |
|
|
|
|
</if> |
|
|
|
|
</where> |
|
|
|
|
|
|
|
|
|