|
|
@@ -337,8 +337,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_config pfc on t.config_id = pfc.config_id and pfc.status_cd = '1' and pfc.b_id = t.b_id
|
|
|
+ </if>
|
|
|
where 1=1
|
|
|
- and t.config_id = #{configId}
|
|
|
+ <if test="configId != null and configId != ''">
|
|
|
+ and t.config_id = #{configId}
|
|
|
+ </if>
|
|
|
+ <if test="deleteFlag != null and deleteFlag != ''">
|
|
|
+ and t.operate = 'DEL'
|
|
|
+ </if>
|
|
|
and t.community_id = #{communityId}
|
|
|
</select>
|
|
|
|
|
|
@@ -364,8 +372,16 @@
|
|
|
= 'bill_type'
|
|
|
left join t_dict td4 on t.computing_formula = td4.status_cd and td4.table_name = 'pay_fee_config' and
|
|
|
td4.table_columns = 'computing_formula'
|
|
|
+ <if test="deleteFlag != null and deleteFlag != ''">
|
|
|
+ inner join pay_fee_config pfc on t.config_id = pfc.config_id and pfc.status_cd = '1' and pfc.b_id = t.b_id
|
|
|
+ </if>
|
|
|
where 1=1
|
|
|
+ <if test="configId != null and configId != ''">
|
|
|
and t.config_id = #{configId}
|
|
|
+ </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 ">
|