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 delete from patent_info where id = #{id,jdbcType=VARCHAR} 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 (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER}, #{patentNumber,jdbcType=VARCHAR}, #{patentName,jdbcType=VARCHAR}, #{patentCatagory,jdbcType=INTEGER}, #{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}, #{confirmState,jdbcType=INTEGER}, #{recordTime,jdbcType=TIMESTAMP}, #{deletedSign,jdbcType=INTEGER}, #{contacts,jdbcType=INTEGER}, #{founder,jdbcType=VARCHAR}, #{contractId,jdbcType=VARCHAR}) 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, #{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER}, #{patentNumber,jdbcType=VARCHAR}, #{patentName,jdbcType=VARCHAR}, #{patentCatagory,jdbcType=INTEGER}, #{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}, #{confirmState,jdbcType=INTEGER}, #{recordTime,jdbcType=TIMESTAMP}, #{deletedSign,jdbcType=INTEGER}, #{contacts,jdbcType=INTEGER}, #{founder,jdbcType=VARCHAR}, #{contractId,jdbcType=VARCHAR}, update patent_info uid = #{uid,jdbcType=VARCHAR}, serial_number = #{serialNumber,jdbcType=INTEGER}, patent_number = #{patentNumber,jdbcType=VARCHAR}, patent_name = #{patentName,jdbcType=VARCHAR}, 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}, patent_certificate_url = #{patentCertificateUrl,jdbcType=VARCHAR}, patent_application_date = #{patentApplicationDate,jdbcType=TIMESTAMP}, first_inventor_name = #{firstInventorName,jdbcType=VARCHAR}, first_inventor_nationality = #{firstInventorNationality,jdbcType=VARCHAR}, first_inventor_id_number = #{firstInventorIdNumber,jdbcType=VARCHAR}, first_inventor_is_publish = #{firstInventorIsPublish,jdbcType=INTEGER}, second_inventor_name = #{secondInventorName,jdbcType=VARCHAR}, second_inventor_nationality = #{secondInventorNationality,jdbcType=VARCHAR}, second_inventor_is_publish = #{secondInventorIsPublish,jdbcType=INTEGER}, third_inventor_name = #{thirdInventorName,jdbcType=VARCHAR}, third_inventor_nationality = #{thirdInventorNationality,jdbcType=VARCHAR}, third_inventor_is_publish = #{thirdInventorIsPublish,jdbcType=INTEGER}, create_time = #{createTime,jdbcType=TIMESTAMP}, author = #{author,jdbcType=VARCHAR}, authorized_date = #{authorizedDate,jdbcType=TIMESTAMP}, office = #{office,jdbcType=VARCHAR}, principal = #{principal,jdbcType=VARCHAR}, confirm_state = #{confirmState,jdbcType=INTEGER}, record_time = #{recordTime,jdbcType=TIMESTAMP}, deleted_sign = #{deletedSign,jdbcType=INTEGER}, contacts = #{contacts,jdbcType=INTEGER}, founder = #{founder,jdbcType=VARCHAR}, contract_id = #{contractId,jdbcType=VARCHAR}, where id = #{id,jdbcType=VARCHAR} update patent_info set uid = #{uid,jdbcType=VARCHAR}, serial_number = #{serialNumber,jdbcType=INTEGER}, patent_number = #{patentNumber,jdbcType=VARCHAR}, patent_name = #{patentName,jdbcType=VARCHAR}, 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}, patent_certificate_url = #{patentCertificateUrl,jdbcType=VARCHAR}, patent_application_date = #{patentApplicationDate,jdbcType=TIMESTAMP}, first_inventor_name = #{firstInventorName,jdbcType=VARCHAR}, first_inventor_nationality = #{firstInventorNationality,jdbcType=VARCHAR}, first_inventor_id_number = #{firstInventorIdNumber,jdbcType=VARCHAR}, first_inventor_is_publish = #{firstInventorIsPublish,jdbcType=INTEGER}, second_inventor_name = #{secondInventorName,jdbcType=VARCHAR}, second_inventor_nationality = #{secondInventorNationality,jdbcType=VARCHAR}, second_inventor_is_publish = #{secondInventorIsPublish,jdbcType=INTEGER}, third_inventor_name = #{thirdInventorName,jdbcType=VARCHAR}, third_inventor_nationality = #{thirdInventorNationality,jdbcType=VARCHAR}, third_inventor_is_publish = #{thirdInventorIsPublish,jdbcType=INTEGER}, create_time = #{createTime,jdbcType=TIMESTAMP}, author = #{author,jdbcType=VARCHAR}, authorized_date = #{authorizedDate,jdbcType=TIMESTAMP}, office = #{office,jdbcType=VARCHAR}, principal = #{principal,jdbcType=VARCHAR}, confirm_state = #{confirmState,jdbcType=INTEGER}, record_time = #{recordTime,jdbcType=TIMESTAMP}, deleted_sign = #{deletedSign,jdbcType=INTEGER}, contacts = #{contacts,jdbcType=INTEGER}, founder = #{founder,jdbcType=VARCHAR}, contract_id = #{contractId,jdbcType=VARCHAR} where id = #{id,jdbcType=VARCHAR} update patent_info set deleted_sign = 1 where id in #{item} 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 ( #{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} ) update patent_info set deleted_sign = 1 where contract_id in #{item}