秒杀项目初始化
parent
e4d2d5db6d
commit
5a88b571ae
|
@ -8,6 +8,7 @@
|
|||
<outputRelativeToContentRoot value="true" />
|
||||
<module name="etl-common" />
|
||||
<module name="etl-cleaning" />
|
||||
<module name="etl-spike" />
|
||||
<module name="etl-gateway" />
|
||||
</profile>
|
||||
</annotationProcessing>
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
<file url="file://$PROJECT_DIR$/etl-common/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/etl-gateway/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/etl-gateway/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/etl-spike/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/etl-spike/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
|
||||
</component>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -19,6 +19,11 @@
|
|||
<spring-boot.version>2.6.13</spring-boot.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>easyexcel</artifactId>
|
||||
<version>3.0.5</version>
|
||||
</dependency>
|
||||
<!-- Jedis -->
|
||||
<dependency>
|
||||
<groupId>redis.clients</groupId>
|
||||
|
@ -30,7 +35,6 @@
|
|||
<artifactId>spring-boot-starter-captcha</artifactId>
|
||||
<version>1.3.0</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||||
|
|
|
@ -0,0 +1,42 @@
|
|||
package com.etl.cleaning.controller;
|
||||
|
||||
|
||||
import com.alibaba.excel.EasyExcel;
|
||||
import com.etl.cleaning.domian.pojo.DataPlace;
|
||||
import com.etl.cleaning.service.PlaceService;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
|
||||
/**
|
||||
* 导入导出规整
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/poi/excel")
|
||||
public class PoiExcelApi {
|
||||
|
||||
private final PlaceService placeService;
|
||||
|
||||
public PoiExcelApi(PlaceService placeService){
|
||||
this.placeService=placeService;
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出到指定路径
|
||||
*/
|
||||
@PostMapping("/outPoi")
|
||||
public void outPoi(){
|
||||
//设置文件导出的路径
|
||||
String path = "D://poi/";
|
||||
File file=new File( path );
|
||||
if(!file.isDirectory()){
|
||||
file.mkdirs();
|
||||
}
|
||||
String fileName = path + "User" + System.currentTimeMillis() + ".xlsx";
|
||||
EasyExcel.write(fileName, DataPlace.class).sheet("数据源管理").doWrite(placeService.list());
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
package com.etl.cleaning.domian.pojo;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnore;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
|
@ -8,6 +10,7 @@ import lombok.AllArgsConstructor;
|
|||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
|
@ -23,55 +26,70 @@ public class DataPlace {
|
|||
* id
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
@ExcelProperty("主键ID")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 数据源描述
|
||||
*/
|
||||
@ExcelProperty("数据源描述")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ExcelProperty("备注")
|
||||
private String bank;
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ExcelProperty("修改时间")
|
||||
private Date updateTime;
|
||||
/**
|
||||
* 类型ID
|
||||
*/
|
||||
@ExcelProperty("类型ID")
|
||||
private Long typeId;
|
||||
/**
|
||||
* 链接状态
|
||||
*/
|
||||
@ExcelProperty("/连接状态")
|
||||
private Long statue;
|
||||
/**
|
||||
* 连接类型
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
@ExcelIgnore
|
||||
private String typeName;
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
@ExcelProperty("用户名")
|
||||
private String username;
|
||||
/**
|
||||
* 密码
|
||||
*/
|
||||
@ExcelProperty("密码")
|
||||
private String password;
|
||||
/**
|
||||
* 端口
|
||||
*/
|
||||
@ExcelProperty("端口")
|
||||
private String port;
|
||||
/**
|
||||
* 数据库名称
|
||||
*/
|
||||
@ExcelProperty("数据库")
|
||||
private String dataName;
|
||||
/**
|
||||
* 额外配置
|
||||
*/
|
||||
@ExcelProperty("配置")
|
||||
private String yaml;
|
||||
/**
|
||||
* 链接路径
|
||||
*/
|
||||
@ExcelProperty("路径")
|
||||
private String dataUrl;
|
||||
}
|
||||
|
||||
|
|
|
@ -36,8 +36,6 @@ public class PlaceServiceImpl extends ServiceImpl<PlaceMapper, DataPlace> implem
|
|||
this.typeService = typeService;
|
||||
this.placeMapper = placeMapper;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Map<String,Object> showPlacePage(PlaceRequest placeRequest) {
|
||||
LambdaQueryWrapper<DataPlace> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
package com.etl.spike.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* sku商品表 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/goods")
|
||||
public class GoodsController {
|
||||
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
package com.etl.spike.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/order")
|
||||
public class OrderController {
|
||||
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
package com.etl.spike.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/order-item")
|
||||
public class OrderItemController {
|
||||
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
package com.etl.spike.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 秒杀场次表 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/times")
|
||||
public class TimesController {
|
||||
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
package com.etl.spike.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 场次表和商品表关联 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/times-goods")
|
||||
public class TimesGoodsController {
|
||||
|
||||
}
|
|
@ -0,0 +1,67 @@
|
|||
package com.etl.spike.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* sku商品表
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("goods")
|
||||
public class Goods implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 商品ID
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 商品名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 商品价格
|
||||
*/
|
||||
private BigDecimal price;
|
||||
|
||||
/**
|
||||
* 商品所属类型名称
|
||||
*/
|
||||
private String typename;
|
||||
|
||||
/**
|
||||
* 过期时间
|
||||
*/
|
||||
private LocalDateTime time;
|
||||
|
||||
/**
|
||||
* 商品流出地址
|
||||
*/
|
||||
private String place;
|
||||
|
||||
/**
|
||||
* 商品样式
|
||||
*/
|
||||
private String style;
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,66 @@
|
|||
package com.etl.spike.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 订单表
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("order")
|
||||
public class Order implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 订单ID
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 商品ID
|
||||
*/
|
||||
private Integer goodId;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
private Integer userId;
|
||||
|
||||
/**
|
||||
* 订单状态
|
||||
*/
|
||||
private Integer flag;
|
||||
|
||||
/**
|
||||
* 下单时间
|
||||
*/
|
||||
private LocalDateTime time;
|
||||
|
||||
/**
|
||||
* 支付方式
|
||||
*/
|
||||
private String payType;
|
||||
|
||||
/**
|
||||
* 收货地址
|
||||
*/
|
||||
private String place;
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,51 @@
|
|||
package com.etl.spike.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 订单详情表
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("order_item")
|
||||
public class OrderItem implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 订单明细ID
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 订单ID
|
||||
*/
|
||||
private Integer orderId;
|
||||
|
||||
/**
|
||||
* 购买数量
|
||||
*/
|
||||
private Integer num;
|
||||
|
||||
/**
|
||||
* 价格
|
||||
*/
|
||||
private BigDecimal price;
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.etl.spike.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 秒杀场次表
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("times")
|
||||
public class Times implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 场次ID
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 活动名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 活动开始时间
|
||||
*/
|
||||
private LocalDateTime startTime;
|
||||
|
||||
/**
|
||||
* 活动结束时间
|
||||
*/
|
||||
private LocalDateTime endTime;
|
||||
|
||||
/**
|
||||
* 状态 1-未开始 2-进行中 3-已结束
|
||||
*/
|
||||
private String flag;
|
||||
|
||||
/**
|
||||
* 商品售出数量
|
||||
*/
|
||||
private Integer num;
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
package com.etl.spike.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 场次表和商品表关联
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("times_goods")
|
||||
public class TimesGoods implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* id主键
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 场次ID
|
||||
*/
|
||||
private Integer timesId;
|
||||
|
||||
/**
|
||||
* 商品ID
|
||||
*/
|
||||
private Integer goodsId;
|
||||
|
||||
/**
|
||||
* 商品库存
|
||||
*/
|
||||
private Integer goodsNum;
|
||||
|
||||
/**
|
||||
* 商品剩余库存
|
||||
*/
|
||||
private Integer goodsEndNum;
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
package com.etl.spike.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.etl.spike.entity.Goods;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* sku商品表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
public interface GoodsMapper extends BaseMapper< Goods > {
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package com.etl.spike.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.etl.spike.entity.OrderItem;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
public interface OrderItemMapper extends BaseMapper< OrderItem > {
|
||||
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
package com.etl.spike.mapper;
|
||||
|
||||
import com.etl.spike.entity.Order;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
public interface OrderMapper extends BaseMapper<Order> {
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package com.etl.spike.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.etl.spike.entity.TimesGoods;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 场次表和商品表关联 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
public interface TimesGoodsMapper extends BaseMapper< TimesGoods > {
|
||||
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
package com.etl.spike.mapper;
|
||||
|
||||
import com.etl.spike.entity.Times;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 秒杀场次表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
public interface TimesMapper extends BaseMapper<Times> {
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package com.etl.spike.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.etl.spike.entity.Goods;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* sku商品表 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
public interface IGoodsService extends IService< Goods > {
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package com.etl.spike.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.etl.spike.entity.OrderItem;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 订单服务类
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
public interface IOrderItemService extends IService< OrderItem > {
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package com.etl.spike.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.etl.spike.entity.Order;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 订单详情服务类
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
public interface IOrderService extends IService< Order > {
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package com.etl.spike.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.etl.spike.entity.TimesGoods;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 场次表和商品表关联 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
public interface ITimesGoodsService extends IService< TimesGoods > {
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package com.etl.spike.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.etl.spike.entity.Times;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 秒杀场次表 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
public interface ITimesService extends IService< Times > {
|
||||
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
package com.etl.spike.serviceImpl;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.etl.spike.entity.Goods;
|
||||
import com.etl.spike.mapper.GoodsMapper;
|
||||
import com.etl.spike.service.IGoodsService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* sku商品表 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
@Service
|
||||
public class GoodsServiceImpl extends ServiceImpl< GoodsMapper, Goods > implements IGoodsService {
|
||||
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
package com.etl.spike.serviceImpl;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.etl.spike.entity.OrderItem;
|
||||
import com.etl.spike.mapper.OrderItemMapper;
|
||||
import com.etl.spike.service.IOrderItemService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
@Service
|
||||
public class OrderItemServiceImpl extends ServiceImpl < OrderItemMapper, OrderItem > implements IOrderItemService {
|
||||
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
package com.etl.spike.serviceImpl;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.etl.spike.entity.Order;
|
||||
import com.etl.spike.mapper.OrderMapper;
|
||||
import com.etl.spike.service.IOrderService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
@Service
|
||||
public class OrderServiceImpl extends ServiceImpl< OrderMapper, Order > implements IOrderService {
|
||||
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
package com.etl.spike.serviceImpl;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.etl.spike.entity.TimesGoods;
|
||||
import com.etl.spike.mapper.TimesGoodsMapper;
|
||||
import com.etl.spike.service.ITimesGoodsService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 场次表和商品表关联 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
@Service
|
||||
public class TimesGoodsServiceImpl extends ServiceImpl< TimesGoodsMapper, TimesGoods > implements ITimesGoodsService {
|
||||
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
package com.etl.spike.serviceImpl;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.etl.spike.entity.Times;
|
||||
import com.etl.spike.mapper.TimesMapper;
|
||||
import com.etl.spike.service.ITimesService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 秒杀场次表 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author test
|
||||
* @since 2024-07-10
|
||||
*/
|
||||
@Service
|
||||
public class TimesServiceImpl extends ServiceImpl< TimesMapper, Times > implements ITimesService {
|
||||
|
||||
}
|
|
@ -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.bwie.shop.EntityMapper.GoodsMapper">
|
||||
|
||||
</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.bwie.shop.EntityMapper.OrderItemMapper">
|
||||
|
||||
</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.bwie.shop.EntityMapper.OrderMapper">
|
||||
|
||||
</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.bwie.shop.EntityMapper.TimesGoodsMapper">
|
||||
|
||||
</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.bwie.shop.EntityMapper.TimesMapper">
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue