insert into purchase_apply_item(id, apply_order_id, is_sign_report, sign_report_date,
item_no, type, purchase_name, model, unit)
values (#{id}, #{applyOrderId}, #{isSignReport}, #{signReportDate},
#{itemNo}, #{type}, #{purchaseName}, #{model}, #{unit})
update purchase_apply_item t set
t.apply_order_id= #{applyOrderId},
t.is_sign_report= #{isSignReport},
t.sign_report_date= #{signReportDate},
t.item_no= #{itemNo},
t.type= #{type},
t.purchase_name= #{purchaseName},
t.model= #{model},
t.unit= #{unit}
where 1=1
and t.id= #{id}
and t.apply_order_id= #{applyOrderId}