id, cust_id, cust_card_no, card_no, car_number, card_res, car_type, price, num, discount_amount, disc_no, disc_rule_no, total_amount, eff_date, exp_date, is_support_renew, remark, data_state, check_status, create_empid, create_name, create_date, modify_empid, modify_name, modify_date,parent_cust_card_no,update_num SELECT LAST_INSERT_ID() insert into t_vip_card_cust_info (cust_id, cust_card_no, card_no, car_number, card_res, car_type, price, num, discount_amount, disc_no,disc_rule_no, total_amount, eff_date, exp_date, is_support_renew,remark, data_state, check_status, create_empid, create_name, create_date) values (#{item.custId,jdbcType=VARCHAR}, #{item.custCardNo,jdbcType=VARCHAR}, #{item.cardNo,jdbcType=VARCHAR}, #{item.carNumber,jdbcType=VARCHAR}, #{item.cardRes,jdbcType=INTEGER}, #{item.carType,jdbcType=INTEGER}, #{item.price,jdbcType=BIGINT}, #{item.num,jdbcType=INTEGER}, #{item.discountAmount,jdbcType=BIGINT}, #{item.discNo,jdbcType=VARCHAR}, #{item.discRuleNo,jdbcType=VARCHAR}, #{item.totalAmount,jdbcType=BIGINT}, #{item.effDate,jdbcType=TIMESTAMP}, #{item.expDate,jdbcType=TIMESTAMP}, #{item.isSupportRenew,jdbcType=INTEGER},#{item.remark,jdbcType=VARCHAR}, #{item.dataState,jdbcType=INTEGER}, #{item.checkStatus,jdbcType=INTEGER}, #{item.createEmpid,jdbcType=BIGINT}, #{item.createName,jdbcType=VARCHAR}, #{item.createDate,jdbcType=TIMESTAMP}) update t_vip_card_cust_info cust_id = #{custId,jdbcType=VARCHAR}, card_no = #{cardNo,jdbcType=VARCHAR}, car_number = #{carNumber,jdbcType=VARCHAR}, card_res = #{cardRes,jdbcType=INTEGER}, car_type = #{carType,jdbcType=INTEGER}, price = #{price,jdbcType=BIGINT}, num = #{num,jdbcType=INTEGER}, discount_amount = #{discountAmount,jdbcType=BIGINT}, disc_no = #{discNo,jdbcType=VARCHAR}, disc_rule_no = #{discRuleNo,jdbcType=VARCHAR}, total_amount = #{totalAmount,jdbcType=BIGINT}, eff_date = #{effDate,jdbcType=TIMESTAMP}, exp_date = #{expDate,jdbcType=TIMESTAMP}, is_support_renew = #{isSupportRenew,jdbcType=INTEGER}, remark = #{remark,jdbcType=VARCHAR}, data_state = #{dataState,jdbcType=INTEGER}, check_status = #{checkStatus,jdbcType=INTEGER}, create_empid = #{createEmpid,jdbcType=BIGINT}, create_name = #{createName,jdbcType=VARCHAR}, create_date = #{createDate,jdbcType=TIMESTAMP}, modify_empid = #{modifyEmpid,jdbcType=BIGINT}, modify_name = #{modifyName,jdbcType=VARCHAR}, modify_date = #{modifyDate,jdbcType=TIMESTAMP}, update_num = #{updateNum,jdbcType=INTEGER}, where cust_card_no = #{custCardNo,jdbcType=VARCHAR} UPDATE t_vip_card_cust_info SET update_num = #{updateNum} WHERE data_state = 1