feat(WmsShippingBill): 新增客户联系人ID字段支持

- 在WmsShippingBill实体和Bo对象中添加customerContactId字段
- 在WmsShippingBillVo中新增customerContactId导出属性
- 修改WmsShippingBillMapper.xml,查询及条件中加入customerContactId字段
- 实现查询接口及批量查询接口支持客户联系人ID字段
- 保证客户联系人ID在数据导出及数据库操作中的正确映射和使用
dev
zangch@mesnac.com 1 week ago
parent b9a5105734
commit 8eb5adcf2b

@ -69,6 +69,11 @@ public class WmsShippingBill extends TenantEntity {
*/
private Long customerId;
/**
* ID
*/
private Long customerContactId;
/**
* 便
*/

@ -70,6 +70,11 @@ public class WmsShippingBillBo extends BaseEntity {
*/
private Long customerId;
/**
* ID
*/
private Long customerContactId;
/**
* 便
*/

@ -86,6 +86,12 @@ public class WmsShippingBillVo implements Serializable {
@ExcelDictFormat(readConverterExp = "逻=辑外键")
private Long customerId;
/**
* ID
*/
@ExcelProperty(value = "客户联系人ID")
private Long customerContactId;
/**
* 便
*/

@ -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>

Loading…
Cancel
Save