| | |
| | | and jr.community_code like concat('%',#{rotation.regionCode},'%') |
| | | </if> |
| | | |
| | | <if test="rotation.rotationRange != null and rotation.rotationRange != ''"> and jr.rotation_range = #{rotation.rotationRange}</if> |
| | | <if test="rotation.articleId != null "> and jr.article_id = #{rotation.articleId}</if> |
| | | <if test="rotation.publicFlag != null "> and jr.public_flag = #{rotation.publicFlag}</if> |
| | | <if test="rotation.rotationRange != null and rotation.rotationRange != ''">and jr.rotation_range = |
| | | #{rotation.rotationRange} |
| | | </if> |
| | | <if test="rotation.articleId != null ">and jr.article_id = #{rotation.articleId}</if> |
| | | <if test="rotation.publicFlag != null ">and jr.public_flag = #{rotation.publicFlag}</if> |
| | | |
| | | <if test="rotation.districtIdList != null and rotation.districtIdList.size() > 0 "> |
| | | and (jr.rotation_range like |
| | | <foreach collection="rotation.districtIdList" separator=" or jr.rotation_range like" item="id">'%${id}%' |
| | | </foreach> |
| | | ) |
| | | ) or jr.rotation_range is null |
| | | </if> |
| | | |
| | | <if test="isAdministrator==2"> |
| | |
| | | </if> |
| | | <if test="rotation.roleName=='inhabitant'"> |
| | | and jr.type = 3 |
| | | <if test="rotation.districtIdList == null "> |
| | | and jr.rotation_range is null |
| | | </if> |
| | | </if> |
| | | </when> |
| | | <otherwise> |