|
|
@@ -6,6 +6,8 @@
|
|
|
<result property="orderNo" column="order_no" jdbcType="VARCHAR"/>
|
|
|
<result property="processStatus" column="process_status" jdbcType="INTEGER"/>
|
|
|
<result property="status" column="status" jdbcType="INTEGER"/>
|
|
|
+ <result property="useDuration" column="use_duration" jdbcType="NUMERIC"/>
|
|
|
+ <result property="newDuration" column="new_duration" jdbcType="NUMERIC"/>
|
|
|
<result property="remarks" column="remarks" jdbcType="VARCHAR"/>
|
|
|
<result property="auditor" column="auditor" jdbcType="VARCHAR"/>
|
|
|
<result property="auditorName" column="auditor_name" jdbcType="VARCHAR"/>
|
|
|
@@ -13,7 +15,7 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="OrderPublicReleaseLogAllSql">
|
|
|
- id, order_no, process_status, status, remarks, auditor, auditor_name, create_time
|
|
|
+ id, order_no, process_status, status, use_duration, new_duration, remarks, auditor, auditor_name, create_time
|
|
|
</sql>
|
|
|
|
|
|
<!--查询单个-->
|
|
|
@@ -43,6 +45,12 @@
|
|
|
<if test="status != null">
|
|
|
and status = #{status}
|
|
|
</if>
|
|
|
+ <if test="useDuration != null">
|
|
|
+ and use_duration = #{useDuration}
|
|
|
+ </if>
|
|
|
+ <if test="newDuration != null">
|
|
|
+ and new_duration = #{newDuration}
|
|
|
+ </if>
|
|
|
<if test="remarks != null and remarks != ''">
|
|
|
and remarks = #{remarks}
|
|
|
</if>
|
|
|
@@ -78,6 +86,12 @@
|
|
|
<if test="status != null">
|
|
|
and status = #{status}
|
|
|
</if>
|
|
|
+ <if test="useDuration != null">
|
|
|
+ and use_duration = #{useDuration}
|
|
|
+ </if>
|
|
|
+ <if test="newDuration != null">
|
|
|
+ and new_duration = #{newDuration}
|
|
|
+ </if>
|
|
|
<if test="remarks != null and remarks != ''">
|
|
|
and remarks = #{remarks}
|
|
|
</if>
|
|
|
@@ -95,33 +109,36 @@
|
|
|
|
|
|
<!--新增所有列-->
|
|
|
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
|
|
- insert into order_public_release_log(order_no, process_status, status, remarks, auditor, auditor_name,
|
|
|
- create_time)
|
|
|
- values (#{orderNo}, #{processStatus}, #{status}, #{remarks}, #{auditor}, #{auditorName}, #{createTime})
|
|
|
+ insert into order_public_release_log(order_no, process_status, status, use_duration, new_duration, remarks,
|
|
|
+ auditor, auditor_name, create_time)
|
|
|
+ values (#{orderNo}, #{processStatus}, #{status}, #{useDuration}, #{newDuration}, #{remarks}, #{auditor},
|
|
|
+ #{auditorName}, #{createTime})
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
|
|
|
- insert into order_public_release_log(order_no, process_status, status, remarks, auditor, auditor_name,
|
|
|
- create_time)
|
|
|
+ insert into order_public_release_log(order_no, process_status, status, use_duration, new_duration, remarks,
|
|
|
+ auditor, auditor_name, create_time)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.orderNo}, #{entity.processStatus}, #{entity.status}, #{entity.remarks}, #{entity.auditor},
|
|
|
- #{entity.auditorName}, #{entity.createTime})
|
|
|
+ (#{entity.orderNo}, #{entity.processStatus}, #{entity.status}, #{entity.useDuration}, #{entity.newDuration},
|
|
|
+ #{entity.remarks}, #{entity.auditor}, #{entity.auditorName}, #{entity.createTime})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
|
|
- insert into order_public_release_log(order_no, process_status, status, remarks, auditor, auditor_name,
|
|
|
- create_time)
|
|
|
+ insert into order_public_release_log(order_no, process_status, status, use_duration, new_duration, remarks,
|
|
|
+ auditor, auditor_name, create_time)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.orderNo}, #{entity.processStatus}, #{entity.status}, #{entity.remarks}, #{entity.auditor},
|
|
|
- #{entity.auditorName}, #{entity.createTime})
|
|
|
+ (#{entity.orderNo}, #{entity.processStatus}, #{entity.status}, #{entity.useDuration}, #{entity.newDuration},
|
|
|
+ #{entity.remarks}, #{entity.auditor}, #{entity.auditorName}, #{entity.createTime})
|
|
|
</foreach>
|
|
|
on duplicate key update
|
|
|
order_no = values(order_no),
|
|
|
process_status = values(process_status),
|
|
|
status = values(status),
|
|
|
+ use_duration = values(use_duration),
|
|
|
+ new_duration = values(new_duration),
|
|
|
remarks = values(remarks),
|
|
|
auditor = values(auditor),
|
|
|
auditor_name = values(auditor_name),
|
|
|
@@ -141,6 +158,12 @@
|
|
|
<if test="status != null">
|
|
|
status = #{status},
|
|
|
</if>
|
|
|
+ <if test="useDuration != null">
|
|
|
+ use_duration = #{useDuration},
|
|
|
+ </if>
|
|
|
+ <if test="newDuration != null">
|
|
|
+ new_duration = #{newDuration},
|
|
|
+ </if>
|
|
|
<if test="remarks != null and remarks != ''">
|
|
|
remarks = #{remarks},
|
|
|
</if>
|