@@ -237,11 +237,20 @@ limitations under the License.
<iftest="memberName != null and memberName != '' ">
AND member_name=#{memberName}
</if>
<iftest="activityType != null and activityType != '' ">
AND activity_type LIKE CONCAT('%', #{activityType} ,'%')
</if>
<iftest="activityType != null and activityType != '' and activityType == '01-集市'.toString() and entityName != '所有'.toString()">
AND fair_name LIKE CONCAT('%', #{entityName} ,'%')
</if>
<iftest="activityType != null and activityType != '' and activityType == '02-园区'.toString() and entityName != '所有'.toString()">
AND community_name LIKE CONCAT('%', #{entityName} ,'%')
</if>
<iftest="city != null and city != '' ">
AND address_name LIKE CONCAT('%', #{city} ,'%')
</if>
<iftest="title != null and title != '' ">
AND ( tag LIKE CONCAT('%', #{title} ,'%') OR title LIKE CONCAT('%', #{title} ,'%') OR member_name LIKE CONCAT('%', #{title} ,'%') )
AND ( tag LIKE CONCAT('%', #{title} ,'%') OR title LIKE CONCAT('%', #{title} ,'%') OR member_name LIKE CONCAT('%', #{title} ,'%') OR fair_name LIKE CONCAT('%', #{title} ,'%') OR community_name LIKE CONCAT('%', #{title} ,'%') OR address_name LIKE CONCAT('%', #{title} ,'%'))
</if>
<iftest="curDate != null and curDate != '' ">
AND #{curDate} >= DATE_FORMAT(start_datetime,'%Y-%m')
...
...
@@ -289,6 +298,15 @@ limitations under the License.
<iftest="memberName != null and memberName != '' ">
AND member_name=#{memberName}
</if>
<iftest="activityType != null and activityType != '' ">
AND activity_type LIKE CONCAT('%', #{activityType} ,'%')
</if>
<iftest="activityType != null and activityType != '' and activityType == '01-集市'.toString() ">
AND fair_name LIKE CONCAT('%', #{entityName} ,'%')
</if>
<iftest="activityType != null and activityType != '' and activityType == '02-园区'.toString() ">
AND community_name LIKE CONCAT('%', #{entityName} ,'%')
</if>
<iftest="city != null and city != '' ">
AND address_name LIKE CONCAT('%', #{city} ,'%')
</if>
...
...
@@ -296,7 +314,7 @@ limitations under the License.
AND tag LIKE CONCAT('%', #{tag} ,'%')
</if>
<iftest="title != null and title != '' ">
AND ( tag LIKE CONCAT('%', #{title} ,'%') OR title LIKE CONCAT('%', #{title} ,'%') OR member_name LIKE CONCAT('%', #{title} ,'%') )
AND ( tag LIKE CONCAT('%', #{title} ,'%') OR title LIKE CONCAT('%', #{title} ,'%') OR member_name LIKE CONCAT('%', #{title} ,'%') OR fair_name LIKE CONCAT('%', #{title} ,'%') OR community_name LIKE CONCAT('%', #{title} ,'%') OR address_name LIKE CONCAT('%', #{title} ,'%'))
</if>
<iftest="beginDate != null and endDate!= null and beginDate != '' and endDate != '' ">
AND
...
...
@@ -363,6 +381,35 @@ limitations under the License.
</if>
</select>
<!-- activity api 3-7 获取 v_activity_stat 的值 by limit update jscat 20201008 -->