|
|
@ -343,6 +343,9 @@ |
|
|
|
signing_status, |
|
|
|
signing_status, |
|
|
|
signing_time, |
|
|
|
signing_time, |
|
|
|
sign_num, |
|
|
|
sign_num, |
|
|
|
|
|
|
|
sign_type, |
|
|
|
|
|
|
|
loading_mode, |
|
|
|
|
|
|
|
brand, |
|
|
|
examine_user_name, |
|
|
|
examine_user_name, |
|
|
|
abnormal_signing, |
|
|
|
abnormal_signing, |
|
|
|
abnormal_loading, |
|
|
|
abnormal_loading, |
|
|
@ -376,6 +379,7 @@ |
|
|
|
ldsa.customer_address delivery_address, |
|
|
|
ldsa.customer_address delivery_address, |
|
|
|
wi.consignee consignee, |
|
|
|
wi.consignee consignee, |
|
|
|
1 sign_num, |
|
|
|
1 sign_num, |
|
|
|
|
|
|
|
dpl.brand_name brand, |
|
|
|
wi.consignee_name consignee_name, |
|
|
|
wi.consignee_name consignee_name, |
|
|
|
wi.consignee_mobile consignee_mobile, |
|
|
|
wi.consignee_mobile consignee_mobile, |
|
|
|
dpl.waybill_number waybill_no, |
|
|
|
dpl.waybill_number waybill_no, |
|
|
@ -411,6 +415,26 @@ |
|
|
|
ldl.scan_user un_administrators_name, |
|
|
|
ldl.scan_user un_administrators_name, |
|
|
|
ldl.signing_time sjsigning_time, |
|
|
|
ldl.signing_time sjsigning_time, |
|
|
|
ldl.signing_user lds_signee_name, |
|
|
|
ldl.signing_user lds_signee_name, |
|
|
|
|
|
|
|
case when ldl.signfor_type = 1 THEN |
|
|
|
|
|
|
|
'扫描签收' |
|
|
|
|
|
|
|
when ldl.signfor_type = 2 then |
|
|
|
|
|
|
|
'文员签收' |
|
|
|
|
|
|
|
when ldl.signfor_type = 3 then |
|
|
|
|
|
|
|
'一键签收' |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
'' |
|
|
|
|
|
|
|
end sign_type, |
|
|
|
|
|
|
|
case when ldl.scan_status = 2 THEN |
|
|
|
|
|
|
|
'扫描装车' |
|
|
|
|
|
|
|
when ldl.scan_status = 3 THEN |
|
|
|
|
|
|
|
'订单装车' |
|
|
|
|
|
|
|
when ldl.scan_status = 4 THEN |
|
|
|
|
|
|
|
'一键装车' |
|
|
|
|
|
|
|
when ldl.scan_status = 5 THEN |
|
|
|
|
|
|
|
'补录装车' |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
'' |
|
|
|
|
|
|
|
END loading_mode, |
|
|
|
CASE |
|
|
|
CASE |
|
|
|
|
|
|
|
|
|
|
|
WHEN lds.signing_status = 1 THEN |
|
|
|
WHEN lds.signing_status = 1 THEN |
|
|
@ -457,7 +481,9 @@ |
|
|
|
where drp.packet_bar_status != 2 |
|
|
|
where drp.packet_bar_status != 2 |
|
|
|
and obj.reservation_status != 4 |
|
|
|
and obj.reservation_status != 4 |
|
|
|
and obj.id is not null |
|
|
|
and obj.id is not null |
|
|
|
and dpl.id is not null) t |
|
|
|
and dpl.id is not null |
|
|
|
|
|
|
|
and ldl.scan_status > 1 |
|
|
|
|
|
|
|
) t |
|
|
|
${ew.customSqlSegment} |
|
|
|
${ew.customSqlSegment} |
|
|
|
<if test="ew!=null and ew.customSqlSegment !=null and ew.customSqlSegment!=''"> |
|
|
|
<if test="ew!=null and ew.customSqlSegment !=null and ew.customSqlSegment!=''"> |
|
|
|
and |
|
|
|
and |
|
|
@ -513,6 +539,9 @@ |
|
|
|
signing_status, |
|
|
|
signing_status, |
|
|
|
signing_time, |
|
|
|
signing_time, |
|
|
|
sign_num, |
|
|
|
sign_num, |
|
|
|
|
|
|
|
sign_type, |
|
|
|
|
|
|
|
loading_mode, |
|
|
|
|
|
|
|
brand, |
|
|
|
examine_user_name, |
|
|
|
examine_user_name, |
|
|
|
abnormal_signing, |
|
|
|
abnormal_signing, |
|
|
|
abnormal_loading, |
|
|
|
abnormal_loading, |
|
|
@ -526,6 +555,7 @@ |
|
|
|
obj.reservation_date task_time, |
|
|
|
obj.reservation_date task_time, |
|
|
|
dpl.warehouse warehouse_name, |
|
|
|
dpl.warehouse warehouse_name, |
|
|
|
dpl.warehouse_id warehouse_id, |
|
|
|
dpl.warehouse_id warehouse_id, |
|
|
|
|
|
|
|
dpl.brand_name brand, |
|
|
|
CASE |
|
|
|
CASE |
|
|
|
WHEN obj.delivery_type = 1 THEN |
|
|
|
WHEN obj.delivery_type = 1 THEN |
|
|
|
'商配' |
|
|
|
'商配' |
|
|
@ -580,7 +610,26 @@ |
|
|
|
ldl.received_quantity sign_num, |
|
|
|
ldl.received_quantity sign_num, |
|
|
|
ldl.scan_time unload_time, |
|
|
|
ldl.scan_time unload_time, |
|
|
|
ldl.scan_user un_administrators_name, |
|
|
|
ldl.scan_user un_administrators_name, |
|
|
|
|
|
|
|
case when ldl.signfor_type = 1 THEN |
|
|
|
|
|
|
|
'扫描签收' |
|
|
|
|
|
|
|
when ldl.signfor_type = 2 then |
|
|
|
|
|
|
|
'文员签收' |
|
|
|
|
|
|
|
when ldl.signfor_type = 3 then |
|
|
|
|
|
|
|
'一键签收' |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
'' |
|
|
|
|
|
|
|
end sign_type, |
|
|
|
|
|
|
|
case when ldl.scan_status = 2 THEN |
|
|
|
|
|
|
|
'扫描装车' |
|
|
|
|
|
|
|
when ldl.scan_status = 3 THEN |
|
|
|
|
|
|
|
'订单装车' |
|
|
|
|
|
|
|
when ldl.scan_status = 4 THEN |
|
|
|
|
|
|
|
'一键装车' |
|
|
|
|
|
|
|
when ldl.scan_status = 5 THEN |
|
|
|
|
|
|
|
'补录装车' |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
'' |
|
|
|
|
|
|
|
END loading_mode, |
|
|
|
lds.sjsigning_time sjsigning_time, |
|
|
|
lds.sjsigning_time sjsigning_time, |
|
|
|
lds.signee_name lds_signee_name, |
|
|
|
lds.signee_name lds_signee_name, |
|
|
|
CASE |
|
|
|
CASE |
|
|
@ -631,6 +680,7 @@ |
|
|
|
and obj.reservation_status != 4 |
|
|
|
and obj.reservation_status != 4 |
|
|
|
and obj.id is not null |
|
|
|
and obj.id is not null |
|
|
|
and dpl.id is not null |
|
|
|
and dpl.id is not null |
|
|
|
|
|
|
|
and ldl.scan_status > 1 |
|
|
|
) t |
|
|
|
) t |
|
|
|
${ew.customSqlSegment} |
|
|
|
${ew.customSqlSegment} |
|
|
|
<if test="ew!=null and ew.customSqlSegment !=null and ew.customSqlSegment!=''"> |
|
|
|
<if test="ew!=null and ew.customSqlSegment !=null and ew.customSqlSegment!=''"> |
|
|
|