|
|
@ -42,12 +42,14 @@ public interface HighGoldRecMapper extends HighGoldRecMapperExt { |
|
|
|
"insert into high_gold_rec (user_id, gold_type, ", |
|
|
|
"insert into high_gold_rec (user_id, gold_type, ", |
|
|
|
"gold, update_time, ", |
|
|
|
"gold, update_time, ", |
|
|
|
"create_time, res_type, ", |
|
|
|
"create_time, res_type, ", |
|
|
|
"res_id, remark, `status`, ", |
|
|
|
"res_id, res_order_no, ", |
|
|
|
|
|
|
|
"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}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{gold,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{resType,jdbcType=INTEGER}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{resType,jdbcType=INTEGER}, ", |
|
|
|
"#{resId,jdbcType=BIGINT}, #{remark,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{resId,jdbcType=BIGINT}, #{resOrderNo,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{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") |
|
|
@ -67,6 +69,7 @@ public interface HighGoldRecMapper extends HighGoldRecMapperExt { |
|
|
|
@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="res_order_no", property="resOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@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="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
@ -77,8 +80,8 @@ public interface HighGoldRecMapper extends HighGoldRecMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, user_id, gold_type, gold, update_time, create_time, res_type, res_id, remark, ", |
|
|
|
"id, user_id, gold_type, gold, update_time, create_time, res_type, res_id, res_order_no, ", |
|
|
|
"`status`, ext_1, ext_2, ext_3", |
|
|
|
"remark, `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}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -91,6 +94,7 @@ public interface HighGoldRecMapper extends HighGoldRecMapperExt { |
|
|
|
@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="res_order_no", property="resOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@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="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
@ -117,6 +121,7 @@ public interface HighGoldRecMapper extends HighGoldRecMapperExt { |
|
|
|
"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},", |
|
|
|
|
|
|
|
"res_order_no = #{resOrderNo,jdbcType=VARCHAR},", |
|
|
|
"remark = #{remark,jdbcType=VARCHAR},", |
|
|
|
"remark = #{remark,jdbcType=VARCHAR},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|