|
|
|
@ -41,13 +41,15 @@ public interface GoodsShoppingCartMapper extends GoodsShoppingCartMapperExt { |
|
|
|
|
@Insert({ |
|
|
|
|
"insert into goods_shopping_cart (goods_id, user_id, ", |
|
|
|
|
"title, img, sku, ", |
|
|
|
|
"num, price, whether_check, ", |
|
|
|
|
"num, price, original_price, ", |
|
|
|
|
"whether_check, lose_efficacy, ", |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"op_id, op_name, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"values (#{goodsId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{title,jdbcType=VARCHAR}, #{img,jdbcType=VARCHAR}, #{sku,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{num,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, #{whetherCheck,jdbcType=BIT}, ", |
|
|
|
|
"#{num,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, #{originalPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{whetherCheck,jdbcType=BIT}, #{loseEfficacy,jdbcType=BIT}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{opId,jdbcType=BIGINT}, #{opName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
@ -69,7 +71,9 @@ public interface GoodsShoppingCartMapper extends GoodsShoppingCartMapperExt { |
|
|
|
|
@Result(column="sku", property="sku", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="num", property="num", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="original_price", property="originalPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="whether_check", property="whetherCheck", jdbcType=JdbcType.BIT), |
|
|
|
|
@Result(column="lose_efficacy", property="loseEfficacy", jdbcType=JdbcType.BIT), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), |
|
|
|
@ -82,8 +86,8 @@ public interface GoodsShoppingCartMapper extends GoodsShoppingCartMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, goods_id, user_id, title, img, sku, num, price, whether_check, create_time, ", |
|
|
|
|
"update_time, op_id, op_name, ext_1, ext_2, ext_3", |
|
|
|
|
"id, goods_id, user_id, title, img, sku, num, price, original_price, whether_check, ", |
|
|
|
|
"lose_efficacy, create_time, update_time, op_id, op_name, ext_1, ext_2, ext_3", |
|
|
|
|
"from goods_shopping_cart", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -96,7 +100,9 @@ public interface GoodsShoppingCartMapper extends GoodsShoppingCartMapperExt { |
|
|
|
|
@Result(column="sku", property="sku", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="num", property="num", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="original_price", property="originalPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="whether_check", property="whetherCheck", jdbcType=JdbcType.BIT), |
|
|
|
|
@Result(column="lose_efficacy", property="loseEfficacy", jdbcType=JdbcType.BIT), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), |
|
|
|
@ -125,7 +131,9 @@ public interface GoodsShoppingCartMapper extends GoodsShoppingCartMapperExt { |
|
|
|
|
"sku = #{sku,jdbcType=VARCHAR},", |
|
|
|
|
"num = #{num,jdbcType=VARCHAR},", |
|
|
|
|
"price = #{price,jdbcType=DECIMAL},", |
|
|
|
|
"original_price = #{originalPrice,jdbcType=DECIMAL},", |
|
|
|
|
"whether_check = #{whetherCheck,jdbcType=BIT},", |
|
|
|
|
"lose_efficacy = #{loseEfficacy,jdbcType=BIT},", |
|
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"op_id = #{opId,jdbcType=BIGINT},", |
|
|
|
|