|
|
@ -40,12 +40,14 @@ public interface HighGoldRecMapper extends HighGoldRecMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into high_gold_rec (user_id, gold_type, ", |
|
|
|
"insert into high_gold_rec (user_id, gold_type, ", |
|
|
|
"gold, create_time, ", |
|
|
|
"gold, update_time, ", |
|
|
|
"res_type, res_id, remark, ", |
|
|
|
"create_time, res_type, ", |
|
|
|
|
|
|
|
"res_id, remark, `status`, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"values (#{userId,jdbcType=BIGINT}, #{goldType,jdbcType=BIGINT}, ", |
|
|
|
"values (#{userId,jdbcType=BIGINT}, #{goldType,jdbcType=BIGINT}, ", |
|
|
|
"#{gold,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{gold,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{resType,jdbcType=INTEGER}, #{resId,jdbcType=BIGINT}, #{remark,jdbcType=VARCHAR}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{resType,jdbcType=INTEGER}, ", |
|
|
|
|
|
|
|
"#{resId,jdbcType=BIGINT}, #{remark,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
@ -61,10 +63,12 @@ public interface HighGoldRecMapper extends HighGoldRecMapperExt { |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="gold_type", property="goldType", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="gold_type", property="goldType", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="gold", property="gold", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="gold", property="gold", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="res_type", property="resType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="res_type", property="resType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="res_id", property="resId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="res_id", property="resId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
|
|
@ -73,8 +77,8 @@ public interface HighGoldRecMapper extends HighGoldRecMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, user_id, gold_type, gold, create_time, res_type, res_id, remark, ext_1, ", |
|
|
|
"id, user_id, gold_type, gold, update_time, create_time, res_type, res_id, remark, ", |
|
|
|
"ext_2, ext_3", |
|
|
|
"`status`, ext_1, ext_2, ext_3", |
|
|
|
"from high_gold_rec", |
|
|
|
"from high_gold_rec", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -83,10 +87,12 @@ public interface HighGoldRecMapper extends HighGoldRecMapperExt { |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="gold_type", property="goldType", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="gold_type", property="goldType", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="gold", property="gold", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="gold", property="gold", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="res_type", property="resType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="res_type", property="resType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="res_id", property="resId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="res_id", property="resId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
|
|
@ -107,10 +113,12 @@ public interface HighGoldRecMapper extends HighGoldRecMapperExt { |
|
|
|
"set user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
"set user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
"gold_type = #{goldType,jdbcType=BIGINT},", |
|
|
|
"gold_type = #{goldType,jdbcType=BIGINT},", |
|
|
|
"gold = #{gold,jdbcType=INTEGER},", |
|
|
|
"gold = #{gold,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"res_type = #{resType,jdbcType=INTEGER},", |
|
|
|
"res_type = #{resType,jdbcType=INTEGER},", |
|
|
|
"res_id = #{resId,jdbcType=BIGINT},", |
|
|
|
"res_id = #{resId,jdbcType=BIGINT},", |
|
|
|
"remark = #{remark,jdbcType=VARCHAR},", |
|
|
|
"remark = #{remark,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
|
|
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
|
|
|
"ext_3 = #{ext3,jdbcType=VARCHAR}", |
|
|
|
"ext_3 = #{ext3,jdbcType=VARCHAR}", |
|
|
|