|
|
@@ -337,8 +337,8 @@
|
|
|
<include refid="Join_Column_List"/>
|
|
|
from kwp_settlement_logistics s
|
|
|
inner join kwp_ledger_logistics l on s.l_ledger_id = l.id
|
|
|
- inner join kwp_ledger_logistics_unit lu on s.l_ledger_id = lu.l_ledger_id
|
|
|
- inner join kwp_ledger_logistics_unit lu2 on s.l_ledger_id = lu2.l_ledger_id
|
|
|
+ inner join kwp_ledger_logistics_unit lu on s.l_ledger_id = lu.l_ledger_id and lu.del_flag = 0
|
|
|
+ inner join kwp_ledger_logistics_unit lu2 on s.l_ledger_id = lu2.l_ledger_id and lu2.del_flag = 0
|
|
|
where s.id = #{id,jdbcType=BIGINT}
|
|
|
<if test="unitType != null">
|
|
|
and lu.unit_type = #{unitType,jdbcType=INTEGER}
|