product模块搭建

This commit is contained in:
yovinchen 2023-09-15 10:22:02 +08:00
parent 32d2af152e
commit 54f0e54a28
87 changed files with 1356 additions and 23 deletions

View File

@ -11,6 +11,7 @@
<module name="common-util" />
<module name="model" />
<module name="service-util" />
<module name="service-product" />
<module name="service-acl" />
</profile>
</annotationProcessing>
@ -21,6 +22,7 @@
<module name="model" options="-parameters" />
<module name="service" options="" />
<module name="service-acl" options="-parameters" />
<module name="service-product" options="-parameters" />
<module name="service-sys" options="-parameters" />
<module name="service-util" options="-parameters" />
</option>

View File

@ -7,6 +7,7 @@
<file url="file://$PROJECT_DIR$/guigu-ssyx-parent/common/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/guigu-ssyx-parent/model/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/guigu-ssyx-parent/service/service-acl/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/guigu-ssyx-parent/service/service-product/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/guigu-ssyx-parent/service/service-sys/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/guigu-ssyx-parent/service/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/guigu-ssyx-parent/service/src/main/resources" charset="UTF-8" />

View File

@ -26,22 +26,6 @@
<artifactId>joda-time</artifactId>
</dependency>
<!--mybatis-plus-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
</dependency>
<!-- 代码生成器-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-generator</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<dependency>
<groupId>com.atguigu</groupId>
<artifactId>model</artifactId>

View File

@ -37,6 +37,8 @@
<artifactId>redisson</artifactId>
<version>3.11.2</version>
</dependency>
<!--mybatis-plus-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
@ -47,6 +49,16 @@
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<!-- 代码生成器-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-generator</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity-engine-core</artifactId>

View File

