|
|
|
|
@ -7,7 +7,13 @@
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<select id="selectCustomWmsShippingBillVoList" resultMap="WmsShippingBillResult">
|
|
|
|
|
select t.shipping_bill_id, t.tenant_id, t.shipping_code, t.shipping_type, t.shipping_mode, t.bind_type, t.project_id, t.project_code, t.project_name, t.customer_id, t.customer_name, t.shipping_address, t.inventory_amount, t.source_bill_type, t.source_bill_id, t.source_bill_code, t.contract_id, t.contract_code, t.contract_name, c.order_contract_code as orderContractCode, t.supplier, t.supplier_id, t.contact_user, t.contact_number, t.receiver_name, t.receiver_phone, t.logistics_company, t.tracking_no, t.logistics_phone, t.directions, t.plan_arrival_time, t.shipping_time, t.received_time, t.completed_time, t.out_stock_bill_status, t.flow_status, t.shipping_status, t.warehouse_id, t.warehouse_name, t.remark, t.del_flag, t.create_dept, t.create_by, t.create_time, t.update_by, t.update_time
|
|
|
|
|
select t.shipping_bill_id, t.tenant_id, t.shipping_code, t.shipping_type,
|
|
|
|
|
t.shipping_mode, t.bind_type, t.project_id, t.project_code,
|
|
|
|
|
t.project_name, t.customer_id, t.customer_contact_id, t.customer_name,
|
|
|
|
|
t.shipping_address, t.inventory_amount, t.source_bill_type, t.source_bill_id,
|
|
|
|
|
t.source_bill_code, t.contract_id, t.contract_code, t.contract_name,
|
|
|
|
|
c.order_contract_code as orderContractCode,
|
|
|
|
|
t.supplier, t.supplier_id, t.contact_user, t.contact_number, t.receiver_name, t.receiver_phone, t.logistics_company, t.tracking_no, t.logistics_phone, t.directions, t.plan_arrival_time, t.shipping_time, t.received_time, t.completed_time, t.out_stock_bill_status, t.flow_status, t.shipping_status, t.warehouse_id, t.warehouse_name, t.remark, t.del_flag, t.create_dept, t.create_by, t.create_time, t.update_by, t.update_time
|
|
|
|
|
from wms_shipping_bill t
|
|
|
|
|
left join erp_contract_info c on t.contract_id = c.contract_id
|
|
|
|
|
${ew.getCustomSqlSegment}
|
|
|
|
|
@ -15,7 +21,14 @@
|
|
|
|
|
|
|
|
|
|
<!-- 根据ID查询详情(联查合同获取SAP订单号) -->
|
|
|
|
|
<select id="selectCustomWmsShippingBillVoById" resultMap="WmsShippingBillResult">
|
|
|
|
|
select t.shipping_bill_id, t.tenant_id, t.shipping_code, t.shipping_type, t.shipping_mode, t.bind_type, t.project_id, t.project_code, t.project_name, t.customer_id, t.customer_name, t.shipping_address, t.inventory_amount, t.source_bill_type, t.source_bill_id, t.source_bill_code, t.contract_id, t.contract_code, t.contract_name, c.order_contract_code as orderContractCode, t.supplier, t.supplier_id, t.contact_user, t.contact_number, t.receiver_name, t.receiver_phone, t.logistics_company, t.tracking_no, t.logistics_phone, t.directions, t.plan_arrival_time, t.shipping_time, t.received_time, t.completed_time, t.out_stock_bill_status, t.flow_status, t.shipping_status, t.warehouse_id, t.warehouse_name, t.remark, t.del_flag, t.create_dept, t.create_by, t.create_time, t.update_by, t.update_time
|
|
|
|
|
select t.shipping_bill_id, t.tenant_id, t.shipping_code, t.shipping_type,
|
|
|
|
|
t.shipping_mode, t.bind_type, t.project_id, t.project_code, t.project_name,
|
|
|
|
|
t.customer_id, t.customer_contact_id, t.customer_name, t.shipping_address,
|
|
|
|
|
t.inventory_amount, t.source_bill_type, t.source_bill_id, t.source_bill_code,
|
|
|
|
|
t.contract_id, t.contract_code, t.contract_name,
|
|
|
|
|
c.order_contract_code as orderContractCode,
|
|
|
|
|
t.supplier, t.supplier_id, t.contact_user,
|
|
|
|
|
t.contact_number, t.receiver_name, t.receiver_phone, t.logistics_company, t.tracking_no, t.logistics_phone, t.directions, t.plan_arrival_time, t.shipping_time, t.received_time, t.completed_time, t.out_stock_bill_status, t.flow_status, t.shipping_status, t.warehouse_id, t.warehouse_name, t.remark, t.del_flag, t.create_dept, t.create_by, t.create_time, t.update_by, t.update_time
|
|
|
|
|
from wms_shipping_bill t
|
|
|
|
|
left join erp_contract_info c on t.contract_id = c.contract_id
|
|
|
|
|
where t.shipping_bill_id = #{shippingBillId}
|
|
|
|
|
@ -23,7 +36,16 @@
|
|
|
|
|
|
|
|
|
|
<!-- 批量查询 - 根据ID列表(联查合同获取SAP订单号) -->
|
|
|
|
|
<select id="selectCustomWmsShippingBillVoByIds" resultMap="WmsShippingBillResult">
|
|
|
|
|
select t.shipping_bill_id, t.tenant_id, t.shipping_code, t.shipping_type, t.shipping_mode, t.bind_type, t.project_id, t.project_code, t.project_name, t.customer_id, t.customer_name, t.shipping_address, t.inventory_amount, t.source_bill_type, t.source_bill_id, t.source_bill_code, t.contract_id, t.contract_code, t.contract_name, c.order_contract_code as orderContractCode, t.supplier, t.supplier_id, t.contact_user, t.contact_number, t.receiver_name, t.receiver_phone, t.logistics_company, t.tracking_no, t.logistics_phone, t.directions, t.plan_arrival_time, t.shipping_time, t.received_time, t.completed_time, t.out_stock_bill_status, t.flow_status, t.shipping_status, t.warehouse_id, t.warehouse_name, t.remark, t.del_flag, t.create_dept, t.create_by, t.create_time, t.update_by, t.update_time
|
|
|
|
|
select t.shipping_bill_id, t.tenant_id, t.shipping_code, t.shipping_type,
|
|
|
|
|
t.shipping_mode, t.bind_type, t.project_id, t.project_code, t.project_name,
|
|
|
|
|
t.customer_id, t.customer_contact_id, t.customer_name, t.shipping_address,
|
|
|
|
|
t.inventory_amount, t.source_bill_type, t.source_bill_id, t.source_bill_code,
|
|
|
|
|
t.contract_id, t.contract_code, t.contract_name,
|
|
|
|
|
c.order_contract_code as orderContractCode,
|
|
|
|
|
t.supplier, t.supplier_id, t.contact_user, t.contact_number, t.receiver_name,
|
|
|
|
|
t.receiver_phone, t.logistics_company, t.tracking_no, t.logistics_phone, t.directions,
|
|
|
|
|
t.plan_arrival_time, t.shipping_time, t.received_time, t.completed_time,
|
|
|
|
|
t.out_stock_bill_status, t.flow_status, t.shipping_status, t.warehouse_id, t.warehouse_name, t.remark, t.del_flag, t.create_dept, t.create_by, t.create_time, t.update_by, t.update_time
|
|
|
|
|
from wms_shipping_bill t
|
|
|
|
|
left join erp_contract_info c on t.contract_id = c.contract_id
|
|
|
|
|
where t.shipping_bill_id in
|
|
|
|
|
@ -40,7 +62,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- 分页查询(带自定义条件,联查合同获取SAP订单号) -->
|
|
|
|
|
<select id="selectCustomWmsShippingBillVoPage" resultMap="WmsShippingBillResult">
|
|
|
|
|
select t.shipping_bill_id, t.tenant_id, t.shipping_code, t.shipping_type, t.shipping_mode, t.bind_type, t.project_id, t.project_code, t.project_name, t.customer_id, t.customer_name, t.shipping_address, t.inventory_amount, t.source_bill_type, t.source_bill_id, t.source_bill_code, t.contract_id, t.contract_code, t.contract_name, c.order_contract_code as orderContractCode, t.supplier, t.supplier_id, t.contact_user, t.contact_number, t.receiver_name, t.receiver_phone, t.logistics_company, t.tracking_no, t.logistics_phone, t.directions, t.plan_arrival_time, t.shipping_time, t.received_time, t.completed_time, t.out_stock_bill_status, t.flow_status, t.shipping_status, t.warehouse_id, t.warehouse_name, t.remark, t.del_flag, t.create_dept, t.create_by, t.create_time, t.update_by, t.update_time
|
|
|
|
|
select t.shipping_bill_id, t.tenant_id, t.shipping_code, t.shipping_type, t.shipping_mode, t.bind_type, t.project_id, t.project_code, t.project_name, t.customer_id, t.customer_contact_id, t.customer_name, t.shipping_address, t.inventory_amount, t.source_bill_type, t.source_bill_id, t.source_bill_code, t.contract_id, t.contract_code, t.contract_name, c.order_contract_code as orderContractCode, t.supplier, t.supplier_id, t.contact_user, t.contact_number, t.receiver_name, t.receiver_phone, t.logistics_company, t.tracking_no, t.logistics_phone, t.directions, t.plan_arrival_time, t.shipping_time, t.received_time, t.completed_time, t.out_stock_bill_status, t.flow_status, t.shipping_status, t.warehouse_id, t.warehouse_name, t.remark, t.del_flag, t.create_dept, t.create_by, t.create_time, t.update_by, t.update_time
|
|
|
|
|
from wms_shipping_bill t
|
|
|
|
|
left join erp_contract_info c on t.contract_id = c.contract_id
|
|
|
|
|
${ew.getCustomSqlSegment}
|
|
|
|
|
@ -67,6 +89,8 @@
|
|
|
|
|
|
|
|
|
|
customer_id,
|
|
|
|
|
|
|
|
|
|
customer_contact_id,
|
|
|
|
|
|
|
|
|
|
customer_name,
|
|
|
|
|
|
|
|
|
|
shipping_address,
|
|
|
|
|
@ -159,6 +183,8 @@
|
|
|
|
|
|
|
|
|
|
#{item.customerId},
|
|
|
|
|
|
|
|
|
|
#{item.customerContactId},
|
|
|
|
|
|
|
|
|
|
#{item.customerName},
|
|
|
|
|
|
|
|
|
|
#{item.shippingAddress},
|
|
|
|
|
@ -265,6 +291,9 @@
|
|
|
|
|
<if test="item.customerId != null">
|
|
|
|
|
t.customer_id = #{item.customerId},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="item.customerContactId != null">
|
|
|
|
|
t.customer_contact_id = #{item.customerContactId},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="item.customerName != null and item.customerName != ''">
|
|
|
|
|
t.customer_name = #{item.customerName},
|
|
|
|
|
</if>
|
|
|
|
|
|