|
|
@ -40,20 +40,20 @@ public interface GoodsShoppingCartMapper extends GoodsShoppingCartMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into goods_shopping_cart (goods_id, goods_type, ", |
|
|
|
"insert into goods_shopping_cart (goods_id, goods_type, ", |
|
|
|
"user_id, title, img, ", |
|
|
|
"`source`, user_id, title, ", |
|
|
|
"specs_name, specs_id, ", |
|
|
|
"img, specs_name, ", |
|
|
|
"num, price, whether_check, ", |
|
|
|
"specs_id, num, price, ", |
|
|
|
"lose_efficacy, create_time, ", |
|
|
|
"whether_check, lose_efficacy, ", |
|
|
|
"update_time, mer_id, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"mer_name, `status`, ", |
|
|
|
"mer_id, mer_name, `status`, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"values (#{goodsId,jdbcType=BIGINT}, #{goodsType,jdbcType=INTEGER}, ", |
|
|
|
"values (#{goodsId,jdbcType=BIGINT}, #{goodsType,jdbcType=INTEGER}, ", |
|
|
|
"#{userId,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR}, #{img,jdbcType=VARCHAR}, ", |
|
|
|
"#{source,jdbcType=INTEGER}, #{userId,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR}, ", |
|
|
|
"#{specsName,jdbcType=VARCHAR}, #{specsId,jdbcType=BIGINT}, ", |
|
|
|
"#{img,jdbcType=VARCHAR}, #{specsName,jdbcType=VARCHAR}, ", |
|
|
|
"#{num,jdbcType=INTEGER}, #{price,jdbcType=DECIMAL}, #{whetherCheck,jdbcType=BIT}, ", |
|
|
|
"#{specsId,jdbcType=BIGINT}, #{num,jdbcType=INTEGER}, #{price,jdbcType=DECIMAL}, ", |
|
|
|
"#{loseEfficacy,jdbcType=BIT}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{whetherCheck,jdbcType=BIT}, #{loseEfficacy,jdbcType=BIT}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{merId,jdbcType=BIGINT}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{merName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{merId,jdbcType=BIGINT}, #{merName,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") |
|
|
@ -68,6 +68,7 @@ public interface GoodsShoppingCartMapper extends GoodsShoppingCartMapperExt { |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="goods_id", property="goodsId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_id", property="goodsId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_type", property="goodsType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="goods_type", property="goodsType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="source", property="source", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
@ -90,9 +91,9 @@ public interface GoodsShoppingCartMapper extends GoodsShoppingCartMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, goods_id, goods_type, user_id, title, img, specs_name, specs_id, num, price, ", |
|
|
|
"id, goods_id, goods_type, `source`, user_id, title, img, specs_name, specs_id, ", |
|
|
|
"whether_check, lose_efficacy, create_time, update_time, mer_id, mer_name, `status`, ", |
|
|
|
"num, price, whether_check, lose_efficacy, create_time, update_time, mer_id, ", |
|
|
|
"ext_1, ext_2, ext_3", |
|
|
|
"mer_name, `status`, ext_1, ext_2, ext_3", |
|
|
|
"from goods_shopping_cart", |
|
|
|
"from goods_shopping_cart", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -100,6 +101,7 @@ public interface GoodsShoppingCartMapper extends GoodsShoppingCartMapperExt { |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="goods_id", property="goodsId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_id", property="goodsId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_type", property="goodsType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="goods_type", property="goodsType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="source", property="source", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
@ -133,6 +135,7 @@ public interface GoodsShoppingCartMapper extends GoodsShoppingCartMapperExt { |
|
|
|
"update goods_shopping_cart", |
|
|
|
"update goods_shopping_cart", |
|
|
|
"set goods_id = #{goodsId,jdbcType=BIGINT},", |
|
|
|
"set goods_id = #{goodsId,jdbcType=BIGINT},", |
|
|
|
"goods_type = #{goodsType,jdbcType=INTEGER},", |
|
|
|
"goods_type = #{goodsType,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"`source` = #{source,jdbcType=INTEGER},", |
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
"title = #{title,jdbcType=VARCHAR},", |
|
|
|
"title = #{title,jdbcType=VARCHAR},", |
|
|
|
"img = #{img,jdbcType=VARCHAR},", |
|
|
|
"img = #{img,jdbcType=VARCHAR},", |
|
|
|