|
|
@@ -5,6 +5,7 @@
|
|
|
<result property="id" column="id" jdbcType="INTEGER"/>
|
|
|
<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="remarks" column="remarks" jdbcType="VARCHAR"/>
|
|
|
<result property="auditor" column="auditor" jdbcType="VARCHAR"/>
|
|
|
<result property="auditorName" column="auditor_name" jdbcType="VARCHAR"/>
|
|
|
@@ -12,7 +13,7 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="OrderPublicReleaseLogAllSql">
|
|
|
- id, order_no, process_status, remarks, auditor, auditor_name, create_time
|
|
|
+ id, order_no, process_status, status, remarks, auditor, auditor_name, create_time
|
|
|
</sql>
|
|
|
|
|
|
<!--查询单个-->
|
|
|
@@ -39,6 +40,9 @@
|
|
|
<if test="processStatus != null">
|
|
|
and process_status = #{processStatus}
|
|
|
</if>
|
|
|
+ <if test="status != null">
|
|
|
+ and status = #{status}
|
|
|
+ </if>
|
|
|
<if test="remarks != null and remarks != ''">
|
|
|
and remarks = #{remarks}
|
|
|
</if>
|
|
|
@@ -71,6 +75,9 @@
|
|
|
<if test="processStatus != null">
|
|
|
and process_status = #{processStatus}
|
|
|
</if>
|
|
|
+ <if test="status != null">
|
|
|
+ and status = #{status}
|
|
|
+ </if>
|
|
|
<if test="remarks != null and remarks != ''">
|
|
|
and remarks = #{remarks}
|
|
|
</if>
|
|
|
@@ -88,29 +95,33 @@
|
|
|
|
|
|
<!--新增所有列-->
|
|
|
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
|
|
- insert into order_public_release_log(order_no, process_status, remarks, auditor, auditor_name, create_time)
|
|
|
- values (#{orderNo}, #{processStatus}, #{remarks}, #{auditor}, #{auditorName}, #{createTime})
|
|
|
+ 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>
|
|
|
|
|
|
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
|
|
|
- insert into order_public_release_log(order_no, process_status, remarks, auditor, auditor_name, create_time)
|
|
|
+ insert into order_public_release_log(order_no, process_status, status, remarks, auditor, auditor_name,
|
|
|
+ create_time)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.orderNo}, #{entity.processStatus}, #{entity.remarks}, #{entity.auditor}, #{entity.auditorName},
|
|
|
- #{entity.createTime})
|
|
|
+ (#{entity.orderNo}, #{entity.processStatus}, #{entity.status}, #{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, remarks, auditor, auditor_name, create_time)
|
|
|
+ insert into order_public_release_log(order_no, process_status, status, remarks, auditor, auditor_name,
|
|
|
+ create_time)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.orderNo}, #{entity.processStatus}, #{entity.remarks}, #{entity.auditor}, #{entity.auditorName},
|
|
|
- #{entity.createTime})
|
|
|
+ (#{entity.orderNo}, #{entity.processStatus}, #{entity.status}, #{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),
|
|
|
remarks = values(remarks),
|
|
|
auditor = values(auditor),
|
|
|
auditor_name = values(auditor_name),
|
|
|
@@ -127,6 +138,9 @@
|
|
|
<if test="processStatus != null">
|
|
|
process_status = #{processStatus},
|
|
|
</if>
|
|
|
+ <if test="status != null">
|
|
|
+ status = #{status},
|
|
|
+ </if>
|
|
|
<if test="remarks != null and remarks != ''">
|
|
|
remarks = #{remarks},
|
|
|
</if>
|