insert ignore into td_b_vip_card_contract
(contract_no, detail_id, order_id, pl_no, pl_name, car_number, cust_name, cust_phone,
cust_address, price, total_fee, eff_date, exp_date, detail_create_date, contract_year,
data_state, create_op, create_date)
values
(#{item.contractNo}, #{item.detailId}, #{item.orderId}, #{item.plNo}, #{item.plName},
#{item.carNumber}, #{item.custName}, #{item.custPhone}, #{item.custAddress},
#{item.price}, #{item.totalFee}, #{item.effDate}, #{item.expDate},
#{item.detailCreateDate}, #{item.contractYear}, 1, #{item.createOp}, now())
update td_b_vip_card_contract
set modify_date = now(),
file_name = case id
when #{item.id} then #{item.fileName}
end,
file_key = case id
when #{item.id} then #{item.fileKey}
end,
file_url = case id
when #{item.id} then #{item.fileUrl}
end,
file_size = case id
when #{item.id} then #{item.fileSize}
end,
modify_op = case id
when #{item.id} then #{item.opId}
end
where id in
#{item.id}