|
|
@@ -20,7 +20,7 @@
|
|
|
<result property="auditTime" column="audit_time"/>
|
|
|
<result property="auditor" column="auditor"/>
|
|
|
<result property="finishTime" column="finish_time"/>
|
|
|
- <result property="delFlag" column="del_flag"/>
|
|
|
+ <result property="dealerReason" column="dealer_reason"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
@@ -38,7 +38,8 @@
|
|
|
create_time,
|
|
|
audit_time,
|
|
|
auditor,
|
|
|
- finish_time </sql>
|
|
|
+ finish_time,
|
|
|
+ dealer_reason </sql>
|
|
|
<!-- 根据Id查询-->
|
|
|
<select id="selectByPrimaryKey" resultMap="entityMap" parameterType="java.lang.Integer">
|
|
|
select
|
|
|
@@ -73,7 +74,7 @@
|
|
|
<if test="auditTime != null">audit_time,</if>
|
|
|
<if test="auditor != null">auditor,</if>
|
|
|
<if test="finishTime != null">finish_time,</if>
|
|
|
- <if test="delFlag != null">del_flag,</if>
|
|
|
+ <if test="dealerReason != null">dealer_reason,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
|
@@ -91,7 +92,7 @@
|
|
|
<if test="auditTime != null">#{auditTime},</if>
|
|
|
<if test="auditor != null">#{auditor},</if>
|
|
|
<if test="finishTime != null">#{finishTime},</if>
|
|
|
- <if test="delFlag != null">#{delFlag},</if>
|
|
|
+ <if test="dealerReason != null">#{dealerReason},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -114,7 +115,7 @@
|
|
|
<if test="auditTime != null">audit_time = #{auditTime},</if>
|
|
|
<if test="auditor != null">auditor = #{auditor},</if>
|
|
|
<if test="finishTime != null">finish_time = #{finishTime},</if>
|
|
|
- <if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
+ <if test="dealerReason != null">dealer_reason = #{dealerReason},</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -171,8 +172,8 @@
|
|
|
<if test="record.finishTime != null and !"".equals(record.finishTime)">
|
|
|
and finish_time = #{record.finishTime}
|
|
|
</if>
|
|
|
- <if test="record.delFlag != null and !"".equals(record.delFlag)">
|
|
|
- and del_flag = #{record.delFlag}
|
|
|
+ <if test="record.dealerReason != null and !"".equals(record.dealerReason)">
|
|
|
+ and dealer_reason = #{record.dealerReason}
|
|
|
</if>
|
|
|
</where>
|
|
|
order by id desc
|
|
|
@@ -185,7 +186,7 @@
|
|
|
<include refid="Base_Column_List"/>
|
|
|
from ls_car_back_order
|
|
|
<where>
|
|
|
- and del_flag = 'N'
|
|
|
+
|
|
|
<if test="id != null and !"".equals(id)">
|
|
|
and id = #{id}
|
|
|
</if>
|
|
|
@@ -231,8 +232,8 @@
|
|
|
<if test="finishTime != null and !"".equals(finishTime)">
|
|
|
and finish_time = #{finishTime}
|
|
|
</if>
|
|
|
- <if test="delFlag != null and !"".equals(delFlag)">
|
|
|
- and del_flag = #{delFlag}
|
|
|
+ <if test="dealerReason != null and !"".equals(dealerReason)">
|
|
|
+ and dealer_reason = #{dealerReason}
|
|
|
</if>
|
|
|
</where>
|
|
|
order by id desc
|
|
|
@@ -245,7 +246,7 @@
|
|
|
<include refid="Base_Column_List"/>
|
|
|
from ls_car_back_order
|
|
|
<where>
|
|
|
- and del_flag = 'N'
|
|
|
+
|
|
|
<if test="id != null and !"".equals(id)">
|
|
|
and id = #{id}
|
|
|
</if>
|
|
|
@@ -291,8 +292,8 @@
|
|
|
<if test="finishTime != null and !"".equals(finishTime)">
|
|
|
and finish_time = #{finishTime}
|
|
|
</if>
|
|
|
- <if test="delFlag != null and !"".equals(delFlag)">
|
|
|
- and del_flag = #{delFlag}
|
|
|
+ <if test="dealerReason != null and !"".equals(dealerReason)">
|
|
|
+ and dealer_reason = #{dealerReason}
|
|
|
</if>
|
|
|
</where>
|
|
|
LIMIT 1
|