|
|
@@ -3,7 +3,7 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.fs.his.mapper.FsCourseCouponUserMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="FsCourseCouponUser" id="FsCourseCouponUserResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="couponId" column="coupon_id" />
|
|
|
@@ -14,29 +14,33 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="status" column="status" />
|
|
|
<result property="logId" column="log_id" />
|
|
|
+ <result property="sendType" column="send_type" />
|
|
|
+ <result property="liveId" column="live_id" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsCourseCouponUserVo">
|
|
|
- select id, coupon_id, user_id, limit_time, start_time, create_time, update_time, status, log_id from fs_course_coupon_user
|
|
|
+ select id, coupon_id, user_id, limit_time, start_time, create_time, update_time, status, log_id,send_type,live_id from fs_course_coupon_user
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsCourseCouponUserList" parameterType="FsCourseCouponUser" resultMap="FsCourseCouponUserResult">
|
|
|
<include refid="selectFsCourseCouponUserVo"/>
|
|
|
- <where>
|
|
|
+ <where>
|
|
|
<if test="couponId != null "> and coupon_id = #{couponId}</if>
|
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
|
<if test="limitTime != null "> and limit_time = #{limitTime}</if>
|
|
|
<if test="startTime != null "> and start_time = #{startTime}</if>
|
|
|
<if test="status != null "> and status = #{status}</if>
|
|
|
- <if test="logId != null "> and log_id = #{logId}</if>
|
|
|
+ <if test="logId != null "> and log_id = #{logId}</if>
|
|
|
+ <if test="sendType != null "> and send_type = #{sendType}</if>
|
|
|
+ <if test="liveId != null "> and live_id = #{liveId}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectFsCourseCouponUserById" parameterType="Long" resultMap="FsCourseCouponUserResult">
|
|
|
<include refid="selectFsCourseCouponUserVo"/>
|
|
|
where id = #{id}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<insert id="insertFsCourseCouponUser" parameterType="FsCourseCouponUser" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into fs_course_coupon_user
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
@@ -48,6 +52,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="status != null">status,</if>
|
|
|
<if test="logId != null">log_id,</if>
|
|
|
+ <if test="sendType != null">send_type,</if>
|
|
|
+ <if test="liveId != null">live_id,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="couponId != null">#{couponId},</if>
|
|
|
@@ -58,6 +64,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="status != null">#{status},</if>
|
|
|
<if test="logId != null">#{logId},</if>
|
|
|
+ <if test="sendType != null">#{sendType},</if>
|
|
|
+ <if test="liveId != null">#{live_id},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -72,6 +80,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
<if test="logId != null">log_id = #{logId},</if>
|
|
|
+ <if test="sendType != null">send_type = #{sendType},</if>
|
|
|
+ <if test="liveId != null">live_id = #{liveId},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
|
@@ -81,9 +91,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteFsCourseCouponUserByIds" parameterType="String">
|
|
|
- delete from fs_course_coupon_user where id in
|
|
|
+ delete from fs_course_coupon_user where id in
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
</delete>
|
|
|
-</mapper>
|
|
|
+</mapper>
|