|
@@ -23,6 +23,14 @@
|
|
|
<if test="tranTypeKey != null and tranTypeKey != ''">
|
|
|
AND tran_type_key = #{tranTypeKey}
|
|
|
</if>
|
|
|
+ <if test="carType != null and carType != ''">
|
|
|
+ <if test="carType == 1">
|
|
|
+ AND loading_weight is not null and unloading_weight is null
|
|
|
+ </if>
|
|
|
+ <if test="carType == 2">
|
|
|
+ AND unloading_weight is not null
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
<if test="taskNo != null and taskNo != ''">
|
|
|
AND task_no = #{taskNo}
|
|
|
</if>
|
|
@@ -70,6 +78,7 @@
|
|
|
batch_id as batchId,
|
|
|
phone,
|
|
|
name as name,
|
|
|
+ grain_price as grainPrice,
|
|
|
service_charge as serviceCharge,
|
|
|
amount_actually_paid as amountActuallyPaid,
|
|
|
tax_point as taxPoint,
|
|
@@ -88,7 +97,7 @@
|
|
|
loss_weight as lossWeight,
|
|
|
actual_loss as actualLoss,
|
|
|
cargo_damage as cargoDamage,
|
|
|
- manual_flag as ManualFlag,
|
|
|
+ manual_flag as manualFlag,
|
|
|
transport_price as transportPrice,
|
|
|
settlement_price as settlementPrice,
|
|
|
settlement_weight as settlementWeight,
|
|
@@ -122,6 +131,14 @@
|
|
|
<if test="tranTypeKey != null and tranTypeKey != ''">
|
|
|
AND tran_type_key = #{tranTypeKey}
|
|
|
</if>
|
|
|
+ <if test="carType != null and carType != ''">
|
|
|
+ <if test="carType == 1">
|
|
|
+ AND loading_weight is not null and unloading_weight is null
|
|
|
+ </if>
|
|
|
+ <if test="carType == 2">
|
|
|
+ AND unloading_weight is not null
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
<if test="taskNo != null and taskNo != ''">
|
|
|
AND task_no = #{taskNo}
|
|
|
</if>
|