|
|
|
@ -7,15 +7,23 @@
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectCustomWmsShippingBillVoList" resultMap="WmsShippingBillResult">
|
|
|
|
<select id="selectCustomWmsShippingBillVoList" resultMap="WmsShippingBillResult">
|
|
|
|
select t.shipping_bill_id, t.tenant_id, t.shipping_code, t.shipping_type,
|
|
|
|
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.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.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.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,
|
|
|
|
t.source_bill_code, t.contract_id, t.contract_code, t.contract_name,
|
|
|
|
c.order_contract_code as orderContractCode,
|
|
|
|
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
|
|
|
|
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.need_arrival_confirm, t.is_all_receiving, t.arrival_receipt_oss_id, t.arrival_confirm_time, t.arrival_confirm_by,
|
|
|
|
|
|
|
|
u.nick_name as arrivalConfirmByName,
|
|
|
|
|
|
|
|
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
|
|
|
|
from wms_shipping_bill t
|
|
|
|
left join erp_contract_info c on t.contract_id = c.contract_id
|
|
|
|
left join erp_contract_info c on t.contract_id = c.contract_id
|
|
|
|
|
|
|
|
left join sys_user u on t.arrival_confirm_by = u.user_id
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="ew != null and ew.sqlSegment != null and ew.sqlSegment != ''">
|
|
|
|
<if test="ew != null and ew.sqlSegment != null and ew.sqlSegment != ''">
|
|
|
|
AND ${ew.sqlSegment}
|
|
|
|
AND ${ew.sqlSegment}
|
|
|
|
@ -23,35 +31,47 @@
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 根据ID查询详情(联查合同获取SAP订单号) -->
|
|
|
|
<!-- 根据ID查询详情(联查合同获取SAP订单号,联查sys_user获取到货确认人姓名) -->
|
|
|
|
<select id="selectCustomWmsShippingBillVoById" resultMap="WmsShippingBillResult">
|
|
|
|
<select id="selectCustomWmsShippingBillVoById" resultMap="WmsShippingBillResult">
|
|
|
|
select t.shipping_bill_id, t.tenant_id, t.shipping_code, t.shipping_type,
|
|
|
|
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.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.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.inventory_amount, t.source_bill_type, t.source_bill_id, t.source_bill_code,
|
|
|
|
t.contract_id, t.contract_code, t.contract_name,
|
|
|
|
t.contract_id, t.contract_code, t.contract_name,
|
|
|
|
c.order_contract_code as orderContractCode,
|
|
|
|
c.order_contract_code as orderContractCode,
|
|
|
|
t.supplier, t.supplier_id, t.contact_user,
|
|
|
|
t.supplier, t.supplier_id, t.contact_user, t.contact_number,
|
|
|
|
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
|
|
|
|
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.need_arrival_confirm, t.is_all_receiving, t.arrival_receipt_oss_id, t.arrival_confirm_time, t.arrival_confirm_by,
|
|
|
|
|
|
|
|
u.nick_name as arrivalConfirmByName,
|
|
|
|
|
|
|
|
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
|
|
|
|
from wms_shipping_bill t
|
|
|
|
left join erp_contract_info c on t.contract_id = c.contract_id
|
|
|
|
left join erp_contract_info c on t.contract_id = c.contract_id
|
|
|
|
|
|
|
|
left join sys_user u on t.arrival_confirm_by = u.user_id
|
|
|
|
where t.shipping_bill_id = #{shippingBillId}
|
|
|
|
where t.shipping_bill_id = #{shippingBillId}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 批量查询 - 根据ID列表(联查合同获取SAP订单号) -->
|
|
|
|
<!-- 批量查询 - 根据ID列表(联查合同获取SAP订单号) -->
|
|
|
|
<select id="selectCustomWmsShippingBillVoByIds" resultMap="WmsShippingBillResult">
|
|
|
|
<select id="selectCustomWmsShippingBillVoByIds" resultMap="WmsShippingBillResult">
|
|
|
|
select t.shipping_bill_id, t.tenant_id, t.shipping_code, t.shipping_type,
|
|
|
|
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.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.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.inventory_amount, t.source_bill_type, t.source_bill_id, t.source_bill_code,
|
|
|
|
t.contract_id, t.contract_code, t.contract_name,
|
|
|
|
t.contract_id, t.contract_code, t.contract_name,
|
|
|
|
c.order_contract_code as orderContractCode,
|
|
|
|
c.order_contract_code as orderContractCode,
|
|
|
|
t.supplier, t.supplier_id, t.contact_user, t.contact_number, t.receiver_name,
|
|
|
|
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.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.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
|
|
|
|
t.out_stock_bill_status, t.flow_status,
|
|
|
|
|
|
|
|
t.need_arrival_confirm, t.is_all_receiving, t.arrival_receipt_oss_id, t.arrival_confirm_time, t.arrival_confirm_by,
|
|
|
|
|
|
|
|
u.nick_name as arrivalConfirmByName,
|
|
|
|
|
|
|
|
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
|
|
|
|
from wms_shipping_bill t
|
|
|
|
left join erp_contract_info c on t.contract_id = c.contract_id
|
|
|
|
left join erp_contract_info c on t.contract_id = c.contract_id
|
|
|
|
|
|
|
|
left join sys_user u on t.arrival_confirm_by = u.user_id
|
|
|
|
where t.shipping_bill_id in
|
|
|
|
where t.shipping_bill_id in
|
|
|
|
<foreach collection="ids" item="id" open="(" separator="," close=")">
|
|
|
|
<foreach collection="ids" item="id" open="(" separator="," close=")">
|
|
|
|
#{id}
|
|
|
|
#{id}
|
|
|
|
@ -70,9 +90,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 分页查询(带自定义条件,联查合同获取SAP订单号) -->
|
|
|
|
<!-- 分页查询(带自定义条件,联查合同获取SAP订单号) -->
|
|
|
|
<select id="selectCustomWmsShippingBillVoPage" resultMap="WmsShippingBillResult">
|
|
|
|
<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_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
|
|
|
|
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.need_arrival_confirm, t.is_all_receiving, t.arrival_receipt_oss_id, t.arrival_confirm_time, t.arrival_confirm_by,
|
|
|
|
|
|
|
|
u.nick_name as arrivalConfirmByName,
|
|
|
|
|
|
|
|
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
|
|
|
|
from wms_shipping_bill t
|
|
|
|
left join erp_contract_info c on t.contract_id = c.contract_id
|
|
|
|
left join erp_contract_info c on t.contract_id = c.contract_id
|
|
|
|
|
|
|
|
left join sys_user u on t.arrival_confirm_by = u.user_id
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="ew != null and ew.sqlSegment != null and ew.sqlSegment != ''">
|
|
|
|
<if test="ew != null and ew.sqlSegment != null and ew.sqlSegment != ''">
|
|
|
|
AND ${ew.sqlSegment}
|
|
|
|
AND ${ew.sqlSegment}
|
|
|
|
|