|
|
@@ -10,6 +10,7 @@
|
|
|
<result column="patent_catagory" property="patentCatagory" jdbcType="INTEGER" />
|
|
|
<result column="patent_state" property="patentState" jdbcType="INTEGER" />
|
|
|
<result column="patent_field" property="patentField" jdbcType="INTEGER" />
|
|
|
+ <result column="patent_des" property="patentDes" jdbcType="VARCHAR" />
|
|
|
<result column="patent_prory_statement_url" property="patentProryStatementUrl" jdbcType="VARCHAR" />
|
|
|
<result column="patent_writing_url" property="patentWritingUrl" jdbcType="VARCHAR" />
|
|
|
<result column="authorization_notice_url" property="authorizationNoticeUrl" jdbcType="VARCHAR" />
|
|
|
@@ -27,20 +28,19 @@
|
|
|
<result column="third_inventor_is_publish" property="thirdInventorIsPublish" jdbcType="INTEGER" />
|
|
|
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
|
|
<result column="author" property="author" jdbcType="VARCHAR" />
|
|
|
+ <result column="authorized_date" property="authorizedDate" jdbcType="TIMESTAMP" />
|
|
|
<result column="office" property="office" jdbcType="VARCHAR" />
|
|
|
<result column="principal" property="principal" jdbcType="VARCHAR" />
|
|
|
- <result column="authorized_date" property="authorizedDate" jdbcType="TIMESTAMP"/>
|
|
|
- <result column="patent_des" property="patentDes" jdbcType="LONGVARCHAR" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, uid, serial_number, patent_number, patent_name, patent_catagory, patent_state,
|
|
|
- patent_field, patent_prory_statement_url, patent_writing_url, authorization_notice_url,
|
|
|
+ patent_field, patent_des, patent_prory_statement_url, patent_writing_url, authorization_notice_url,
|
|
|
patent_certificate_url, patent_application_date, first_inventor_name, first_inventor_nationality,
|
|
|
first_inventor_id_number, first_inventor_is_publish, second_inventor_name, second_inventor_nationality,
|
|
|
second_inventor_is_publish, third_inventor_name, third_inventor_nationality, third_inventor_is_publish,
|
|
|
- create_time, author, office, principal, authorized_date , patent_des
|
|
|
+ create_time, author, authorized_date,office, principal
|
|
|
</sql>
|
|
|
- <select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.String" >
|
|
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from patent_info
|
|
|
@@ -53,28 +53,30 @@
|
|
|
<insert id="insert" parameterType="com.goafanti.common.model.PatentInfo" >
|
|
|
insert into patent_info (id, uid, serial_number,
|
|
|
patent_number, patent_name, patent_catagory,
|
|
|
- patent_state, patent_field, patent_prory_statement_url,
|
|
|
- patent_writing_url, authorization_notice_url,
|
|
|
- patent_certificate_url, patent_application_date,
|
|
|
- first_inventor_name, first_inventor_nationality,
|
|
|
- first_inventor_id_number, first_inventor_is_publish,
|
|
|
- second_inventor_name, second_inventor_nationality,
|
|
|
- second_inventor_is_publish, third_inventor_name,
|
|
|
- third_inventor_nationality, third_inventor_is_publish,
|
|
|
- create_time, author, office,
|
|
|
- principal, authorized_date,patent_des)
|
|
|
+ patent_state, patent_field, patent_des,
|
|
|
+ patent_prory_statement_url, patent_writing_url,
|
|
|
+ authorization_notice_url, patent_certificate_url,
|
|
|
+ patent_application_date, first_inventor_name,
|
|
|
+ first_inventor_nationality, first_inventor_id_number,
|
|
|
+ first_inventor_is_publish, second_inventor_name,
|
|
|
+ second_inventor_nationality, second_inventor_is_publish,
|
|
|
+ third_inventor_name, third_inventor_nationality,
|
|
|
+ third_inventor_is_publish, create_time, author, authorized_date,
|
|
|
+ office, principal)
|
|
|
+
|
|
|
values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{serialNumber,jdbcType=VARCHAR},
|
|
|
#{patentNumber,jdbcType=VARCHAR}, #{patentName,jdbcType=VARCHAR}, #{patentCatagory,jdbcType=INTEGER},
|
|
|
- #{patentState,jdbcType=INTEGER}, #{patentField,jdbcType=INTEGER}, #{patentProryStatementUrl,jdbcType=VARCHAR},
|
|
|
- #{patentWritingUrl,jdbcType=VARCHAR}, #{authorizationNoticeUrl,jdbcType=VARCHAR},
|
|
|
- #{patentCertificateUrl,jdbcType=VARCHAR}, #{patentApplicationDate,jdbcType=TIMESTAMP},
|
|
|
- #{firstInventorName,jdbcType=VARCHAR}, #{firstInventorNationality,jdbcType=VARCHAR},
|
|
|
- #{firstInventorIdNumber,jdbcType=VARCHAR}, #{firstInventorIsPublish,jdbcType=INTEGER},
|
|
|
- #{secondInventorName,jdbcType=VARCHAR}, #{secondInventorNationality,jdbcType=VARCHAR},
|
|
|
- #{secondInventorIsPublish,jdbcType=INTEGER}, #{thirdInventorName,jdbcType=VARCHAR},
|
|
|
- #{thirdInventorNationality,jdbcType=VARCHAR}, #{thirdInventorIsPublish,jdbcType=INTEGER},
|
|
|
- #{createTime,jdbcType=TIMESTAMP}, #{author,jdbcType=VARCHAR}, #{office,jdbcType=VARCHAR},
|
|
|
- #{principal,jdbcType=VARCHAR}, #{authorizedDate,jdbcType=TIMESTAMP},#{patentDes,jdbcType=LONGVARCHAR})
|
|
|
+ #{patentState,jdbcType=INTEGER}, #{patentField,jdbcType=INTEGER}, #{patentDes,jdbcType=VARCHAR},
|
|
|
+ #{patentProryStatementUrl,jdbcType=VARCHAR}, #{patentWritingUrl,jdbcType=VARCHAR},
|
|
|
+ #{authorizationNoticeUrl,jdbcType=VARCHAR}, #{patentCertificateUrl,jdbcType=VARCHAR},
|
|
|
+ #{patentApplicationDate,jdbcType=TIMESTAMP}, #{firstInventorName,jdbcType=VARCHAR},
|
|
|
+ #{firstInventorNationality,jdbcType=VARCHAR}, #{firstInventorIdNumber,jdbcType=VARCHAR},
|
|
|
+ #{firstInventorIsPublish,jdbcType=INTEGER}, #{secondInventorName,jdbcType=VARCHAR},
|
|
|
+ #{secondInventorNationality,jdbcType=VARCHAR}, #{secondInventorIsPublish,jdbcType=INTEGER},
|
|
|
+ #{thirdInventorName,jdbcType=VARCHAR}, #{thirdInventorNationality,jdbcType=VARCHAR},
|
|
|
+ #{thirdInventorIsPublish,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{author,jdbcType=VARCHAR},
|
|
|
+ #{authorizedDate,jdbcType=TIMESTAMP},
|
|
|
+ #{office,jdbcType=VARCHAR}, #{principal,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.PatentInfo" >
|
|
|
insert into patent_info
|
|
|
@@ -103,6 +105,9 @@
|
|
|
<if test="patentField != null" >
|
|
|
patent_field,
|
|
|
</if>
|
|
|
+ <if test="patentDes != null" >
|
|
|
+ patent_des,
|
|
|
+ </if>
|
|
|
<if test="patentProryStatementUrl != null" >
|
|
|
patent_prory_statement_url,
|
|
|
</if>
|
|
|
@@ -154,18 +159,15 @@
|
|
|
<if test="author != null" >
|
|
|
author,
|
|
|
</if>
|
|
|
+ <if test="authorizedDate != null" >
|
|
|
+ authorized_date,
|
|
|
+ </if>
|
|
|
<if test="office != null" >
|
|
|
office,
|
|
|
</if>
|
|
|
<if test="principal != null" >
|
|
|
principal,
|
|
|
</if>
|
|
|
- <if test="authorizedDate != null" >
|
|
|
- authorized_date,
|
|
|
- </if>
|
|
|
- <if test="patentDes != null" >
|
|
|
- patent_des,
|
|
|
- </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
@@ -192,6 +194,9 @@
|
|
|
<if test="patentField != null" >
|
|
|
#{patentField,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="patentDes != null" >
|
|
|
+ #{patentDes,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="patentProryStatementUrl != null" >
|
|
|
#{patentProryStatementUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -243,18 +248,15 @@
|
|
|
<if test="author != null" >
|
|
|
#{author,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="authorizedDate != null" >
|
|
|
+ #{authorizedDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
<if test="office != null" >
|
|
|
#{office,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="principal != null" >
|
|
|
#{principal,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="authorizedDate != null" >
|
|
|
- #{authorizedDate,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="patentDes != null" >
|
|
|
- #{patentDes,jdbcType=LONGVARCHAR},
|
|
|
- </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.PatentInfo" >
|
|
|
@@ -281,6 +283,9 @@
|
|
|
<if test="patentField != null" >
|
|
|
patent_field = #{patentField,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="patentDes != null" >
|
|
|
+ patent_des = #{patentDes,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="patentProryStatementUrl != null" >
|
|
|
patent_prory_statement_url = #{patentProryStatementUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -332,18 +337,15 @@
|
|
|
<if test="author != null" >
|
|
|
author = #{author,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="authorizedDate != null" >
|
|
|
+ authorized_date = #{authorizedDate,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="office != null" >
|
|
|
office = #{office,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="principal != null" >
|
|
|
principal = #{principal,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="authorizedDate != null" >
|
|
|
- authorized_date = #{authorizedDate,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="patentDes != null" >
|
|
|
- patent_des = #{patentDes,jdbcType=LONGVARCHAR},
|
|
|
- </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -356,6 +358,7 @@
|
|
|
patent_catagory = #{patentCatagory,jdbcType=INTEGER},
|
|
|
patent_state = #{patentState,jdbcType=INTEGER},
|
|
|
patent_field = #{patentField,jdbcType=INTEGER},
|
|
|
+ patent_des = #{patentDes,jdbcType=VARCHAR},
|
|
|
patent_prory_statement_url = #{patentProryStatementUrl,jdbcType=VARCHAR},
|
|
|
patent_writing_url = #{patentWritingUrl,jdbcType=VARCHAR},
|
|
|
authorization_notice_url = #{authorizationNoticeUrl,jdbcType=VARCHAR},
|
|
|
@@ -373,15 +376,13 @@
|
|
|
third_inventor_is_publish = #{thirdInventorIsPublish,jdbcType=INTEGER},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
author = #{author,jdbcType=VARCHAR},
|
|
|
+ authorized_date = #{authorizedDate,jdbcType=VARCHAR},
|
|
|
office = #{office,jdbcType=VARCHAR},
|
|
|
- principal = #{principal,jdbcType=VARCHAR},
|
|
|
- authorized_date = #{authorizedDate,jdbcType=TIMESTAMP},
|
|
|
- patent_des = #{patentDes,jdbcType=LONGVARCHAR}
|
|
|
+ principal = #{principal,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
|
|
-
|
|
|
- <select id="selectPatentInfoByUserId" parameterType="java.lang.String" resultType="BaseResultMap">
|
|
|
+ <select id="selectPatentInfoByUserId" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from patent_info
|