|
@@ -24,10 +24,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="retryCount" column="retry_count" />
|
|
|
<result property="maxRetries" column="max_retries" />
|
|
|
<result property="remark" column="remark" />
|
|
|
+ <result property="page" column="page"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsCouponScheduleVo">
|
|
|
- select id, user_id, order_id, setmeal_id, month, count, status, create_time, create_by, update_time, update_by, order_time, coupon_id as coupon_ids, send_time, actual_send_time, error_message, retry_count, max_retries, remark from fs_coupon_schedule
|
|
|
+ select id, user_id, order_id, setmeal_id, month, count, status, create_time, create_by, update_time, update_by, order_time, coupon_id as coupon_ids, send_time, actual_send_time, error_message, retry_count, max_retries, remark,page from fs_coupon_schedule
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsCouponScheduleList" parameterType="FsCouponSchedule" resultMap="FsCouponScheduleResult">
|
|
@@ -46,6 +47,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="errorMessage != null and errorMessage != ''"> and error_message = #{errorMessage}</if>
|
|
|
<if test="retryCount != null "> and retry_count = #{retryCount}</if>
|
|
|
<if test="maxRetries != null "> and max_retries = #{maxRetries}</if>
|
|
|
+ <if test="remark != null "> and remark = #{remark}</if>
|
|
|
+ <if test="page != null "> and page = #{page}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -86,6 +89,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="retryCount != null">retry_count,</if>
|
|
|
<if test="maxRetries != null">max_retries,</if>
|
|
|
<if test="remark != null">remark,</if>
|
|
|
+ <if test="page != null">page,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="userId != null">#{userId},</if>
|
|
@@ -106,6 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="retryCount != null">#{retryCount},</if>
|
|
|
<if test="maxRetries != null">#{maxRetries},</if>
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
+ <if test="page != null">#{page},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -130,6 +135,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="retryCount != null">retry_count = #{retryCount},</if>
|
|
|
<if test="maxRetries != null">max_retries = #{maxRetries},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
+ <if test="page != null">page = #{page},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
@@ -155,6 +161,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="item.retryCount != null">retry_count = #{item.retryCount},</if>
|
|
|
<if test="item.maxRetries != null">max_retries = #{item.maxRetries},</if>
|
|
|
<if test="item.remark != null">remark = #{item.remark},</if>
|
|
|
+ <if test="item.page != null">page = #{item.page},</if>
|
|
|
</trim>
|
|
|
where id = #{item.id}
|
|
|
</foreach>
|