| | |
| | | |
| | | <if test="comActDynVO.typeS != null and comActDynVO.typeS == 2 "> |
| | | AND d.type in ( |
| | | (SELECT cadt.id FROM `com_act_dyn_type` as cadt WHERE cadt.name in |
| | | SELECT cadt.id FROM `com_act_dyn_type` as cadt WHERE cadt.name in |
| | | <foreach collection="comActDynVO.typeList" item="id" index="index" open="(" close=")" separator=","> |
| | | #{id} |
| | | </foreach> |
| | | <if test="comActDynVO.communityId != null and comActDynVO.communityId != '' "> |
| | | and cadt.community_id in (${comActDynVO.communityId}) |
| | | </if>) |
| | | </if> |
| | | union |
| | | SELECT cadt2.id FROM `com_act_dyn_type` as cadt2 WHERE cadt2.area=1 and cadt2.name in |
| | | <foreach collection="comActDynVO.typeList" item="id" index="index" open="(" close=")" separator=","> |
| | | #{id} |
| | | </foreach> |
| | | |
| | | ) |
| | | </if> |
| | | |
| | | <!-- (SELECT cadt2.id FROM `com_act_dyn_type` as cadt2 WHERE cadt2.area=1 and cadt2.name in--> |
| | | <!-- <foreach collection="comActDynVO.typeList" item="id" index="index" open="(" close=")" separator=",">--> |
| | | <!-- #{id}--> |
| | | <!-- </foreach> )--> |
| | | |
| | | |
| | | |
| | | <if test="comActDynVO.publishAtBegin != null and comActDynVO.publishAtBegin != '' "> |
| | | AND d.publish_at BETWEEN #{comActDynVO.publishAtBegin} AND #{comActDynVO.publishAtEnd} |