|
|
@@ -54,8 +54,6 @@
|
|
|
<result property="examineName" column="examine_name" jdbcType="VARCHAR"/>
|
|
|
<result property="tag" column="tag" jdbcType="INTEGER"/>
|
|
|
<result property="patentStatus" column="patent_status" jdbcType="INTEGER"/>
|
|
|
- <result property="approvalType" column="approval_type" jdbcType="VARCHAR"/>
|
|
|
- <result property="approvalTypeExplain" column="approval_type_explain" jdbcType="VARCHAR"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
@@ -75,17 +73,17 @@
|
|
|
agreement_url,new_user,service_content,
|
|
|
sales_type,channel_id,other,
|
|
|
user_type,examine_name,tag,
|
|
|
- patent_status,approval_type,approval_type_explain
|
|
|
+ patent_status
|
|
|
</sql>
|
|
|
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from t_order_new
|
|
|
where order_no = #{orderNo,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
delete from t_order_new
|
|
|
where order_no = #{orderNo,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
@@ -107,8 +105,7 @@
|
|
|
,agreement_url,new_user,service_content
|
|
|
,sales_type,channel_id,other
|
|
|
,user_type,examine_name,tag
|
|
|
- ,patent_status,approval_type,approval_type_explain
|
|
|
- )
|
|
|
+ ,patent_status)
|
|
|
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}
|
|
|
@@ -125,8 +122,7 @@
|
|
|
,#{agreementUrl,jdbcType=VARCHAR},#{newUser,jdbcType=INTEGER},#{serviceContent,jdbcType=VARCHAR}
|
|
|
,#{salesType,jdbcType=INTEGER},#{channelId,jdbcType=VARCHAR},#{other,jdbcType=VARCHAR}
|
|
|
,#{userType,jdbcType=INTEGER},#{examineName,jdbcType=VARCHAR},#{tag,jdbcType=INTEGER}
|
|
|
- ,#{patentStatus,jdbcType=INTEGER},#{approvalType,jdbcType=VARCHAR},#{approvalTypeExplain,jdbcType=VARCHAR}
|
|
|
- )
|
|
|
+ ,#{patentStatus,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="order_no" keyProperty="orderNo" parameterType="com.goafanti.common.model.TOrderNew" useGeneratedKeys="true">
|
|
|
insert into t_order_new
|
|
|
@@ -180,8 +176,6 @@
|
|
|
<if test="examineName != null">examine_name,</if>
|
|
|
<if test="tag != null">tag,</if>
|
|
|
<if test="patentStatus != null">patent_status,</if>
|
|
|
- <if test="approvalType != null">approval_type,</if>
|
|
|
- <if test="approvalTypeExplain != null">approval_type_explain,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="orderNo != null">#{orderNo,jdbcType=VARCHAR},</if>
|
|
|
@@ -233,8 +227,6 @@
|
|
|
<if test="examineName != null">#{examineName,jdbcType=VARCHAR},</if>
|
|
|
<if test="tag != null">#{tag,jdbcType=INTEGER},</if>
|
|
|
<if test="patentStatus != null">#{patentStatus,jdbcType=INTEGER},</if>
|
|
|
- <if test="approvalType != null">#{approvalType,jdbcType=VARCHAR},</if>
|
|
|
- <if test="approvalTypeExplain != null">#{approvalTypeExplain,jdbcType=VARCHAR},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TOrderNew">
|
|
|
@@ -384,12 +376,6 @@
|
|
|
<if test="patentStatus != null">
|
|
|
patent_status = #{patentStatus,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="approvalType != null">
|
|
|
- approval_type = #{approvalType,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="approvalTypeExplain != null">
|
|
|
- approval_type_explain = #{approvalTypeExplain,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
</set>
|
|
|
where order_no = #{orderNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -443,9 +429,7 @@
|
|
|
user_type = #{userType,jdbcType=INTEGER},
|
|
|
examine_name = #{examineName,jdbcType=VARCHAR},
|
|
|
tag = #{tag,jdbcType=INTEGER},
|
|
|
- patent_status = #{patentStatus,jdbcType=INTEGER},
|
|
|
- approval_type = #{approvalType,jdbcType=VARCHAR},
|
|
|
- approval_type_explain = #{approvalTypeExplain,jdbcType=VARCHAR}
|
|
|
+ patent_status = #{patentStatus,jdbcType=INTEGER}
|
|
|
where order_no = #{orderNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|