id, cust_id, cust_card_no, pl_no, car_number, data_state, create_empid, create_name,
create_date, modify_empid, modify_name, modify_date, push_state, card_buy_type,record_no
SELECT LAST_INSERT_ID()
insert into t_vip_card_park_cust_rel (cust_id, cust_card_no, pl_no,
car_number, data_state, create_empid,
create_name, create_date, modify_empid,
modify_name, modify_date, push_state,
card_buy_type)
values
(#{item.custId,jdbcType=VARCHAR}, #{item.custCardNo,jdbcType=VARCHAR}, #{item.plNo,jdbcType=VARCHAR},
#{item.carNumber,jdbcType=VARCHAR}, #{item.dataState,jdbcType=INTEGER}, #{item.createEmpid,jdbcType=BIGINT},
#{item.createName,jdbcType=VARCHAR}, #{item.createDate,jdbcType=TIMESTAMP}, #{item.modifyEmpid,jdbcType=BIGINT},
#{item.modifyName,jdbcType=VARCHAR}, #{item.modifyDate,jdbcType=TIMESTAMP},#{item.pushState,jdbcType=INTEGER},#{item.cardBuyType,jdbcType=INTEGER})
update t_vip_card_park_cust_rel
cust_id = #{custId,jdbcType=VARCHAR},
cust_card_no = #{custCardNo,jdbcType=VARCHAR},
pl_no = #{plNo,jdbcType=VARCHAR},
car_number = #{carNumber,jdbcType=VARCHAR},
data_state = #{dataState,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},
push_state = #{pushState,jdbcType=INTEGER},
card_buy_type = #{cardBuyType,jdbcType=INTEGER},
where cust_card_no = #{custCardNo,jdbcType=VARCHAR}