id, uid, start, end, status, create_time, admin_id SELECT LAST_INSERT_ID() insert into mora_config (uid, start, end, status, create_time, admin_id ) values (#{uid,jdbcType=BIGINT}, #{start,jdbcType=VARCHAR}, #{end,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{adminId,jdbcType=INTEGER} ) SELECT LAST_INSERT_ID() insert into mora_config uid, start, end, status, create_time, admin_id, #{uid,jdbcType=BIGINT}, #{start,jdbcType=VARCHAR}, #{end,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{adminId,jdbcType=INTEGER}, update mora_config uid = #{uid,jdbcType=BIGINT}, start = #{start,jdbcType=VARCHAR}, end = #{end,jdbcType=VARCHAR}, status = #{status,jdbcType=INTEGER}, create_time = #{createTime,jdbcType=TIMESTAMP}, admin_id = #{adminId,jdbcType=INTEGER}, where id = #{id,jdbcType=INTEGER} update mora_config set uid = #{uid,jdbcType=BIGINT}, start = #{start,jdbcType=VARCHAR}, end = #{end,jdbcType=VARCHAR}, status = #{status,jdbcType=INTEGER}, create_time = #{createTime,jdbcType=TIMESTAMP}, admin_id = #{adminId,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER} delete from mora_config where id = #{id,jdbcType=INTEGER}