|
|
|
@ -40,15 +40,15 @@ public interface GoodsJumpMapper extends GoodsJumpMapperExt { |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into goods_jump (specs_id, btn_name, ", |
|
|
|
|
"`type`, jump_type, ", |
|
|
|
|
"jump_url, appid, ", |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"jump_type, jump_url, ", |
|
|
|
|
"appid, create_time, ", |
|
|
|
|
"update_time, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"values (#{specsId,jdbcType=BIGINT}, #{btnName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{type,jdbcType=INTEGER}, #{jumpType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{jumpUrl,jdbcType=VARCHAR}, #{appid,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{jumpType,jdbcType=INTEGER}, #{jumpUrl,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{appid,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(GoodsJump record); |
|
|
|
@ -62,7 +62,6 @@ public interface GoodsJumpMapper extends GoodsJumpMapperExt { |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="specs_id", property="specsId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="btn_name", property="btnName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="jump_type", property="jumpType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="jump_url", property="jumpUrl", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="appid", property="appid", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -76,7 +75,7 @@ public interface GoodsJumpMapper extends GoodsJumpMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, specs_id, btn_name, `type`, jump_type, jump_url, appid, create_time, update_time, ", |
|
|
|
|
"id, specs_id, btn_name, jump_type, jump_url, appid, create_time, update_time, ", |
|
|
|
|
"ext_1, ext_2, ext_3", |
|
|
|
|
"from goods_jump", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
@ -85,7 +84,6 @@ public interface GoodsJumpMapper extends GoodsJumpMapperExt { |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="specs_id", property="specsId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="btn_name", property="btnName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="jump_type", property="jumpType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="jump_url", property="jumpUrl", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="appid", property="appid", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -110,7 +108,6 @@ public interface GoodsJumpMapper extends GoodsJumpMapperExt { |
|
|
|
|
"update goods_jump", |
|
|
|
|
"set specs_id = #{specsId,jdbcType=BIGINT},", |
|
|
|
|
"btn_name = #{btnName,jdbcType=VARCHAR},", |
|
|
|
|
"`type` = #{type,jdbcType=INTEGER},", |
|
|
|
|
"jump_type = #{jumpType,jdbcType=INTEGER},", |
|
|
|
|
"jump_url = #{jumpUrl,jdbcType=VARCHAR},", |
|
|
|
|
"appid = #{appid,jdbcType=VARCHAR},", |
|
|
|
|