|
|
@@ -32,6 +32,7 @@
|
|
|
t3.short_name as corpShortName,
|
|
|
t1.salesman,
|
|
|
t5.name as salesmanName,
|
|
|
+ t1.shipping_mode as shippingMode,
|
|
|
t1.salesman_dept as salesmanDept,
|
|
|
t1.create_user as createUser,
|
|
|
t1.dispatcher,
|
|
|
@@ -110,8 +111,10 @@
|
|
|
and t1.is_deleted = 0
|
|
|
and t2.kind = '2'
|
|
|
<if test="acct.corpName != null and acct.corpName != ''">and t3.cname like concat('%', #{acct.corpName}, '%')</if>
|
|
|
+ <if test="acct.corpId != null and acct.corpId != ''">and t1.corp_id like concat('%', #{acct.corpId}, '%')</if>
|
|
|
<if test="acct.salesmanName != null and acct.salesmanName != ''">and t5.name like concat('%', #{acct.salesmanName}, '%')</if>
|
|
|
<if test="acct.corpShortName != null and acct.corpShortName != ''">and t3.short_name like concat('%', #{acct.corpShortName}, '%')</if>
|
|
|
+ <if test="acct.station != null and acct.station != '' and acct.shippingMode != '散货'">and t1.station like concat('%', #{acct.station}, '%')</if>
|
|
|
<if test="acct.fleetId != null and acct.shippingMode != '散货'">and t2.fleet_id = #{acct.fleetId}</if>
|
|
|
<if test="acct.fleetId != null and acct.shippingMode == '散货'">and t1.fleet_id = #{acct.fleetId}</if>
|
|
|
<if test="acct.fleetShortName != null and acct.fleetShortName != ''">and t4.short_name like concat('%', #{acct.fleetShortName}, '%')</if>
|
|
|
@@ -120,6 +123,8 @@
|
|
|
<if test="acct.billNo != null and acct.billNo != ''">and t1.bill_no like concat('%', #{acct.billNo}, '%')</if>
|
|
|
<if test="acct.plateNo != null and acct.plateNo != '' and acct.shippingMode != '散货'">and t2.plate_no like concat('%', #{acct.plateNo}, '%')</if>
|
|
|
<if test="acct.plateNo != null and acct.plateNo != '' and acct.shippingMode == '散货'">and t1.plate_no like concat('%', #{acct.plateNo}, '%')</if>
|
|
|
+ <if test="acct.dispatchNumber != null and acct.dispatchNumber != '' and acct.shippingMode == '散货'">and t1.dispatch_number like concat('%', #{acct.dispatchNumber}, '%')</if>
|
|
|
+ <if test="acct.contractNo != null and acct.contractNo != '' and acct.shippingMode == '散货'">and t1.contract_no like concat('%', #{acct.contractNo}, '%')</if>
|
|
|
<if test="acct.ctnDetail != null and acct.ctnDetail != '' and acct.shippingMode != '散货'">and t2.ctn_type like concat('%', #{acct.ctnDetail}, '%')</if>
|
|
|
<if test="acct.beginArrivalTime != null and acct.beginArrivalTime != '' and acct.shippingMode != '散货'">and t2.arrival_time >= #{acct.beginArrivalTime}</if>
|
|
|
<if test="acct.endArrivalTime != null and acct.endArrivalTime != '' and acct.shippingMode != '散货'">and t2.arrival_time <= #{acct.endArrivalTime}</if>
|