id, patent_no, `name`, `type`, `status`, apply_date, authorization_date, patent_amount,
applicant, province, contact_mobile, email, certificate_url, create_time, update_time,
aid, `years`, `uid`
delete from patent_new
where id = #{id,jdbcType=INTEGER}
insert into patent_new (id, patent_no, `name`,
`type`, `status`, apply_date,
authorization_date, patent_amount, applicant,
province, contact_mobile, email,
certificate_url, create_time, update_time,
aid, `years`, `uid`)
values (#{id,jdbcType=INTEGER}, #{patentNo,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{type,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{applyDate,jdbcType=DATE},
#{authorizationDate,jdbcType=DATE}, #{patentAmount,jdbcType=DECIMAL}, #{applicant,jdbcType=VARCHAR},
#{province,jdbcType=INTEGER}, #{contactMobile,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR},
#{certificateUrl,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{aid,jdbcType=VARCHAR}, #{years,jdbcType=INTEGER}, #{uid,jdbcType=VARCHAR})
insert into patent_new
id,
patent_no,
`name`,
`type`,
`status`,
apply_date,
authorization_date,
patent_amount,
applicant,
province,
contact_mobile,
email,
certificate_url,
create_time,
update_time,
aid,
`years`,
`uid`,
#{id,jdbcType=INTEGER},
#{patentNo,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR},
#{type,jdbcType=INTEGER},
#{status,jdbcType=INTEGER},
#{applyDate,jdbcType=DATE},
#{authorizationDate,jdbcType=DATE},
#{patentAmount,jdbcType=DECIMAL},
#{applicant,jdbcType=VARCHAR},
#{province,jdbcType=INTEGER},
#{contactMobile,jdbcType=VARCHAR},
#{email,jdbcType=VARCHAR},
#{certificateUrl,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
#{aid,jdbcType=VARCHAR},
#{years,jdbcType=INTEGER},
#{uid,jdbcType=VARCHAR},
update patent_new
patent_no = #{patentNo,jdbcType=VARCHAR},
`name` = #{name,jdbcType=VARCHAR},
`type` = #{type,jdbcType=INTEGER},
`status` = #{status,jdbcType=INTEGER},
apply_date = #{applyDate,jdbcType=DATE},
authorization_date = #{authorizationDate,jdbcType=DATE},
patent_amount = #{patentAmount,jdbcType=DECIMAL},
applicant = #{applicant,jdbcType=VARCHAR},
province = #{province,jdbcType=INTEGER},
contact_mobile = #{contactMobile,jdbcType=VARCHAR},
email = #{email,jdbcType=VARCHAR},
certificate_url = #{certificateUrl,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
aid = #{aid,jdbcType=VARCHAR},
`years` = #{years,jdbcType=INTEGER},
`uid` = #{uid,jdbcType=VARCHAR},
where id = #{id,jdbcType=INTEGER}
update patent_new
set patent_no = #{patentNo,jdbcType=VARCHAR},
`name` = #{name,jdbcType=VARCHAR},
`type` = #{type,jdbcType=INTEGER},
`status` = #{status,jdbcType=INTEGER},
apply_date = #{applyDate,jdbcType=DATE},
authorization_date = #{authorizationDate,jdbcType=DATE},
patent_amount = #{patentAmount,jdbcType=DECIMAL},
applicant = #{applicant,jdbcType=VARCHAR},
province = #{province,jdbcType=INTEGER},
contact_mobile = #{contactMobile,jdbcType=VARCHAR},
email = #{email,jdbcType=VARCHAR},
certificate_url = #{certificateUrl,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
aid = #{aid,jdbcType=VARCHAR},
`years` = #{years,jdbcType=INTEGER},
`uid` = #{uid,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
update patent_new set aid= #{transferId}
where aid= #{aid}
insert into patent_new (patent_no, `name`,
`type`, `status`, apply_date,
authorization_date, patent_amount, applicant,
province, contact_mobile, email,
certificate_url, create_time, update_time,
aid, `years`, `uid`)values
( #{item.aid,jdbcType=VARCHAR}, #{item.noticeType,jdbcType=INTEGER},
#{item.content,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.readed,jdbcType=INTEGER},
#{item.uid,jdbcType=VARCHAR}, #{item.pid,jdbcType=VARCHAR}, #{item.rid,jdbcType=VARCHAR},
#{item.year,jdbcType=INTEGER}
)