@ -1,4 +1,4 @@
package ssyx;
package com.atguigu.ssyx;
import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.generator.AutoGenerator;
@ -25,7 +25,7 @@ public class CodeGet {
// 2全局配置
// 全局配置
GlobalConfig gc = new GlobalConfig();
gc.setOutputDir("guigu-ssyx-parent/service/service-sys" + "/src/main/java");
gc.setOutputDir("guigu-ssyx-parent/service/service-product" + "/src/main/java");
gc.setServiceName("%sService"); //去掉Service接口的首字母I
gc.setAuthor("atguigu");
@ -34,17 +34,17 @@ public class CodeGet {
// 3数据源配置
DataSourceConfig dsc = new DataSourceConfig();
dsc.setUrl("jdbc:mysql://82.157.68.223:3306/shequ-sys?serverTimezone=GMT%2B8&useSSL=false");
dsc.setUrl("jdbc:mysql://82.157.68.223:3306/shequ-product?serverTimezone=GMT%2B8&useSSL=false");
dsc.setDriverName("com.mysql.cj.jdbc.Driver");
dsc.setUsername("shequ-sys");
dsc.setPassword("shequ-sys");
dsc.setUsername("shequ-product");
dsc.setPassword("shequ-product");
dsc.setDbType(DbType.MYSQL);
mpg.setDataSource(dsc);
// 4包配置
PackageConfig pc = new PackageConfig();
pc.setParent("com.atguigu.ssyx");
pc.setModuleName("sys"); //模块名
pc.setModuleName("product"); //模块名
pc.setController("controller");
pc.setService("service");
pc.setMapper("mapper");
@ -53,7 +53,7 @@ public class CodeGet {
// 5策略配置
StrategyConfig strategy = new StrategyConfig();
strategy.setInclude("region", "ware", "region_ware");
strategy.setInclude("attr", "attr_group", "category", "comment", "base_category_trademark", "comment_replay", "mq_repeat_record", "region_ware", "sku_attr_value", "sku_detail", "sku_image", "sku_info", "sku_poster", "sku_stock_history", "ware");
strategy.setNaming(NamingStrategy.underline_to_camel);//数据库表映射到实体的命名策略
@ -70,3 +70,4 @@ public class CodeGet {
}
}

View File

@ -0,0 +1,51 @@
package com.atguigu.ssyx.model.product;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 三级分类表
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class BaseCategoryTrademark implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 编号
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 三级级分类id
*/
private Long category3Id;
/**
* 品牌id
*/
private Long trademarkId;
/**
* 创建时间
*/
private LocalDateTime createTime;
private LocalDateTime updateTime;
private Integer isDeleted;
}

View File

@ -0,0 +1,57 @@
package com.atguigu.ssyx.model.product;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* spu属性值
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class SkuDetail implements Serializable {
private static final long serialVersionUID = 1L;
/**
* id
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 商品id
*/
private Long skuId;
/**
* 详情内容
*/
private String detailHtml;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 更新时间
*/
private LocalDateTime updateTime;
/**
* 删除标记0:不可用 1:可用
*/
private Integer isDeleted;
}

View File

@ -14,6 +14,7 @@
<modules>
<module>service-acl</module>
<module>service-sys</module>
<module>service-product</module>
</modules>
<dependencies>

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.atguigu</groupId>
<artifactId>service</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>service-product</artifactId>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>

View File

@ -0,0 +1,19 @@
package com.atguigu.ssyx;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* ClassName: ServiceProductApplication
* Package: com.atguigu.ssyx
*
* @author yovinchen
* @Create 2023/9/15 09:47
*/
@SpringBootApplication
public class ServiceProductApplication {
public static void main(String[] args) {
SpringApplication.run(ServiceProductApplication.class, args);
}
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 商品属性 前端控制器
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@RestController
@RequestMapping("/product/attr")
public class AttrController {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 属性分组 前端控制器
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@RestController
@RequestMapping("/product/attr-group")
public class AttrGroupController {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 三级分类表 前端控制器
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@RestController
@RequestMapping("/product/base-category-trademark")
public class BaseCategoryTrademarkController {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 商品三级分类 前端控制器
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@RestController
@RequestMapping("/product/category")
public class CategoryController {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 商品评价 前端控制器
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@RestController
@RequestMapping("/product/comment")
public class CommentController {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 产品评价回复表 前端控制器
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@RestController
@RequestMapping("/product/comment-replay")
public class CommentReplayController {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* mq去重表 前端控制器
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@RestController
@RequestMapping("/product/mq-repeat-record")
public class MqRepeatRecordController {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 城市仓库关联表 前端控制器
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@RestController
@RequestMapping("/product/region-ware")
public class RegionWareController {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* spu属性值 前端控制器
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@RestController
@RequestMapping("/product/sku-attr-value")
public class SkuAttrValueController {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* spu属性值 前端控制器
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@RestController
@RequestMapping("/product/sku-detail")
public class SkuDetailController {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 商品图片 前端控制器
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@RestController
@RequestMapping("/product/sku-image")
public class SkuImageController {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* sku信息 前端控制器
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@RestController
@RequestMapping("/product/sku-info")
public class SkuInfoController {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 商品海报表 前端控制器
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@RestController
@RequestMapping("/product/sku-poster")
public class SkuPosterController {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* sku的库存历史记录 前端控制器
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@RestController
@RequestMapping("/product/sku-stock-history")
public class SkuStockHistoryController {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 仓库表 前端控制器
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@RestController
@RequestMapping("/product/ware")
public class WareController {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.mapper;
import com.atguigu.ssyx.model.product.AttrGroup;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 属性分组 Mapper 接口
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface AttrGroupMapper extends BaseMapper<AttrGroup> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.mapper;
import com.atguigu.ssyx.model.product.Attr;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 商品属性 Mapper 接口
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface AttrMapper extends BaseMapper<Attr> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.mapper;
import com.atguigu.ssyx.model.product.BaseCategoryTrademark;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 三级分类表 Mapper 接口
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface BaseCategoryTrademarkMapper extends BaseMapper<BaseCategoryTrademark> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.mapper;
import com.atguigu.ssyx.model.product.Category;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 商品三级分类 Mapper 接口
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface CategoryMapper extends BaseMapper<Category> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.mapper;
import com.atguigu.ssyx.model.product.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 商品评价 Mapper 接口
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface CommentMapper extends BaseMapper<Comment> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.mapper;
import com.atguigu.ssyx.model.product.CommentReplay;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 产品评价回复表 Mapper 接口
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface CommentReplayMapper extends BaseMapper<CommentReplay> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.mapper;
import com.atguigu.ssyx.model.base.MqRepeatRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* mq去重表 Mapper 接口
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface MqRepeatRecordMapper extends BaseMapper<MqRepeatRecord> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.mapper;
import com.atguigu.ssyx.model.sys.RegionWare;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 城市仓库关联表 Mapper 接口
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface RegionWareMapper extends BaseMapper<RegionWare> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.mapper;
import com.atguigu.ssyx.model.product.SkuAttrValue;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* spu属性值 Mapper 接口
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface SkuAttrValueMapper extends BaseMapper<SkuAttrValue> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.mapper;
import com.atguigu.ssyx.model.product.SkuDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* spu属性值 Mapper 接口
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface SkuDetailMapper extends BaseMapper<SkuDetail> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.mapper;
import com.atguigu.ssyx.model.product.SkuImage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 商品图片 Mapper 接口
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface SkuImageMapper extends BaseMapper<SkuImage> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.mapper;
import com.atguigu.ssyx.model.product.SkuInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* sku信息 Mapper 接口
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface SkuInfoMapper extends BaseMapper<SkuInfo> {
}

View File

@ -0,0 +1,17 @@
package com.atguigu.ssyx.product.mapper;
import com.atguigu.ssyx.model.product.SkuPoster;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 商品海报表 Mapper 接口
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface SkuPosterMapper extends BaseMapper<SkuPoster> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.mapper;
import com.atguigu.ssyx.model.product.SkuStockHistory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* sku的库存历史记录 Mapper 接口
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface SkuStockHistoryMapper extends BaseMapper<SkuStockHistory> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.mapper;
import com.atguigu.ssyx.model.sys.Ware;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 仓库表 Mapper 接口
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface WareMapper extends BaseMapper<Ware> {
}

View File

@ -0,0 +1,5 @@
<?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.atguigu.ssyx.product.mapper.AttrGroupMapper">
</mapper>

View File

@ -0,0 +1,5 @@
<?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.atguigu.ssyx.product.mapper.AttrMapper">
</mapper>

View File

@ -0,0 +1,5 @@
<?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.atguigu.ssyx.product.mapper.BaseCategoryTrademarkMapper">
</mapper>

View File

@ -0,0 +1,5 @@
<?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.atguigu.ssyx.product.mapper.CategoryMapper">
</mapper>

View File

@ -0,0 +1,5 @@
<?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.atguigu.ssyx.product.mapper.CommentMapper">
</mapper>

View File

@ -0,0 +1,5 @@
<?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.atguigu.ssyx.product.mapper.CommentReplayMapper">
</mapper>

View File

@ -0,0 +1,5 @@
<?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.atguigu.ssyx.product.mapper.MqRepeatRecordMapper">
</mapper>

View File

@ -0,0 +1,5 @@
<?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.atguigu.ssyx.product.mapper.RegionWareMapper">
</mapper>

View File

@ -0,0 +1,5 @@
<?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.atguigu.ssyx.product.mapper.SkuAttrValueMapper">
</mapper>

View File

@ -0,0 +1,5 @@
<?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.atguigu.ssyx.product.mapper.SkuDetailMapper">
</mapper>

View File

@ -0,0 +1,5 @@
<?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.atguigu.ssyx.product.mapper.SkuImageMapper">
</mapper>

View File

@ -0,0 +1,5 @@
<?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.atguigu.ssyx.product.mapper.SkuInfoMapper">
</mapper>

View File

@ -0,0 +1,5 @@
<?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.atguigu.ssyx.product.mapper.SkuPosterMapper">
</mapper>

View File

@ -0,0 +1,5 @@
<?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.atguigu.ssyx.product.mapper.SkuStockHistoryMapper">
</mapper>

View File

@ -0,0 +1,5 @@
<?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.atguigu.ssyx.product.mapper.WareMapper">
</mapper>

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.service;
import com.atguigu.ssyx.model.product.AttrGroup;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 属性分组 服务类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface AttrGroupService extends IService<AttrGroup> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.service;
import com.atguigu.ssyx.model.product.Attr;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 商品属性 服务类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface AttrService extends IService<Attr> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.service;
import com.atguigu.ssyx.model.product.BaseCategoryTrademark;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 三级分类表 服务类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface BaseCategoryTrademarkService extends IService<BaseCategoryTrademark> {
}

View File

@ -0,0 +1,17 @@
package com.atguigu.ssyx.product.service;
import com.atguigu.ssyx.model.product.Category;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 商品三级分类 服务类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface CategoryService extends IService<Category> {
}

View File

@ -0,0 +1,17 @@
package com.atguigu.ssyx.product.service;
import com.atguigu.ssyx.model.product.CommentReplay;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 产品评价回复表 服务类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface CommentReplayService extends IService<CommentReplay> {
}

View File

@ -0,0 +1,17 @@
package com.atguigu.ssyx.product.service;
import com.atguigu.ssyx.model.product.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 商品评价 服务类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface CommentService extends IService<Comment> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.service;
import com.atguigu.ssyx.model.base.MqRepeatRecord;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* mq去重表 服务类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface MqRepeatRecordService extends IService<MqRepeatRecord> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.service;
import com.atguigu.ssyx.model.sys.RegionWare;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 城市仓库关联表 服务类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface RegionWareService extends IService<RegionWare> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.service;
import com.atguigu.ssyx.model.product.SkuAttrValue;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* spu属性值 服务类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface SkuAttrValueService extends IService<SkuAttrValue> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.service;
import com.atguigu.ssyx.model.product.SkuDetail;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* spu属性值 服务类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface SkuDetailService extends IService<SkuDetail> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.service;
import com.atguigu.ssyx.model.product.SkuImage;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 商品图片 服务类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface SkuImageService extends IService<SkuImage> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.service;
import com.atguigu.ssyx.model.product.SkuInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* sku信息 服务类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface SkuInfoService extends IService<SkuInfo> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.service;
import com.atguigu.ssyx.model.product.SkuPoster;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 商品海报表 服务类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface SkuPosterService extends IService<SkuPoster> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.service;
import com.atguigu.ssyx.model.product.SkuStockHistory;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* sku的库存历史记录 服务类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface SkuStockHistoryService extends IService<SkuStockHistory> {
}

View File

@ -0,0 +1,16 @@
package com.atguigu.ssyx.product.service;
import com.atguigu.ssyx.model.sys.Ware;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 仓库表 服务类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
public interface WareService extends IService<Ware> {
}

View File

@ -0,0 +1,21 @@
package com.atguigu.ssyx.product.service.impl;
import com.atguigu.ssyx.model.product.AttrGroup;
import com.atguigu.ssyx.product.mapper.AttrGroupMapper;
import com.atguigu.ssyx.product.service.AttrGroupService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 属性分组 服务实现类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@Service
public class AttrGroupServiceImpl extends ServiceImpl<AttrGroupMapper, AttrGroup> implements AttrGroupService {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.service.impl;
import com.atguigu.ssyx.model.product.Attr;
import com.atguigu.ssyx.product.mapper.AttrMapper;
import com.atguigu.ssyx.product.service.AttrService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 商品属性 服务实现类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@Service
public class AttrServiceImpl extends ServiceImpl<AttrMapper, Attr> implements AttrService {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.service.impl;
import com.atguigu.ssyx.model.product.BaseCategoryTrademark;
import com.atguigu.ssyx.product.mapper.BaseCategoryTrademarkMapper;
import com.atguigu.ssyx.product.service.BaseCategoryTrademarkService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 三级分类表 服务实现类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@Service
public class BaseCategoryTrademarkServiceImpl extends ServiceImpl<BaseCategoryTrademarkMapper, BaseCategoryTrademark> implements BaseCategoryTrademarkService {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.service.impl;
import com.atguigu.ssyx.model.product.Category;
import com.atguigu.ssyx.product.mapper.CategoryMapper;
import com.atguigu.ssyx.product.service.CategoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 商品三级分类 服务实现类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> implements CategoryService {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.service.impl;
import com.atguigu.ssyx.model.product.CommentReplay;
import com.atguigu.ssyx.product.mapper.CommentReplayMapper;
import com.atguigu.ssyx.product.service.CommentReplayService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 产品评价回复表 服务实现类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@Service
public class CommentReplayServiceImpl extends ServiceImpl<CommentReplayMapper, CommentReplay> implements CommentReplayService {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.service.impl;
import com.atguigu.ssyx.model.product.Comment;
import com.atguigu.ssyx.product.mapper.CommentMapper;
import com.atguigu.ssyx.product.service.CommentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 商品评价 服务实现类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> implements CommentService {
}

View File

@ -0,0 +1,21 @@
package com.atguigu.ssyx.product.service.impl;
import com.atguigu.ssyx.model.base.MqRepeatRecord;
import com.atguigu.ssyx.product.mapper.MqRepeatRecordMapper;
import com.atguigu.ssyx.product.service.MqRepeatRecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* mq去重表 服务实现类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@Service
public class MqRepeatRecordServiceImpl extends ServiceImpl<MqRepeatRecordMapper, MqRepeatRecord> implements MqRepeatRecordService {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.service.impl;
import com.atguigu.ssyx.model.sys.RegionWare;
import com.atguigu.ssyx.product.mapper.RegionWareMapper;
import com.atguigu.ssyx.product.service.RegionWareService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 城市仓库关联表 服务实现类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@Service
public class RegionWareServiceImpl extends ServiceImpl<RegionWareMapper, RegionWare> implements RegionWareService {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.service.impl;
import com.atguigu.ssyx.model.product.SkuAttrValue;
import com.atguigu.ssyx.product.mapper.SkuAttrValueMapper;
import com.atguigu.ssyx.product.service.SkuAttrValueService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* spu属性值 服务实现类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@Service
public class SkuAttrValueServiceImpl extends ServiceImpl<SkuAttrValueMapper, SkuAttrValue> implements SkuAttrValueService {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.service.impl;
import com.atguigu.ssyx.model.product.SkuDetail;
import com.atguigu.ssyx.product.mapper.SkuDetailMapper;
import com.atguigu.ssyx.product.service.SkuDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* spu属性值 服务实现类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@Service
public class SkuDetailServiceImpl extends ServiceImpl<SkuDetailMapper, SkuDetail> implements SkuDetailService {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.service.impl;
import com.atguigu.ssyx.model.product.SkuImage;
import com.atguigu.ssyx.product.mapper.SkuImageMapper;
import com.atguigu.ssyx.product.service.SkuImageService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 商品图片 服务实现类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@Service
public class SkuImageServiceImpl extends ServiceImpl<SkuImageMapper, SkuImage> implements SkuImageService {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.service.impl;
import com.atguigu.ssyx.model.product.SkuInfo;
import com.atguigu.ssyx.product.mapper.SkuInfoMapper;
import com.atguigu.ssyx.product.service.SkuInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* sku信息 服务实现类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@Service
public class SkuInfoServiceImpl extends ServiceImpl<SkuInfoMapper, SkuInfo> implements SkuInfoService {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.service.impl;
import com.atguigu.ssyx.model.product.SkuPoster;
import com.atguigu.ssyx.product.mapper.SkuPosterMapper;
import com.atguigu.ssyx.product.service.SkuPosterService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 商品海报表 服务实现类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@Service
public class SkuPosterServiceImpl extends ServiceImpl<SkuPosterMapper, SkuPoster> implements SkuPosterService {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.service.impl;
import com.atguigu.ssyx.model.product.SkuStockHistory;
import com.atguigu.ssyx.product.mapper.SkuStockHistoryMapper;
import com.atguigu.ssyx.product.service.SkuStockHistoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* sku的库存历史记录 服务实现类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@Service
public class SkuStockHistoryServiceImpl extends ServiceImpl<SkuStockHistoryMapper, SkuStockHistory> implements SkuStockHistoryService {
}

View File

@ -0,0 +1,20 @@
package com.atguigu.ssyx.product.service.impl;
import com.atguigu.ssyx.model.sys.Ware;
import com.atguigu.ssyx.product.mapper.WareMapper;
import com.atguigu.ssyx.product.service.WareService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 仓库表 服务实现类
* </p>
*
* @author atguigu
* @since 2023-09-15
*/
@Service
public class WareServiceImpl extends ServiceImpl<WareMapper, Ware> implements WareService {
}

View File

@ -0,0 +1,19 @@
server:
port: 8203
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
spring:
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://82.157.68.223:3306/shequ-product?characterEncoding=utf-8&useSSL=false
username: shequ-product
password: shequ-product
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8

View File

@ -0,0 +1,5 @@
spring:
application:
name: service-product
profiles:
active: dev