|
|
@ -40,14 +40,14 @@ public interface HighGroupCodeMapper extends HighGroupCodeMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into high_group_code (user_id, order_id, ", |
|
|
|
"insert into high_group_code (user_id, order_id, ", |
|
|
|
"srore_id, group_id, ", |
|
|
|
"store_id, group_id, ", |
|
|
|
"group_code, code_img_url, ", |
|
|
|
"group_code, code_img_url, ", |
|
|
|
"expiration_time, create_time, ", |
|
|
|
"expiration_time, create_time, ", |
|
|
|
"update_time, `status`, ", |
|
|
|
"update_time, `status`, ", |
|
|
|
"op_id, op_name, ext_1, ", |
|
|
|
"op_id, op_name, ext_1, ", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"values (#{userId,jdbcType=BIGINT}, #{orderId,jdbcType=BIGINT}, ", |
|
|
|
"values (#{userId,jdbcType=BIGINT}, #{orderId,jdbcType=BIGINT}, ", |
|
|
|
"#{sroreId,jdbcType=BIGINT}, #{groupId,jdbcType=BIGINT}, ", |
|
|
|
"#{storeId,jdbcType=BIGINT}, #{groupId,jdbcType=BIGINT}, ", |
|
|
|
"#{groupCode,jdbcType=VARCHAR}, #{codeImgUrl,jdbcType=VARCHAR}, ", |
|
|
|
"#{groupCode,jdbcType=VARCHAR}, #{codeImgUrl,jdbcType=VARCHAR}, ", |
|
|
|
"#{expirationTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{expirationTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
@ -66,7 +66,7 @@ public interface HighGroupCodeMapper extends HighGroupCodeMapperExt { |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="srore_id", property="sroreId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="group_id", property="groupId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="group_id", property="groupId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="group_code", property="groupCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="group_code", property="groupCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="code_img_url", property="codeImgUrl", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="code_img_url", property="codeImgUrl", jdbcType=JdbcType.VARCHAR), |
|
|
@ -84,7 +84,7 @@ public interface HighGroupCodeMapper extends HighGroupCodeMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, user_id, order_id, srore_id, group_id, group_code, code_img_url, expiration_time, ", |
|
|
|
"id, user_id, order_id, store_id, group_id, group_code, code_img_url, expiration_time, ", |
|
|
|
"create_time, update_time, `status`, op_id, op_name, ext_1, ext_2, ext_3", |
|
|
|
"create_time, update_time, `status`, op_id, op_name, ext_1, ext_2, ext_3", |
|
|
|
"from high_group_code", |
|
|
|
"from high_group_code", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
@ -93,7 +93,7 @@ public interface HighGroupCodeMapper extends HighGroupCodeMapperExt { |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="srore_id", property="sroreId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="group_id", property="groupId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="group_id", property="groupId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="group_code", property="groupCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="group_code", property="groupCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="code_img_url", property="codeImgUrl", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="code_img_url", property="codeImgUrl", jdbcType=JdbcType.VARCHAR), |
|
|
@ -122,7 +122,7 @@ public interface HighGroupCodeMapper extends HighGroupCodeMapperExt { |
|
|
|
"update high_group_code", |
|
|
|
"update high_group_code", |
|
|
|
"set user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
"set user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
"order_id = #{orderId,jdbcType=BIGINT},", |
|
|
|
"order_id = #{orderId,jdbcType=BIGINT},", |
|
|
|
"srore_id = #{sroreId,jdbcType=BIGINT},", |
|
|
|
"store_id = #{storeId,jdbcType=BIGINT},", |
|
|
|
"group_id = #{groupId,jdbcType=BIGINT},", |
|
|
|
"group_id = #{groupId,jdbcType=BIGINT},", |
|
|
|
"group_code = #{groupCode,jdbcType=VARCHAR},", |
|
|
|
"group_code = #{groupCode,jdbcType=VARCHAR},", |
|
|
|
"code_img_url = #{codeImgUrl,jdbcType=VARCHAR},", |
|
|
|
"code_img_url = #{codeImgUrl,jdbcType=VARCHAR},", |
|
|
|