|
|
@@ -1002,5 +1002,62 @@
|
|
|
left join admin a on a.id = pi.principal
|
|
|
where contract_id = #{contractId,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
+
|
|
|
+ <insert id="batchInsert" 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_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, confirm_state, record_time, deleted_sign, contacts, founder,
|
|
|
+ contract_id)
|
|
|
+ values
|
|
|
+ <foreach item="item" index="index" collection="list" separator=",">
|
|
|
+ (
|
|
|
+ #{item.id,jdbcType=VARCHAR}, #{item.uid,jdbcType=VARCHAR},
|
|
|
+ #{item.serialNumber,jdbcType=INTEGER},
|
|
|
+ #{item.patentNumber,jdbcType=VARCHAR},
|
|
|
+ #{item.patentName,jdbcType=VARCHAR},
|
|
|
+ #{item.patentCatagory,jdbcType=INTEGER},
|
|
|
+ #{item.patentState,jdbcType=INTEGER},
|
|
|
+ #{item.patentField,jdbcType=INTEGER},
|
|
|
+ #{item.patentDes,jdbcType=VARCHAR},
|
|
|
+ #{item.patentProryStatementUrl,jdbcType=VARCHAR},
|
|
|
+ #{item.patentWritingUrl,jdbcType=VARCHAR},
|
|
|
+ #{item.authorizationNoticeUrl,jdbcType=VARCHAR},
|
|
|
+ #{item.patentCertificateUrl,jdbcType=VARCHAR},
|
|
|
+ #{item.patentApplicationDate,jdbcType=TIMESTAMP},
|
|
|
+ #{item.firstInventorName,jdbcType=VARCHAR},
|
|
|
+ #{item.firstInventorNationality,jdbcType=VARCHAR},
|
|
|
+ #{item.firstInventorIdNumber,jdbcType=VARCHAR},
|
|
|
+ #{item.firstInventorIsPublish,jdbcType=INTEGER},
|
|
|
+ #{item.secondInventorName,jdbcType=VARCHAR},
|
|
|
+ #{item.secondInventorNationality,jdbcType=VARCHAR},
|
|
|
+ #{item.secondInventorIsPublish,jdbcType=INTEGER},
|
|
|
+ #{item.thirdInventorName,jdbcType=VARCHAR},
|
|
|
+ #{item.thirdInventorNationality,jdbcType=VARCHAR},
|
|
|
+ #{item.thirdInventorIsPublish,jdbcType=INTEGER},
|
|
|
+ #{item.createTime,jdbcType=TIMESTAMP},
|
|
|
+ #{item.author,jdbcType=VARCHAR},
|
|
|
+ #{item.authorizedDate,jdbcType=TIMESTAMP},
|
|
|
+ #{item.office,jdbcType=VARCHAR},
|
|
|
+ #{item.principal,jdbcType=VARCHAR},
|
|
|
+ #{item.confirmState,jdbcType=INTEGER},
|
|
|
+ #{item.recordTime,jdbcType=TIMESTAMP},
|
|
|
+ #{item.deletedSign,jdbcType=INTEGER},
|
|
|
+ #{item.contacts,jdbcType=INTEGER},
|
|
|
+ #{item.founder,jdbcType=VARCHAR},
|
|
|
+ #{item.contractId,jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
+ </foreach>
|
|
|
+ </insert>
|
|
|
|
|
|
</mapper>
|