| | |
| | | </set> |
| | | where an_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | |
| | | <select id="listQuery" resultMap="BaseResultMap"> |
| | | SELECT <include refid="Base_Column_List" /> FROM yeshi_ec_apppage_notification |
| | | WHERE 1=1 |
| | | <if test='key != null and key != ""'> |
| | | AND (an_type like '%${key}%' or an_content like '%${key}%') |
| | | </if> |
| | | <if test='show != null'> |
| | | AND an_show = #{show} |
| | | </if> |
| | | <if test='canClose != null'> |
| | | AND an_can_close = #{canClose} |
| | | </if> |
| | | ORDER BY an_createtime desc |
| | | LIMIT ${start},${count} |
| | | </select> |
| | | |
| | | <select id="countQuery" resultType="java.lang.Long"> |
| | | SELECT IFNULL(count(an_id),0) FROM yeshi_ec_apppage_notification |
| | | WHERE 1=1 |
| | | <if test='key != null and key != ""'> |
| | | AND (an_type like '%${key}%' or an_content like '%${key}%') |
| | | </if> |
| | | <if test='show != null'> |
| | | AND an_show = #{show} |
| | | </if> |
| | | <if test='canClose != null'> |
| | | AND an_can_close = #{canClose} |
| | | </if> |
| | | </select> |
| | | |
| | | <delete id="deleteBatchByPrimaryKey" parameterType="java.util.List"> |
| | | delete from yeshi_ec_apppage_notification WHERE an_id in |
| | | <foreach collection="list" item="item" open="(" close=")" |
| | | separator=",">#{item}</foreach> |
| | | </delete> |
| | | |
| | | </mapper> |