id, card_no, pl_no, card_type, grant_amount, already_g_amount, grant_count, uesed_count, data_state, create_empid, create_name, create_date, modify_empid, modify_name, modify_date delete from t_activity_park_salse_rel where id = #{id,jdbcType=BIGINT} SELECT LAST_INSERT_ID() insert into t_activity_park_salse_rel (card_no, pl_no, card_type, grant_amount, already_g_amount, grant_count, uesed_count, data_state, create_empid, create_name, create_date, modify_empid, modify_name, modify_date) values (#{cardNo,jdbcType=VARCHAR}, #{plNo,jdbcType=VARCHAR}, #{cardType,jdbcType=INTEGER}, #{grantAmount,jdbcType=INTEGER}, #{alreadyGAmount,jdbcType=INTEGER}, #{grantCount,jdbcType=INTEGER}, #{uesedCount,jdbcType=INTEGER}, #{dataState,jdbcType=INTEGER}, #{createEmpid,jdbcType=VARCHAR}, #{createName,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, #{modifyEmpid,jdbcType=VARCHAR}, #{modifyName,jdbcType=VARCHAR}, #{modifyDate,jdbcType=TIMESTAMP}) SELECT LAST_INSERT_ID() insert into t_activity_park_salse_rel card_no, pl_no, card_type, grant_amount, already_g_amount, grant_count, uesed_count, data_state, create_empid, create_name, create_date, modify_empid, modify_name, modify_date, #{cardNo,jdbcType=VARCHAR}, #{plNo,jdbcType=VARCHAR}, #{cardType,jdbcType=INTEGER}, #{grantAmount,jdbcType=INTEGER}, #{alreadyGAmount,jdbcType=INTEGER}, #{grantCount,jdbcType=INTEGER}, #{uesedCount,jdbcType=INTEGER}, #{dataState,jdbcType=INTEGER}, #{createEmpid,jdbcType=VARCHAR}, #{createName,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, #{modifyEmpid,jdbcType=VARCHAR}, #{modifyName,jdbcType=VARCHAR}, #{modifyDate,jdbcType=TIMESTAMP}, update t_activity_park_salse_rel card_no = #{cardNo,jdbcType=VARCHAR}, pl_no = #{plNo,jdbcType=VARCHAR}, card_type = #{cardType,jdbcType=INTEGER}, grant_amount = #{grantAmount,jdbcType=INTEGER}, already_g_amount = #{alreadyGAmount,jdbcType=INTEGER}, grant_count = #{grantCount,jdbcType=INTEGER}, uesed_count = #{uesedCount,jdbcType=INTEGER}, data_state = #{dataState,jdbcType=INTEGER}, create_empid = #{createEmpid,jdbcType=VARCHAR}, create_name = #{createName,jdbcType=VARCHAR}, create_date = #{createDate,jdbcType=TIMESTAMP}, modify_empid = #{modifyEmpid,jdbcType=VARCHAR}, modify_name = #{modifyName,jdbcType=VARCHAR}, modify_date = #{modifyDate,jdbcType=TIMESTAMP}, where id = #{id,jdbcType=BIGINT} update t_activity_park_salse_rel set card_no = #{cardNo,jdbcType=VARCHAR}, pl_no = #{plNo,jdbcType=VARCHAR}, card_type = #{cardType,jdbcType=INTEGER}, grant_amount = #{grantAmount,jdbcType=INTEGER}, already_g_amount = #{alreadyGAmount,jdbcType=INTEGER}, grant_count = #{grantCount,jdbcType=INTEGER}, uesed_count = #{uesedCount,jdbcType=INTEGER}, data_state = #{dataState,jdbcType=INTEGER}, create_empid = #{createEmpid,jdbcType=VARCHAR}, create_name = #{createName,jdbcType=VARCHAR}, create_date = #{createDate,jdbcType=TIMESTAMP}, modify_empid = #{modifyEmpid,jdbcType=VARCHAR}, modify_name = #{modifyName,jdbcType=VARCHAR}, modify_date = #{modifyDate,jdbcType=TIMESTAMP} where id = #{id,jdbcType=BIGINT}