| | |
| | | LEFT JOIN sys_user AS su1 ON su1.user_id = cadt.update_by |
| | | where cadt.community_id = 0 and cadt.is_del = 2 |
| | | <if test="comActDynTypeDTO.category != null"> |
| | | <if test="comActDynTypeDTO.category == 3 or comActDynTypeDTO.category == 2"> |
| | | AND 1=2 |
| | | </if> |
| | | AND cadt.category = #{comActDynTypeDTO.category} |
| | | </if> |
| | | <if test="comActDynTypeDTO.keyWord != null and comActDynTypeDTO.keyWord != """> |
| | |
| | | LEFT JOIN sys_user AS su1 ON su1.user_id = cadt.update_by |
| | | where cadt.is_del = 2 |
| | | <if test='comActDynTypeDTO.category != null '> |
| | | <if test="comActDynTypeDTO.category != 3"> |
| | | <if test="comActDynTypeDTO.communityId != null"> |
| | | and cadt.community_id = ${comActDynTypeDTO.communityId} |
| | | </if> |
| | | </if> |
| | | AND cadt.category = #{comActDynTypeDTO.category} |
| | | </if> |
| | | <if test="comActDynTypeDTO.communityId != null"> |
| | | <if test="comActDynTypeDTO.communityId == 0"> |
| | | AND 1=2 |
| | | </if> |
| | | and cadt.community_id = ${comActDynTypeDTO.communityId} |
| | | </if> |
| | | <if test="comActDynTypeDTO.keyWord != null and comActDynTypeDTO.keyWord != """> |
| | | and (cadt.id = #{comActDynTypeDTO.keyWord} or cadt.`name` like concat (#{comActDynTypeDTO.keyWord},'%')) |
| | |
| | | LEFT JOIN sys_user AS su1 ON su1.user_id = cadt.update_by |
| | | where cadt.community_id = 0 and cadt.is_del = 2 |
| | | <if test="comActDynTypeDTO.category != null"> |
| | | <if test="comActDynTypeDTO.category == 3 or comActDynTypeDTO.category == 2"> |
| | | AND 1=2 |
| | | </if> |
| | | AND cadt.category = #{comActDynTypeDTO.category} |
| | | </if> |
| | | <if test="comActDynTypeDTO.keyWord != null and comActDynTypeDTO.keyWord != """> |
| | |
| | | LEFT JOIN sys_user AS su1 ON su1.user_id = cadt.update_by |
| | | where cadt.is_del = 2 |
| | | <if test='comActDynTypeDTO.category != null '> |
| | | <if test="comActDynTypeDTO.category != 3"> |
| | | <if test="comActDynTypeDTO.communityId != null"> |
| | | and cadt.community_id = ${comActDynTypeDTO.communityId} |
| | | </if> |
| | | </if> |
| | | AND cadt.category = #{comActDynTypeDTO.category} |
| | | </if> |
| | | <if test="comActDynTypeDTO.communityId != null"> |
| | | <if test="comActDynTypeDTO.communityId == 0"> |
| | | AND 1=2 |
| | | </if> |
| | | and cadt.community_id = ${comActDynTypeDTO.communityId} |
| | | </if> |
| | | <if test="comActDynTypeDTO.keyWord != null and comActDynTypeDTO.keyWord != """> |
| | | and (cadt.id = #{comActDynTypeDTO.keyWord} or cadt.`name` like concat (#{comActDynTypeDTO.keyWord},'%')) |
| | | </if> |