|
|
@@ -355,13 +355,23 @@
|
|
|
<if test="deleteFlag != null and deleteFlag != ''">
|
|
|
and t.operate = 'DEL'
|
|
|
</if>
|
|
|
+ <if test="staffNameLike != null and staffNameLike != ''">
|
|
|
+ and uu.name like concat('%',#{staffNameLike},'%')
|
|
|
+ </if>
|
|
|
+ <if test="feeNameLike != null and staffNameLike != ''">
|
|
|
+ and pfc.fee_name like concat('%',#{feeNameLike},'%')
|
|
|
+ </if>
|
|
|
+ <if test="logStartTime != null and logStartTime != ''">
|
|
|
+ and co.create_time > #{logStartTime}
|
|
|
+ and co.create_time < #{logEndTime}
|
|
|
+ </if>
|
|
|
and t.community_id = #{communityId}
|
|
|
</select>
|
|
|
|
|
|
<select id="queryHisFees" parameterType="Map" resultType="Map">
|
|
|
select t.operate,t.start_time startTime,t.end_time endTime,t.create_time createTime,pfc.fee_name feeName,
|
|
|
t.amount,
|
|
|
- uu.`name` userName,pfa.`value` payerObjName,pfa1.value ownerName
|
|
|
+ uu.`name` userName,pfa.`value` payerObjName,pfa1.value ownerName,co.create_time createTime
|
|
|
from business_pay_fee t
|
|
|
left join pay_fee_config pfc on t.config_id = pfc.config_id
|
|
|
left join c_business cb on t.b_id = cb.b_id
|
|
|
@@ -379,6 +389,16 @@
|
|
|
<if test="deleteFlag != null and deleteFlag != ''">
|
|
|
and t.operate = 'DEL'
|
|
|
</if>
|
|
|
+ <if test="staffNameLike != null and staffNameLike != ''">
|
|
|
+ and uu.name like concat('%',#{staffNameLike},'%')
|
|
|
+ </if>
|
|
|
+ <if test="feeNameLike != null and staffNameLike != ''">
|
|
|
+ and pfc.fee_name like concat('%',#{feeNameLike},'%')
|
|
|
+ </if>
|
|
|
+ <if test="logStartTime != null and logStartTime != ''">
|
|
|
+ and co.create_time > #{logStartTime}
|
|
|
+ and co.create_time < #{logEndTime}
|
|
|
+ </if>
|
|
|
and t.community_id = #{communityId}
|
|
|
order by t.create_time desc,t.operate
|
|
|
<if test="page != -1 and page != null ">
|
|
|
@@ -408,7 +428,10 @@
|
|
|
<if test="feeNameLike != null and staffNameLike != ''">
|
|
|
and t.fee_name like concat('%',#{feeNameLike},'%')
|
|
|
</if>
|
|
|
-
|
|
|
+ <if test="logStartTime != null and logStartTime != ''">
|
|
|
+ and co.create_time > #{logStartTime}
|
|
|
+ and co.create_time < #{logEndTime}
|
|
|
+ </if>
|
|
|
and t.community_id = #{communityId}
|
|
|
</select>
|
|
|
|
|
|
@@ -450,6 +473,10 @@
|
|
|
<if test="feeNameLike != null and feeNameLike != ''">
|
|
|
and t.fee_name like concat('%',#{feeNameLike},'%')
|
|
|
</if>
|
|
|
+ <if test="logStartTime != null and logStartTime != ''">
|
|
|
+ and co.create_time > #{logStartTime}
|
|
|
+ and co.create_time < #{logEndTime}
|
|
|
+ </if>
|
|
|
and t.community_id = #{communityId}
|
|
|
order by t.create_time desc,t.operate
|
|
|
<if test="page != -1 and page != null ">
|