|
|
@@ -49,6 +49,7 @@
|
|
|
<result column="other" jdbcType="VARCHAR" property="other" />
|
|
|
<result column="user_type" jdbcType="INTEGER" property="userType" />
|
|
|
<result column="examine_name" jdbcType="VARCHAR" property="examineName" />
|
|
|
+ <result column="tag" jdbcType="INTEGER" property="tag" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
order_no, order_type, creater, create_time, update_time, buyer_id, first_amount,
|
|
|
@@ -58,7 +59,7 @@
|
|
|
contract_type, contacts, contact_mobile, legal_person, legal_person_tel, proof_count,
|
|
|
proof_aid, proof_time, proof_status, order_dep, outsource, additional_order, primary_order,
|
|
|
old_salesman_id, back_status, agreement_url, new_user, service_content, sales_type,
|
|
|
- channel_id, other, user_type, examine_name
|
|
|
+ channel_id, other, user_type, examine_name, tag
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -86,7 +87,8 @@
|
|
|
primary_order, old_salesman_id, back_status,
|
|
|
agreement_url, new_user, service_content,
|
|
|
sales_type, channel_id, other,
|
|
|
- user_type, examine_name)
|
|
|
+ user_type, examine_name, tag
|
|
|
+ )
|
|
|
values (#{orderNo,jdbcType=VARCHAR}, #{orderType,jdbcType=INTEGER}, #{creater,jdbcType=VARCHAR},
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{buyerId,jdbcType=VARCHAR},
|
|
|
#{firstAmount,jdbcType=DECIMAL}, #{totalAmount,jdbcType=DECIMAL}, #{settlementAmount,jdbcType=DECIMAL},
|
|
|
@@ -102,7 +104,8 @@
|
|
|
#{primaryOrder,jdbcType=VARCHAR}, #{oldSalesmanId,jdbcType=VARCHAR}, #{backStatus,jdbcType=INTEGER},
|
|
|
#{agreementUrl,jdbcType=VARCHAR}, #{newUser,jdbcType=INTEGER}, #{serviceContent,jdbcType=VARCHAR},
|
|
|
#{salesType,jdbcType=INTEGER}, #{channelId,jdbcType=VARCHAR}, #{other,jdbcType=VARCHAR},
|
|
|
- #{userType,jdbcType=INTEGER}, #{examineName,jdbcType=VARCHAR})
|
|
|
+ #{userType,jdbcType=INTEGER}, #{examineName,jdbcType=VARCHAR}, #{tag,jdbcType=INTEGER}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.TOrderNew">
|
|
|
insert into t_order_new
|
|
|
@@ -248,6 +251,9 @@
|
|
|
<if test="examineName != null">
|
|
|
examine_name,
|
|
|
</if>
|
|
|
+ <if test="tag != null">
|
|
|
+ tag,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="orderNo != null">
|
|
|
@@ -391,6 +397,9 @@
|
|
|
<if test="examineName != null">
|
|
|
#{examineName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="tag != null">
|
|
|
+ #{tag,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TOrderNew">
|
|
|
@@ -534,6 +543,9 @@
|
|
|
<if test="examineName != null">
|
|
|
examine_name = #{examineName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="tag != null">
|
|
|
+ tag = #{tag,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where order_no = #{orderNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -584,7 +596,8 @@
|
|
|
channel_id = #{channelId,jdbcType=VARCHAR},
|
|
|
other = #{other,jdbcType=VARCHAR},
|
|
|
user_type = #{userType,jdbcType=INTEGER},
|
|
|
- examine_name = #{examineName,jdbcType=VARCHAR}
|
|
|
+ examine_name = #{examineName,jdbcType=VARCHAR},
|
|
|
+ tag = #{tag,jdbcType=INTEGER}
|
|
|
where order_no = #{orderNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|