product模块搭建
This commit is contained in:
parent
32d2af152e
commit
54f0e54a28
@ -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>
|
||||
|
@ -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" />
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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 {
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
||||
}
|
@ -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;
|
||||
|
||||
|
||||
}
|
@ -14,6 +14,7 @@
|
||||
<modules>
|
||||
<module>service-acl</module>
|
||||
<module>service-sys</module>
|
||||
<module>service-product</module>
|
||||
</modules>
|
||||
|
||||
<dependencies>
|
||||
|
20
guigu-ssyx-parent/service/service-product/pom.xml
Normal file
20
guigu-ssyx-parent/service/service-product/pom.xml
Normal 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>
|
@ -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);
|
||||
}
|
||||
}
|
@ -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 {
|
||||
|
||||
}
|
||||
|
@ -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 {
|
||||
|
||||
}
|
||||
|
@ -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 {
|
||||
|
||||
}
|
||||
|
@ -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 {
|
||||
|
||||
}
|
||||
|
@ -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 {
|
||||
|
||||
}
|
||||
|
@ -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 {
|
||||
|
||||
}
|
||||
|
@ -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 {
|
||||
|
||||
}
|
||||
|
@ -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 {
|
||||
|
||||
}
|
||||
|
@ -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 {
|
||||
|
||||
}
|
||||
|
@ -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 {
|
||||
|
||||
}
|
||||
|
@ -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 {
|
||||
|
||||
}
|
||||
|
@ -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 {
|
||||
|
||||
}
|
||||
|
@ -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 {
|
||||
|
||||
}
|
||||
|
@ -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 {
|
||||
|
||||
}
|
||||
|
@ -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 {
|
||||
|
||||
}
|
||||
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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>
|
@ -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>
|
@ -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>
|
@ -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>
|
@ -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>
|
@ -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>
|
@ -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>
|
@ -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>
|
@ -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>
|
@ -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>
|
@ -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>
|
@ -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>
|
@ -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>
|
@ -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>
|
@ -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>
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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> {
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
}
|
@ -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
|
||||
|
@ -0,0 +1,5 @@
|
||||
spring:
|
||||
application:
|
||||
name: service-product
|
||||
profiles:
|
||||
active: dev
|
Loading…
Reference in New Issue
Block a user