|
|
@@ -3,15 +3,16 @@
|
|
|
<mapper namespace="com.goafanti.common.dao.OrderPublicReleaseLogMapper">
|
|
|
<resultMap type="com.goafanti.common.model.OrderPublicReleaseLog" id="OrderPublicReleaseLogMap">
|
|
|
<result property="id" column="id" jdbcType="INTEGER"/>
|
|
|
- <result property="orderNo" column="order_no" jdbcType="INTEGER"/>
|
|
|
+ <result property="orderNo" column="order_no" jdbcType="VARCHAR"/>
|
|
|
<result property="processStatus" column="process_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"/>
|
|
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="OrderPublicReleaseLogAllSql">
|
|
|
- id, order_no, process_status, remarks, auditor, create_time
|
|
|
+ id, order_no, process_status, remarks, auditor, auditor_name, create_time
|
|
|
</sql>
|
|
|
|
|
|
<!--查询单个-->
|
|
|
@@ -32,7 +33,7 @@
|
|
|
<if test="id != null">
|
|
|
and id = #{id}
|
|
|
</if>
|
|
|
- <if test="orderNo != null">
|
|
|
+ <if test="orderNo != null and orderNo != ''">
|
|
|
and order_no = #{orderNo}
|
|
|
</if>
|
|
|
<if test="processStatus != null">
|
|
|
@@ -44,6 +45,9 @@
|
|
|
<if test="auditor != null and auditor != ''">
|
|
|
and auditor = #{auditor}
|
|
|
</if>
|
|
|
+ <if test="auditorName != null and auditorName != ''">
|
|
|
+ and auditor_name = #{auditorName}
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
|
and create_time = #{createTime}
|
|
|
</if>
|
|
|
@@ -61,7 +65,7 @@
|
|
|
<if test="id != null">
|
|
|
and id = #{id}
|
|
|
</if>
|
|
|
- <if test="orderNo != null">
|
|
|
+ <if test="orderNo != null and orderNo != ''">
|
|
|
and order_no = #{orderNo}
|
|
|
</if>
|
|
|
<if test="processStatus != null">
|
|
|
@@ -73,6 +77,9 @@
|
|
|
<if test="auditor != null and auditor != ''">
|
|
|
and auditor = #{auditor}
|
|
|
</if>
|
|
|
+ <if test="auditorName != null and auditorName != ''">
|
|
|
+ and auditor_name = #{auditorName}
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
|
and create_time = #{createTime}
|
|
|
</if>
|
|
|
@@ -81,29 +88,32 @@
|
|
|
|
|
|
<!--新增所有列-->
|
|
|
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
|
|
- insert into order_public_release_log(order_no, process_status, remarks, auditor, create_time)
|
|
|
- values (#{orderNo}, #{processStatus}, #{remarks}, #{auditor}, #{createTime})
|
|
|
+ insert into order_public_release_log(order_no, process_status, remarks, auditor, auditor_name, create_time)
|
|
|
+ values (#{orderNo}, #{processStatus}, #{remarks}, #{auditor}, #{auditorName}, #{createTime})
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
|
|
|
- insert into order_public_release_log(order_no, process_status, remarks, auditor, create_time)
|
|
|
+ insert into order_public_release_log(order_no, process_status, remarks, auditor, auditor_name, create_time)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.orderNo}, #{entity.processStatus}, #{entity.remarks}, #{entity.auditor}, #{entity.createTime})
|
|
|
+ (#{entity.orderNo}, #{entity.processStatus}, #{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, create_time)
|
|
|
+ insert into order_public_release_log(order_no, process_status, remarks, auditor, auditor_name, create_time)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.orderNo}, #{entity.processStatus}, #{entity.remarks}, #{entity.auditor}, #{entity.createTime})
|
|
|
+ (#{entity.orderNo}, #{entity.processStatus}, #{entity.remarks}, #{entity.auditor}, #{entity.auditorName},
|
|
|
+ #{entity.createTime})
|
|
|
</foreach>
|
|
|
on duplicate key update
|
|
|
order_no = values(order_no),
|
|
|
process_status = values(process_status),
|
|
|
remarks = values(remarks),
|
|
|
auditor = values(auditor),
|
|
|
+ auditor_name = values(auditor_name),
|
|
|
create_time = values(create_time)
|
|
|
</insert>
|
|
|
|
|
|
@@ -111,7 +121,7 @@
|
|
|
<update id="update">
|
|
|
update order_public_release_log
|
|
|
<set>
|
|
|
- <if test="orderNo != null">
|
|
|
+ <if test="orderNo != null and orderNo != ''">
|
|
|
order_no = #{orderNo},
|
|
|
</if>
|
|
|
<if test="processStatus != null">
|
|
|
@@ -123,6 +133,9 @@
|
|
|
<if test="auditor != null and auditor != ''">
|
|
|
auditor = #{auditor},
|
|
|
</if>
|
|
|
+ <if test="auditorName != null and auditorName != ''">
|
|
|
+ auditor_name = #{auditorName},
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
|
create_time = #{createTime},
|
|
|
</if>
|