2021-04-08 10:37:14 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.sinosoft.activity.mapper.ActPageConfigSubscribeMapper">
|
|
|
|
|
|
|
|
|
|
<resultMap type="ActPageConfigSubscribe" id="ActPageConfigSubscribeResult">
|
|
|
|
|
<result property="id" column="id" />
|
|
|
|
|
<result property="actCode" column="act_code" />
|
|
|
|
|
<result property="description" column="description" />
|
|
|
|
|
<result property="bgImg" column="bg_img" />
|
|
|
|
|
<result property="qrCode" column="qr_code" />
|
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectActPageConfigSubscribeVo">
|
2021-04-09 10:54:09 +08:00
|
|
|
select id, act_code, description, bg_img, qr_code, create_time, update_time from act_page_config_subscribe
|
2021-04-08 10:37:14 +08:00
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectActPageConfigSubscribeList" parameterType="ActPageConfigSubscribe" resultMap="ActPageConfigSubscribeResult">
|
|
|
|
|
<include refid="selectActPageConfigSubscribeVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="actCode != null and actCode != ''"> and act_code = #{actCode}</if>
|
|
|
|
|
<if test="description != null and description != ''"> and description = #{description}</if>
|
|
|
|
|
<if test="bgImg != null and bgImg != ''"> and bg_img = #{bgImg}</if>
|
|
|
|
|
<if test="qrCode != null and qrCode != ''"> and qr_code = #{qrCode}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectActPageConfigSubscribeById" parameterType="Integer" resultMap="ActPageConfigSubscribeResult">
|
|
|
|
|
<include refid="selectActPageConfigSubscribeVo"/>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</select>
|
2021-04-12 13:44:14 +08:00
|
|
|
<select id="selectActPageConfigSubscribeByCode" resultType="ActPageConfigSubscribe">
|
|
|
|
|
<include refid="selectActPageConfigSubscribeVo"/>
|
|
|
|
|
where actCode = #{drawCode}
|
|
|
|
|
</select>
|
|
|
|
|
|
2021-04-08 10:37:14 +08:00
|
|
|
<insert id="insertActPageConfigSubscribe" parameterType="ActPageConfigSubscribe" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
|
insert into act_page_config_subscribe
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="actCode != null and actCode != ''">act_code,</if>
|
|
|
|
|
<if test="description != null">description,</if>
|
|
|
|
|
<if test="bgImg != null">bg_img,</if>
|
|
|
|
|
<if test="qrCode != null">qr_code,</if>
|
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="actCode != null and actCode != ''">#{actCode},</if>
|
|
|
|
|
<if test="description != null">#{description},</if>
|
|
|
|
|
<if test="bgImg != null">#{bgImg},</if>
|
|
|
|
|
<if test="qrCode != null">#{qrCode},</if>
|
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<update id="updateActPageConfigSubscribe" parameterType="ActPageConfigSubscribe">
|
|
|
|
|
update act_page_config_subscribe
|
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="actCode != null and actCode != ''">act_code = #{actCode},</if>
|
|
|
|
|
<if test="description != null">description = #{description},</if>
|
|
|
|
|
<if test="bgImg != null">bg_img = #{bgImg},</if>
|
|
|
|
|
<if test="qrCode != null">qr_code = #{qrCode},</if>
|
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteActPageConfigSubscribeById" parameterType="Integer">
|
|
|
|
|
delete from act_page_config_subscribe where id = #{id}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteActPageConfigSubscribeByIds" parameterType="String">
|
|
|
|
|
delete from act_page_config_subscribe where id in
|
|
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
|
|
#{id}
|
|
|
|
|
</foreach>
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
</mapper>
|