id, detail_order_id, order_id, vip_card_no, order_type, person_card_no, card_type, car_type, terminal_source, card_act_amount, order_dicount_fee, price, buy_num, use_type, pl_no, pl_name, person_cust_id, car_number, eff_date, exp_date, invoice_state, remark, data_state, create_emp_id, create_name, create_date, modify_emp_id, modify_name, modify_date SELECT LAST_INSERT_ID() insert into order_vipcard_detail (detail_order_id, order_id, vip_card_no, order_type, person_card_no, card_type, car_type, terminal_source, card_act_amount, order_dicount_fee, price, buy_num, use_type, pl_no, pl_name, person_cust_id, car_number, eff_date, exp_date, remark, data_state, create_emp_id, create_name, create_date, modify_emp_id, modify_name, modify_date ) values (#{item.detailOrderId,jdbcType=VARCHAR}, #{item.orderId,jdbcType=VARCHAR}, #{item.vipCardNo,jdbcType=VARCHAR}, #{item.orderType,jdbcType=INTEGER}, #{item.personCardNo,jdbcType=VARCHAR}, #{item.cardType,jdbcType=INTEGER}, #{item.carType,jdbcType=INTEGER}, #{item.terminalSource,jdbcType=INTEGER}, #{item.cardActAmount,jdbcType=BIGINT}, #{item.orderDicountFee,jdbcType=BIGINT}, #{item.price,jdbcType=BIGINT}, #{item.buyNum,jdbcType=INTEGER}, #{item.useType,jdbcType=INTEGER}, #{item.plNo,jdbcType=VARCHAR}, #{item.plName,jdbcType=VARCHAR}, #{item.personCustId,jdbcType=VARCHAR}, #{item.carNumber,jdbcType=VARCHAR}, #{item.effDate,jdbcType=TIMESTAMP}, #{item.expDate,jdbcType=TIMESTAMP}, #{item.remark,jdbcType=VARCHAR}, #{item.dataState,jdbcType=INTEGER}, #{item.createEmpId,jdbcType=VARCHAR}, #{item.createName,jdbcType=VARCHAR}, #{item.createDate,jdbcType=TIMESTAMP}, #{item.modifyEmpId,jdbcType=VARCHAR}, #{item.modifyName,jdbcType=VARCHAR}, #{item.modifyDate,jdbcType=TIMESTAMP} ) update order_vipcard_detail detail_order_id = #{detailOrderId,jdbcType=VARCHAR}, order_id = #{orderId,jdbcType=VARCHAR}, order_type = #{orderType,jdbcType=INTEGER}, vip_card_no = #{vipCardNo,jdbcType=VARCHAR}, card_type = #{cardType,jdbcType=INTEGER}, car_type = #{carType,jdbcType=INTEGER}, terminal_source = #{terminalSource,jdbcType=INTEGER}, card_act_amount = #{cardActAmount,jdbcType=BIGINT}, order_dicount_fee = #{orderDicountFee,jdbcType=BIGINT}, price = #{price,jdbcType=BIGINT}, buy_num = #{buyNum,jdbcType=INTEGER}, use_type = #{useType,jdbcType=INTEGER}, pl_no = #{plNo,jdbcType=VARCHAR}, pl_name = #{plName,jdbcType=VARCHAR}, person_cust_id = #{personCustId,jdbcType=VARCHAR}, car_number = #{carNumber,jdbcType=VARCHAR}, eff_date = #{effDate,jdbcType=TIMESTAMP}, exp_date = #{expDate,jdbcType=TIMESTAMP}, invoice_state = #{invoiceState,jdbcType=INTEGER}, remark = #{remark,jdbcType=VARCHAR}, data_state = #{dataState,jdbcType=INTEGER}, create_emp_id = #{createEmpId,jdbcType=VARCHAR}, create_name = #{createName,jdbcType=VARCHAR}, create_date = #{createDate,jdbcType=TIMESTAMP}, modify_emp_id = #{modifyEmpId,jdbcType=VARCHAR}, modify_name = #{modifyName,jdbcType=VARCHAR}, modify_date = #{modifyDate,jdbcType=TIMESTAMP}, where person_card_no = #{personCardNo,jdbcType=VARCHAR}