id, json, probability, is_use, grade, create_time, admin_id SELECT LAST_INSERT_ID() insert into mora_award (json, probability, is_use, grade, create_time, admin_id ) values (#{json,jdbcType=VARCHAR}, #{probability,jdbcType=INTEGER}, #{isUse,jdbcType=INTEGER}, #{grade,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{adminId,jdbcType=INTEGER} ) SELECT LAST_INSERT_ID() insert into mora_award json, probability, is_use, grade, create_time, admin_id, #{json,jdbcType=VARCHAR}, #{probability,jdbcType=INTEGER}, #{isUse,jdbcType=INTEGER}, #{grade,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{adminId,jdbcType=INTEGER}, update mora_award json = #{json,jdbcType=VARCHAR}, probability = #{probability,jdbcType=INTEGER}, is_use = #{isUse,jdbcType=INTEGER}, grade = #{grade,jdbcType=INTEGER}, create_time = #{createTime,jdbcType=TIMESTAMP}, admin_id = #{adminId,jdbcType=INTEGER}, where id = #{id,jdbcType=INTEGER} update mora_award set json = #{json,jdbcType=VARCHAR}, probability = #{probability,jdbcType=INTEGER}, is_use = #{isUse,jdbcType=INTEGER}, grade = #{grade,jdbcType=INTEGER}, create_time = #{createTime,jdbcType=TIMESTAMP}, admin_id = #{adminId,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER} delete from mora_award where id = #{id,jdbcType=INTEGER} update mora_award set is_use = #{isUse} where probability = #{probability}