| | |
| | | <result column="name" property="name"/> |
| | | <result column="imgUrl" property="imgUrl"/> |
| | | <result column="type" property="type"/> |
| | | <result column="cityId" property="cityId"/> |
| | | <result column="isJump" property="isJump"/> |
| | | <result column="jumpType" property="jumpType"/> |
| | | <result column="jumpUrl" property="jumpUrl"/> |
| | |
| | | content as content, |
| | | state as state, |
| | | provinceId as provinceId |
| | | from t_advertisement where flag != 3 and state = 1 and provinceId in (select id from t_region where code = #{code}) |
| | | from t_advertisement where flag != 3 and state = 1 |
| | | <if test="null != type"> |
| | | and `type` = #{type} |
| | | </if> |
| | | <if test="null != city"> |
| | | and cityId in (select id from t_city where englishName in |
| | | <foreach collection="city" item="item" index="index" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | ) |
| | | </if> |
| | | </select> |
| | | </mapper> |