59 changed files with 1029 additions and 51 deletions
-
10cereshop-admin/src/main/java/com/shop/cereshop/admin/controller/AdminController.java
-
1cereshop-admin/src/main/java/com/shop/cereshop/admin/controller/ShopController.java
-
22cereshop-admin/src/main/java/com/shop/cereshop/admin/service/product/impl/CereShopProductServiceImpl.java
-
4cereshop-admin/src/main/java/com/shop/cereshop/admin/utils/ContextUtil.java
-
10cereshop-admin/src/main/resources/mybatis/mapper/shop/CerePlatformShopDAO.xml
-
13cereshop-app/src/main/java/com/shop/cereshop/app/controller/canvas/CanvasController.java
-
17cereshop-app/src/main/java/com/shop/cereshop/app/controller/classify/ClassifyController.java
-
9cereshop-app/src/main/java/com/shop/cereshop/app/controller/order/OrderController.java
-
4cereshop-app/src/main/java/com/shop/cereshop/app/controller/product/ProductController.java
-
2cereshop-app/src/main/java/com/shop/cereshop/app/dao/cart/CereShopCartDAO.java
-
8cereshop-app/src/main/java/com/shop/cereshop/app/dao/product/CereProductClassifyDAO.java
-
16cereshop-app/src/main/java/com/shop/cereshop/app/dao/product/CereShopProductDAO.java
-
6cereshop-app/src/main/java/com/shop/cereshop/app/dao/shop/CerePlatformShopDAO.java
-
33cereshop-app/src/main/java/com/shop/cereshop/app/page/canvas/CanvasProductNumber.java
-
57cereshop-app/src/main/java/com/shop/cereshop/app/page/canvas/CanvasProductSku.java
-
34cereshop-app/src/main/java/com/shop/cereshop/app/page/canvas/CanvasProductUsers.java
-
33cereshop-app/src/main/java/com/shop/cereshop/app/page/index/ProductImage.java
-
10cereshop-app/src/main/java/com/shop/cereshop/app/page/product/ProductDetail.java
-
5cereshop-app/src/main/java/com/shop/cereshop/app/param/order/OrderGetAllParam.java
-
12cereshop-app/src/main/java/com/shop/cereshop/app/pay/xs/service/impl/XsPayServiceImpl.java
-
7cereshop-app/src/main/java/com/shop/cereshop/app/service/cart/impl/CereShopCartServiceImpl.java
-
2cereshop-app/src/main/java/com/shop/cereshop/app/service/product/CereProductClassifyService.java
-
2cereshop-app/src/main/java/com/shop/cereshop/app/service/product/CereShopProductService.java
-
52cereshop-app/src/main/java/com/shop/cereshop/app/service/product/impl/CereProductClassifyServiceImpl.java
-
86cereshop-app/src/main/java/com/shop/cereshop/app/service/product/impl/CereShopProductServiceImpl.java
-
3cereshop-app/src/main/java/com/shop/cereshop/app/utils/DistributionUtil.java
-
4cereshop-app/src/main/java/com/shop/cereshop/app/utils/WechatUtil.java
-
1cereshop-app/src/main/resources/mybatis/mapper/order/CereShopOrderDAO.xml
-
61cereshop-app/src/main/resources/mybatis/mapper/product/CereProductClassifyDAO.xml
-
185cereshop-app/src/main/resources/mybatis/mapper/product/CereShopProductDAO.xml
-
21cereshop-app/src/main/resources/mybatis/mapper/shop/CerePlatformShopDAO.xml
-
0cereshop-business/cert/.gitkeep
-
0cereshop-business/cert/wechat/.gitkeep
-
1cereshop-business/src/main/java/com/shop/cereshop/business/controller/BusinessUserController.java
-
1cereshop-business/src/main/java/com/shop/cereshop/business/controller/PermissionController.java
-
1cereshop-business/src/main/java/com/shop/cereshop/business/controller/RoleController.java
-
4cereshop-business/src/main/java/com/shop/cereshop/business/dao/tool/CereShopCouponDAO.java
-
19cereshop-business/src/main/java/com/shop/cereshop/business/dao/tool/CereShopCouponExcludeDAO.java
-
2cereshop-business/src/main/java/com/shop/cereshop/business/dao/tool/CereShopDiscountDAO.java
-
2cereshop-business/src/main/java/com/shop/cereshop/business/dao/tool/CereShopGroupWorkDAO.java
-
2cereshop-business/src/main/java/com/shop/cereshop/business/dao/tool/CereShopSeckillDAO.java
-
6cereshop-business/src/main/java/com/shop/cereshop/business/page/tool/ShopCouponDetail.java
-
12cereshop-business/src/main/java/com/shop/cereshop/business/page/tool/ToolProduct.java
-
12cereshop-business/src/main/java/com/shop/cereshop/business/param/tool/ToolProductParam.java
-
1cereshop-business/src/main/java/com/shop/cereshop/business/service/permission/impl/CerePlatformPermissionServiceImpl.java
-
37cereshop-business/src/main/java/com/shop/cereshop/business/service/tool/impl/CereShopCouponServiceImpl.java
-
2cereshop-business/src/main/java/com/shop/cereshop/business/service/tool/impl/CereShopDiscountServiceImpl.java
-
2cereshop-business/src/main/java/com/shop/cereshop/business/service/tool/impl/CereShopGroupWorkServiceImpl.java
-
2cereshop-business/src/main/java/com/shop/cereshop/business/service/tool/impl/CereShopSeckillServiceImpl.java
-
148cereshop-business/src/main/resources/mybatis/mapper/log/CerePlatformWebLogDAO.xml
-
14cereshop-business/src/main/resources/mybatis/mapper/tool/CereShopCouponDAO.xml
-
15cereshop-business/src/main/resources/mybatis/mapper/tool/CereShopCouponExcludeDAO.xml
-
9cereshop-business/src/main/resources/mybatis/mapper/tool/CereShopDiscountDAO.xml
-
7cereshop-business/src/main/resources/mybatis/mapper/tool/CereShopGroupWorkDAO.xml
-
7cereshop-business/src/main/resources/mybatis/mapper/tool/CereShopSeckillDAO.xml
-
33cereshop-commons/src/main/java/com/shop/cereshop/commons/domain/tool/CereShopCouponExclude.java
-
4cereshop-commons/src/main/java/com/shop/cereshop/commons/utils/KdniaoTrackQueryAPI.java
-
4cereshop-commons/src/main/java/com/shop/cereshop/commons/utils/ProjectInvokeUtil.java
-
3doc/2.0/update.sql
@ -0,0 +1,33 @@ |
|||
/* |
|||
* Copyright (C) 2017-2021 |
|||
* All rights reserved, Designed By 深圳中科鑫智科技有限公司 |
|||
* Copyright authorization contact 18814114118 |
|||
*/ |
|||
package com.shop.cereshop.app.page.canvas; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* 画布商品购买数据 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "CanvasProductNumber", description = "画布商品购买数据") |
|||
public class CanvasProductNumber { |
|||
|
|||
/** |
|||
* 产品ID |
|||
*/ |
|||
@ApiModelProperty(value = "产品ID") |
|||
private Long productId; |
|||
|
|||
/** |
|||
* 销量 |
|||
*/ |
|||
@ApiModelProperty(value = "销量") |
|||
private Integer number; |
|||
|
|||
} |
@ -0,0 +1,57 @@ |
|||
/* |
|||
* Copyright (C) 2017-2021 |
|||
* All rights reserved, Designed By 深圳中科鑫智科技有限公司 |
|||
* Copyright authorization contact 18814114118 |
|||
*/ |
|||
package com.shop.cereshop.app.page.canvas; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* 画布商品sku数据 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "CanvasProductSku", description = "画布商品sku数据") |
|||
public class CanvasProductSku { |
|||
|
|||
/** |
|||
* 产品ID |
|||
*/ |
|||
@ApiModelProperty(value = "产品ID") |
|||
private Long productId; |
|||
|
|||
/** |
|||
* 规格id |
|||
*/ |
|||
@ApiModelProperty(value = "规格id") |
|||
private Long skuId; |
|||
|
|||
/** |
|||
* 产品主图 |
|||
*/ |
|||
@ApiModelProperty(value = "产品主图") |
|||
private String image; |
|||
|
|||
/** |
|||
* 商品原价 |
|||
*/ |
|||
@ApiModelProperty(value = "商品原价") |
|||
private BigDecimal originalPrice; |
|||
|
|||
/** |
|||
* 商品售价 |
|||
*/ |
|||
@ApiModelProperty(value = "商品售价") |
|||
private BigDecimal price; |
|||
|
|||
/** |
|||
* 库存 |
|||
*/ |
|||
@ApiModelProperty(value = "库存") |
|||
private Integer stockNumber; |
|||
|
|||
} |
@ -0,0 +1,34 @@ |
|||
/* |
|||
* Copyright (C) 2017-2021 |
|||
* All rights reserved, Designed By 深圳中科鑫智科技有限公司 |
|||
* Copyright authorization contact 18814114118 |
|||
*/ |
|||
package com.shop.cereshop.app.page.canvas; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* 画布商品付款人数 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "CanvasProductUsers", description = "画布商品付款人数") |
|||
public class CanvasProductUsers { |
|||
|
|||
/** |
|||
* 产品ID |
|||
*/ |
|||
@ApiModelProperty(value = "产品ID") |
|||
private Long productId; |
|||
|
|||
/** |
|||
* 付款人数 |
|||
*/ |
|||
@ApiModelProperty(value = "付款人数") |
|||
private Integer users; |
|||
|
|||
|
|||
} |
@ -0,0 +1,33 @@ |
|||
/* |
|||
* Copyright (C) 2017-2021 |
|||
* All rights reserved, Designed By 深圳中科鑫智科技有限公司 |
|||
* Copyright authorization contact 18814114118 |
|||
*/ |
|||
package com.shop.cereshop.app.page.index; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
|
|||
|
|||
/** |
|||
* 产品图片 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "ProductImage", description = "产品图片") |
|||
public class ProductImage { |
|||
|
|||
/** |
|||
* 商品id |
|||
*/ |
|||
@ApiModelProperty(value = "商品id") |
|||
private Long productId; |
|||
|
|||
/** |
|||
* 商品图片 |
|||
*/ |
|||
@ApiModelProperty(value = "商品图片") |
|||
private String image; |
|||
|
|||
} |
@ -0,0 +1,19 @@ |
|||
/* |
|||
* Copyright (C) 2017-2021 |
|||
* All rights reserved, Designed By 深圳中科鑫智科技有限公司 |
|||
* Copyright authorization contact 18814114118 |
|||
*/ |
|||
package com.shop.cereshop.business.dao.tool; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.shop.cereshop.commons.domain.tool.CereShopCouponExclude; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
import java.util.List; |
|||
|
|||
@Mapper |
|||
public interface CereShopCouponExcludeDAO extends BaseMapper<CereShopCouponExclude> { |
|||
|
|||
int insertBatch(List<CereShopCouponExclude> list); |
|||
|
|||
} |
@ -0,0 +1,148 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.shop.cereshop.business.dao.log.CerePlatformWebLogDAO"> |
|||
<resultMap id="BaseResultMap" type="com.shop.cereshop.commons.domain.log.CerePlatformWebLog"> |
|||
<id column="web_log_id" jdbcType="BIGINT" property="webLogId" /> |
|||
<result column="name" jdbcType="VARCHAR" property="name" /> |
|||
<result column="url" jdbcType="VARCHAR" property="url" /> |
|||
<result column="params" jdbcType="VARCHAR" property="params" /> |
|||
<result column="type" jdbcType="BIT" property="type" /> |
|||
<result column="ip" jdbcType="VARCHAR" property="ip" /> |
|||
<result column="ip_source" jdbcType="VARCHAR" property="ipSource" /> |
|||
<result column="describe" jdbcType="VARCHAR" property="describe" /> |
|||
<result column="browser_name" jdbcType="VARCHAR" property="browserName" /> |
|||
<result column="time" jdbcType="INTEGER" property="time" /> |
|||
<result column="create_time" jdbcType="VARCHAR" property="createTime" /> |
|||
</resultMap> |
|||
<sql id="Base_Column_List"> |
|||
web_log_id, `name`, url, params, `type`, ip, ip_source, `describe`, browser_name, |
|||
`time`, create_time |
|||
</sql> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from cere_platform_web_log |
|||
where web_log_id = #{webLogId,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from cere_platform_web_log |
|||
where web_log_id = #{webLogId,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insertSelective" keyColumn="web_log_id" keyProperty="webLogId" parameterType="com.shop.cereshop.commons.domain.log.CerePlatformWebLog" useGeneratedKeys="true"> |
|||
insert into cere_platform_web_log |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="name != null"> |
|||
`name`, |
|||
</if> |
|||
<if test="url != null"> |
|||
url, |
|||
</if> |
|||
<if test="params != null"> |
|||
params, |
|||
</if> |
|||
<if test="type != null"> |
|||
`type`, |
|||
</if> |
|||
<if test="ip != null"> |
|||
ip, |
|||
</if> |
|||
<if test="ipSource != null"> |
|||
ip_source, |
|||
</if> |
|||
<if test="describe != null"> |
|||
`describe`, |
|||
</if> |
|||
<if test="browserName != null"> |
|||
browser_name, |
|||
</if> |
|||
<if test="time != null"> |
|||
`time`, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="name != null"> |
|||
#{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="url != null"> |
|||
#{url,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="params != null"> |
|||
#{params,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="type != null"> |
|||
#{type,jdbcType=BIT}, |
|||
</if> |
|||
<if test="ip != null"> |
|||
#{ip,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="ipSource != null"> |
|||
#{ipSource,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="describe != null"> |
|||
#{describe,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="browserName != null"> |
|||
#{browserName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="time != null"> |
|||
#{time,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=VARCHAR}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.shop.cereshop.commons.domain.log.CerePlatformWebLog"> |
|||
update cere_platform_web_log |
|||
<set> |
|||
<if test="name != null"> |
|||
`name` = #{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="url != null"> |
|||
url = #{url,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="params != null"> |
|||
params = #{params,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="type != null"> |
|||
`type` = #{type,jdbcType=BIT}, |
|||
</if> |
|||
<if test="ip != null"> |
|||
ip = #{ip,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="ipSource != null"> |
|||
ip_source = #{ipSource,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="describe != null"> |
|||
`describe` = #{describe,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="browserName != null"> |
|||
browser_name = #{browserName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="time != null"> |
|||
`time` = #{time,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
where web_log_id = #{webLogId,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.shop.cereshop.commons.domain.log.CerePlatformWebLog"> |
|||
update cere_platform_web_log |
|||
set `name` = #{name,jdbcType=VARCHAR}, |
|||
url = #{url,jdbcType=VARCHAR}, |
|||
params = #{params,jdbcType=VARCHAR}, |
|||
`type` = #{type,jdbcType=BIT}, |
|||
ip = #{ip,jdbcType=VARCHAR}, |
|||
ip_source = #{ipSource,jdbcType=VARCHAR}, |
|||
`describe` = #{describe,jdbcType=VARCHAR}, |
|||
browser_name = #{browserName,jdbcType=VARCHAR}, |
|||
`time` = #{time,jdbcType=INTEGER}, |
|||
create_time = #{createTime,jdbcType=VARCHAR} |
|||
where web_log_id = #{webLogId,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,15 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.shop.cereshop.business.dao.tool.CereShopCouponExcludeDAO"> |
|||
|
|||
<insert id="insertBatch" parameterType="java.util.List"> |
|||
insert into cere_shop_coupon_exclude (shop_coupon_id, product_id) values |
|||
<foreach collection="list" item="item" index="index" separator=","> |
|||
( |
|||
#{item.shopCouponId}, |
|||
#{item.productId} |
|||
) |
|||
</foreach> |
|||
</insert> |
|||
|
|||
</mapper> |
@ -0,0 +1,33 @@ |
|||
/* |
|||
* Copyright (C) 2017-2021 |
|||
* All rights reserved, Designed By 深圳中科鑫智科技有限公司 |
|||
* Copyright authorization contact 18814114118 |
|||
*/ |
|||
package com.shop.cereshop.commons.domain.tool; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* cere_shop_coupon_exclude 店铺优惠券商品指定不可用 |
|||
* @author |
|||
*/ |
|||
@Data |
|||
public class CereShopCouponExclude implements Serializable { |
|||
/** |
|||
* 店铺优惠券id |
|||
*/ |
|||
@ApiModelProperty(value = "店铺优惠券id") |
|||
private Long shopCouponId; |
|||
|
|||
/** |
|||
* 商品id |
|||
*/ |
|||
@ApiModelProperty(value = "商品id") |
|||
private Long productId; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue