|
|
@@ -308,8 +308,16 @@
|
|
|
left join c_business cb on t.b_id = cb.b_id
|
|
|
left join c_orders co on cb.o_id = co.o_id
|
|
|
left join u_user uu on co.user_id = uu.user_id
|
|
|
+ <if test="deleteFlag != null and deleteFlag != ''">
|
|
|
+ inner join pay_fee pf on t.fee_id = pf.fee_id and pf.status_cd = '1' and pf.b_id = t.b_id
|
|
|
+ </if>
|
|
|
where 1=1
|
|
|
+ <if test="feeId != null and feeId != ''">
|
|
|
and t.fee_id = #{feeId}
|
|
|
+ </if>
|
|
|
+ <if test="deleteFlag != null and deleteFlag != ''">
|
|
|
+ and t.operate = 'DEL'
|
|
|
+ </if>
|
|
|
and t.community_id = #{communityId}
|
|
|
</select>
|
|
|
|
|
|
@@ -322,8 +330,16 @@
|
|
|
left join c_business cb on t.b_id = cb.b_id
|
|
|
left join c_orders co on cb.o_id = co.o_id
|
|
|
left join u_user uu on co.user_id = uu.user_id
|
|
|
+ <if test="deleteFlag != null and deleteFlag != ''">
|
|
|
+ inner join pay_fee pf on t.fee_id = pf.fee_id and pf.status_cd = '1' and pf.b_id = t.b_id
|
|
|
+ </if>
|
|
|
where 1=1
|
|
|
- and t.fee_id = #{feeId}
|
|
|
+ <if test="feeId != null and feeId != ''">
|
|
|
+ and t.fee_id = #{feeId}
|
|
|
+ </if>
|
|
|
+ <if test="deleteFlag != null and deleteFlag != ''">
|
|
|
+ and t.operate = 'DEL'
|
|
|
+ </if>
|
|
|
and t.community_id = #{communityId}
|
|
|
order by t.create_time desc,t.operate
|
|
|
<if test="page != -1 and page != null ">
|