|
|
@ -60,8 +60,7 @@ |
|
|
|
</delete> |
|
|
|
</delete> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectDistributionDeliveryListPage" |
|
|
|
<select id="selectDistributionDeliveryListPage" resultType="com.logpm.distribution.entity.DistributionDeliveryListEntity"> |
|
|
|
resultType="com.logpm.distribution.entity.DistributionDeliveryListEntity"> |
|
|
|
|
|
|
|
SELECT |
|
|
|
SELECT |
|
|
|
lddl.id id, |
|
|
|
lddl.id id, |
|
|
|
lddl.train_number trainNumber, |
|
|
|
lddl.train_number trainNumber, |
|
|
@ -167,7 +166,6 @@ |
|
|
|
lddl.loading_time loadingTime, |
|
|
|
lddl.loading_time loadingTime, |
|
|
|
lddl.note_number noteNumber, |
|
|
|
lddl.note_number noteNumber, |
|
|
|
lddl.source source, |
|
|
|
lddl.source source, |
|
|
|
lddl.vehicle_name vehicleName, |
|
|
|
|
|
|
|
( |
|
|
|
( |
|
|
|
SELECT |
|
|
|
SELECT |
|
|
|
COALESCE ( |
|
|
|
COALESCE ( |
|
|
@ -189,8 +187,11 @@ |
|
|
|
logpm_distribution_signfor lds |
|
|
|
logpm_distribution_signfor lds |
|
|
|
WHERE |
|
|
|
WHERE |
|
|
|
lddl.id = lds.delivery_id |
|
|
|
lddl.id = lds.delivery_id |
|
|
|
) scannedNumber |
|
|
|
) scannedNumber, |
|
|
|
|
|
|
|
GROUP_CONCAT(DISTINCT ldr.consignee SEPARATOR ',') clineName |
|
|
|
FROM logpm_distribution_delivery_list lddl |
|
|
|
FROM logpm_distribution_delivery_list lddl |
|
|
|
|
|
|
|
left JOIN logpm_distribution_signfor lds on lddl.id = lds.delivery_id |
|
|
|
|
|
|
|
LEFT JOIN logpm_distribution_reservation ldr on ldr.id = lds.reservation_id |
|
|
|
<where> |
|
|
|
<where> |
|
|
|
lddl.is_deleted = 0 |
|
|
|
lddl.is_deleted = 0 |
|
|
|
<if test="param.trainNumber != null and param.trainNumber!=''"> |
|
|
|
<if test="param.trainNumber != null and param.trainNumber!=''"> |
|
|
@ -205,6 +206,9 @@ |
|
|
|
<if test="param.warehouseName != null and param.warehouseName!=''"> |
|
|
|
<if test="param.warehouseName != null and param.warehouseName!=''"> |
|
|
|
and lddl.warehouse_name like concat('%',#{param.warehouseName},'%') |
|
|
|
and lddl.warehouse_name like concat('%',#{param.warehouseName},'%') |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="param.clineName != null and param.clineName!=''"> |
|
|
|
|
|
|
|
and ldr.consignee like concat('%',#{param.clineName},'%') |
|
|
|
|
|
|
|
</if> |
|
|
|
<if test="param.vehicleName != null and param.vehicleName!=''"> |
|
|
|
<if test="param.vehicleName != null and param.vehicleName!=''"> |
|
|
|
and lddl.vehicle_name like concat('%',#{param.vehicleName},'%') |
|
|
|
and lddl.vehicle_name like concat('%',#{param.vehicleName},'%') |
|
|
|
</if> |
|
|
|
</if> |
|
|
@ -239,6 +243,20 @@ |
|
|
|
and date_format(lddl.task_time,'%y%m%d%') = date_format(#{param.taskTime},'%y%m%d%') |
|
|
|
and date_format(lddl.task_time,'%y%m%d%') = date_format(#{param.taskTime},'%y%m%d%') |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
</where> |
|
|
|
|
|
|
|
GROUP BY lddl.id , |
|
|
|
|
|
|
|
lddl.train_number , |
|
|
|
|
|
|
|
lddl.warehouse_name , |
|
|
|
|
|
|
|
lddl.warehouse_id , |
|
|
|
|
|
|
|
lddl.type , |
|
|
|
|
|
|
|
lddl.kind , |
|
|
|
|
|
|
|
lddl.vehicle_name , |
|
|
|
|
|
|
|
lddl.driver_name , |
|
|
|
|
|
|
|
lddl.vehicle_id , |
|
|
|
|
|
|
|
lddl.driver_id , |
|
|
|
|
|
|
|
lddl.distribution_company , |
|
|
|
|
|
|
|
lddl.delivery_status , |
|
|
|
|
|
|
|
lddl.delivery_list_loading_status |
|
|
|
|
|
|
|
|
|
|
|
</select> |
|
|
|
</select> |
|
|
|
<select id="selectdeliverOnevnopen" resultType="com.logpm.distribution.entity.DistributionLoadscaninvnEntity"> |
|
|
|
<select id="selectdeliverOnevnopen" resultType="com.logpm.distribution.entity.DistributionLoadscaninvnEntity"> |
|
|
|
SELECT |
|
|
|
SELECT |
|
|
|