处理暂停日期
This commit is contained in:
@ -29,6 +29,8 @@ public class SysOrderPause {
|
||||
|
||||
private Long cusId;
|
||||
|
||||
private String outId;
|
||||
|
||||
/**
|
||||
* 服务暂停开始时间
|
||||
*/
|
||||
|
@ -8,6 +8,7 @@
|
||||
<result property="id" column="id"/>
|
||||
<result property="orderId" column="order_id"/>
|
||||
<result property="cusId" column="cus_id"/>
|
||||
<result property="outId" column="out_id"/>
|
||||
<result property="pauseStartDate" column="pause_start_date"/>
|
||||
<result property="pauseEndDate" column="pause_end_date"/>
|
||||
<result property="reason" column="reason"/>
|
||||
@ -24,7 +25,7 @@
|
||||
</sql>
|
||||
|
||||
<sql id="selectSysOrderPauseVo">
|
||||
select id, order_id, cus_id, pause_start_date, pause_end_date, reason, remarks, create_time, create_by, update_time, update_by, del_flag from sys_recipes_pause sop
|
||||
select id, order_id, cus_id, out_id, pause_start_date, pause_end_date, reason, remarks, create_time, create_by, update_time, update_by, del_flag from sys_recipes_pause sop
|
||||
</sql>
|
||||
|
||||
<select id="selectSysOrderPauseList" parameterType="SysOrderPause" resultMap="SysOrderPauseResult">
|
||||
@ -36,6 +37,7 @@
|
||||
where sop.del_flag = 0
|
||||
<if test="orderId != null ">and sop.order_id = #{orderId}</if>
|
||||
<if test="cusId != null ">and sop.cus_id = #{cusId}</if>
|
||||
<if test="outId != null ">and sop.out_id = #{outId}</if>
|
||||
<if test="pauseStartDate != null ">and sop.pause_start_date = #{pauseStartDate}</if>
|
||||
<if test="pauseEndDate != null ">and sop.pause_end_date = #{pauseEndDate}</if>
|
||||
<if test="reason != null and reason != ''">and sop.reason = #{reason}</if>
|
||||
@ -52,6 +54,7 @@
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="orderId != null">order_id,</if>
|
||||
<if test="cusId != null">cus_id,</if>
|
||||
<if test="cusId != null">out_id,</if>
|
||||
<if test="pauseStartDate != null">pause_start_date,</if>
|
||||
<if test="pauseEndDate != null">pause_end_date,</if>
|
||||
<if test="reason != null">reason,</if>
|
||||
@ -65,6 +68,7 @@
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="orderId != null">#{orderId},</if>
|
||||
<if test="cusId != null">#{cusId},</if>
|
||||
<if test="cusId != null">md5(#{cusId}),</if>
|
||||
<if test="pauseStartDate != null">#{pauseStartDate},</if>
|
||||
<if test="pauseEndDate != null">#{pauseEndDate},</if>
|
||||
<if test="reason != null">#{reason},</if>
|
||||
@ -82,6 +86,7 @@
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="orderId != null">order_id = #{orderId},</if>
|
||||
<if test="cusId != null">cus_id = #{cusId},</if>
|
||||
<if test="outId != null">out_id = #{outId},</if>
|
||||
<if test="pauseStartDate != null">pause_start_date = #{pauseStartDate},</if>
|
||||
<if test="pauseEndDate != null">pause_end_date = #{pauseEndDate},</if>
|
||||
<if test="reason != null">reason = #{reason},</if>
|
||||
|
Reference in New Issue
Block a user