Browse Source

联建活动查询test2:BETWEEN

master
yinzuomei 3 years ago
parent
commit
6b96cc216e
  1. 7
      epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcPartyActivityDao.xml

7
epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcPartyActivityDao.xml

@ -89,11 +89,8 @@
<if test='null != serviceMatter and "" != serviceMatter'>
AND sr.SERVICE_MATTER = #{serviceMatter}
</if>
<if test=" null != startTime and startTime != '' ">
AND a.ACTIVITY_TIME <![CDATA[ >= ]]> #{startTime}
</if>
<if test="null != endTime and endTime != '' ">
AND a.ACTIVITY_TIME <![CDATA[ <= ]]> #{endTime}
<if test=" null != startTime and startTime != '' and null != endTime and endTime != ''">
AND a.ACTIVITY_TIME BETWEEN #{startTime} AND #{endTime}
</if>
GROUP BY a.id
ORDER BY a.ACTIVITY_TIME DESC

Loading…
Cancel
Save