Browse Source

sql优化

dev
sunyuchao 3 years ago
parent
commit
3f093f670f
  1. 2
      epmet-module/resi-partymember/resi-partymember-server/src/main/resources/mapper/partymember/IcPartyMemberPayRecordDetailDao.xml

2
epmet-module/resi-partymember/resi-partymember-server/src/main/resources/mapper/partymember/IcPartyMemberPayRecordDetailDao.xml

@ -61,10 +61,12 @@
prd.* prd.*
from ic_party_member_pay_record_detail prd from ic_party_member_pay_record_detail prd
where prd.DEL_FLAG = 0 where prd.DEL_FLAG = 0
<if test="monthList != null and monthList.size() > 0">
AND CONCAT(prd.YEAR,'-',prd.MONTH) IN AND CONCAT(prd.YEAR,'-',prd.MONTH) IN
<foreach collection="monthList" index="index" item="month" open="(" separator="," close=")"> <foreach collection="monthList" index="index" item="month" open="(" separator="," close=")">
#{month} #{month}
</foreach> </foreach>
</if>
<if test='partyMemberId != "" and partyMemberId != null'> <if test='partyMemberId != "" and partyMemberId != null'>
and prd.PARTY_MEMBER_ID = #{partyMemberId} and prd.PARTY_MEMBER_ID = #{partyMemberId}
</if> </if>

Loading…
Cancel
Save