|
|
|
@ -40,12 +40,14 @@ public interface HighGoldRecMapper extends HighGoldRecMapperExt { |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into high_gold_rec (user_id, gold_type, ", |
|
|
|
|
"gold, create_time, ", |
|
|
|
|
"res_type, res_id, remark, ", |
|
|
|
|
"gold, update_time, ", |
|
|
|
|
"create_time, res_type, ", |
|
|
|
|
"res_id, remark, `status`, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{userId,jdbcType=BIGINT}, #{goldType,jdbcType=BIGINT}, ", |
|
|
|
|
"#{gold,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{resType,jdbcType=INTEGER}, #{resId,jdbcType=BIGINT}, #{remark,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{gold,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{resType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{resId,jdbcType=BIGINT}, #{remark,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@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="gold_type", property="goldType", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@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="res_type", property="resType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="res_id", property="resId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@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_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
|
|
|
@ -73,8 +77,8 @@ public interface HighGoldRecMapper extends HighGoldRecMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, user_id, gold_type, gold, create_time, res_type, res_id, remark, ext_1, ", |
|
|
|
|
"ext_2, ext_3", |
|
|
|
|
"id, user_id, gold_type, gold, update_time, create_time, res_type, res_id, remark, ", |
|
|
|
|
"`status`, ext_1, ext_2, ext_3", |
|
|
|
|
"from high_gold_rec", |
|
|
|
|
"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="gold_type", property="goldType", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@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="res_type", property="resType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="res_id", property="resId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@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_2", property="ext2", 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},", |
|
|
|
|
"gold_type = #{goldType,jdbcType=BIGINT},", |
|
|
|
|
"gold = #{gold,jdbcType=INTEGER},", |
|
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"res_type = #{resType,jdbcType=INTEGER},", |
|
|
|
|
"res_id = #{resId,jdbcType=BIGINT},", |
|
|
|
|
"remark = #{remark,jdbcType=VARCHAR},", |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
|
|
|
|
"ext_3 = #{ext3,jdbcType=VARCHAR}", |
|
|
|
|