|
|
|
|
@ -16,7 +16,11 @@
|
|
|
|
|
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}
|
|
|
|
|
<where>
|
|
|
|
|
<if test="ew != null and ew.sqlSegment != null and ew.sqlSegment != ''">
|
|
|
|
|
AND ${ew.sqlSegment}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<!-- 根据ID查询详情(联查合同获取SAP订单号) -->
|
|
|
|
|
@ -57,7 +61,11 @@
|
|
|
|
|
<!-- 统计查询 -->
|
|
|
|
|
<select id="countCustomWmsShippingBill" resultType="java.lang.Long">
|
|
|
|
|
select count(1) from wms_shipping_bill t
|
|
|
|
|
${ew.getCustomSqlSegment}
|
|
|
|
|
<where>
|
|
|
|
|
<if test="ew != null and ew.sqlSegment != null and ew.sqlSegment != ''">
|
|
|
|
|
AND ${ew.sqlSegment}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<!-- 分页查询(带自定义条件,联查合同获取SAP订单号) -->
|
|
|
|
|
@ -65,7 +73,11 @@
|
|
|
|
|
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}
|
|
|
|
|
<where>
|
|
|
|
|
<if test="ew != null and ew.sqlSegment != null and ew.sqlSegment != ''">
|
|
|
|
|
AND ${ew.sqlSegment}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<!-- 批量插入 -->
|
|
|
|
|
@ -407,7 +419,11 @@
|
|
|
|
|
<!-- 根据自定义条件删除 -->
|
|
|
|
|
<delete id="deleteCustomWmsShippingBill">
|
|
|
|
|
delete from wms_shipping_bill t
|
|
|
|
|
${ew.getCustomSqlSegment}
|
|
|
|
|
<where>
|
|
|
|
|
<if test="ew != null and ew.sqlSegment != null and ew.sqlSegment != ''">
|
|
|
|
|
AND ${ew.sqlSegment}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<!-- 根据ID列表批量删除 -->
|
|
|
|
|
@ -422,7 +438,11 @@
|
|
|
|
|
<!-- 检查是否存在 -->
|
|
|
|
|
<select id="existsWmsShippingBill" resultType="java.lang.Boolean">
|
|
|
|
|
select count(1) > 0 from wms_shipping_bill t
|
|
|
|
|
${ew.getCustomSqlSegment}
|
|
|
|
|
<where>
|
|
|
|
|
<if test="ew != null and ew.sqlSegment != null and ew.sqlSegment != ''">
|
|
|
|
|
AND ${ew.sqlSegment}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|