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`, holders, inventor, annual_fee_status,
salesman_remind, tid,
new_type, delaying_amount, recovery_amount, input_id, end_date
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`, holders,
inventor, annual_fee_status, salesman_remind,
tid, new_type, delaying_amount,
recovery_amount, input_id, end_date
)
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},
#{holders,jdbcType=VARCHAR},
#{inventor,jdbcType=VARCHAR}, #{annualFeeStatus,jdbcType=INTEGER},
#{salesmanRemind,jdbcType=INTEGER},
#{tid,jdbcType=INTEGER}, #{newType,jdbcType=INTEGER}, #{delayingAmount,jdbcType=DECIMAL},
#{recoveryAmount,jdbcType=DECIMAL}, #{inputId,jdbcType=VARCHAR},
#{endDate,jdbcType=DATE}
)
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`,
holders,
inventor,
annual_fee_status,
salesman_remind,
tid,
new_type,
delaying_amount,
recovery_amount,
input_id,
end_date,
#{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},
#{holders,jdbcType=VARCHAR},
#{inventor,jdbcType=VARCHAR},
#{annualFeeStatus,jdbcType=INTEGER},
#{salesmanRemind,jdbcType=INTEGER},
#{tid,jdbcType=INTEGER},
#{newType,jdbcType=INTEGER},
#{delayingAmount,jdbcType=DECIMAL},
#{recoveryAmount,jdbcType=DECIMAL},
#{inputId,jdbcType=VARCHAR},
#{endDate,jdbcType=DATE},
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},
holders = #{holders,jdbcType=VARCHAR},
inventor = #{inventor,jdbcType=VARCHAR},
annual_fee_status = #{annualFeeStatus,jdbcType=INTEGER},
salesman_remind = #{salesmanRemind,jdbcType=INTEGER},
tid = #{tid,jdbcType=INTEGER},
new_type = #{newType,jdbcType=INTEGER},
delaying_amount = #{delayingAmount,jdbcType=DECIMAL},
recovery_amount = #{recoveryAmount,jdbcType=DECIMAL},
input_id = #{inputId,jdbcType=VARCHAR},
end_date = #{endDate,jdbcType=DATE},
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},
holders = #{holders,jdbcType=VARCHAR},
inventor = #{inventor,jdbcType=VARCHAR},
annual_fee_status = #{annualFeeStatus,jdbcType=INTEGER},
salesman_remind = #{salesmanRemind,jdbcType=INTEGER},
tid = #{tid,jdbcType=INTEGER},
new_type = #{newType,jdbcType=INTEGER},
delaying_amount = #{delayingAmount,jdbcType=DECIMAL},
recovery_amount = #{recoveryAmount,jdbcType=DECIMAL},
input_id = #{inputId,jdbcType=VARCHAR},
end_date = #{endDate,jdbcType=DATE}
where id = #{id,jdbcType=INTEGER}
update patent_new set aid= #{transferId}
where aid= #{aid}
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`, holders,
inventor, end_date,
tid, new_type,
input_id)
values
(#{item.id,jdbcType=INTEGER}, #{item.patentNo,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR},
#{item.type,jdbcType=INTEGER}, #{item.status,jdbcType=INTEGER},
#{item.applyDate,jdbcType=DATE},
#{item.authorizationDate,jdbcType=DATE},
#{item.patentAmount,jdbcType=DECIMAL},
#{item.applicant,jdbcType=VARCHAR},
#{item.province,jdbcType=INTEGER},
#{item.contactMobile,jdbcType=VARCHAR},
#{item.email,jdbcType=VARCHAR},
#{item.certificateUrl,jdbcType=VARCHAR},
#{item.createTime,jdbcType=TIMESTAMP},
#{item.updateTime,jdbcType=TIMESTAMP},
#{item.aid,jdbcType=VARCHAR}, #{item.years,jdbcType=INTEGER}, #{item.uid,jdbcType=VARCHAR},
#{item.holders,jdbcType=VARCHAR},
#{item.inventor,jdbcType=VARCHAR}, #{item.endDate,jdbcType=DATE},
#{item.tid,jdbcType=INTEGER}, #{item.newType,jdbcType=INTEGER},
#{item.inputId,jdbcType=VARCHAR})
update patent_new
set salesman_remind=1
where id in
#{item}
update patent_new
status= #{status},
aid= #{aid},
where id in
#{item}