mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-23 23:59:19 +08:00
refactor: 彻底重构目录架构
This commit is contained in:
+4
-1
@@ -5,7 +5,10 @@ import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
@MapperScan("top.xyquan.ecomdmbbackend.modules.*.mapper")
|
||||
@MapperScan({
|
||||
"top.xyquan.ecomdmbbackend.modules.*.mapper",
|
||||
"top.xyquan.ecomdmbbackend.modules.*.*.mapper"
|
||||
})
|
||||
public class EComDMBBackendApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ import org.aspectj.lang.reflect.MethodSignature;
|
||||
import org.springframework.stereotype.Component;
|
||||
import top.xyquan.ecomdmbbackend.common.annotation.RequirePermission;
|
||||
import top.xyquan.ecomdmbbackend.common.exception.BusinessException;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.service.PermissionCheckService;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.permission.service.PermissionCheckService;
|
||||
import top.xyquan.ecomdmbbackend.utils.CurrentUserContext;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
+6
-6
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.controller;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.brushorder.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
@@ -9,11 +9,11 @@ import top.xyquan.ecomdmbbackend.common.annotation.RequireRole;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.common.response.ApiResponse;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.brushorder.BrushOrderFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.brushorder.CreateBrushOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.brushorder.UpdateBrushOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.BrushOrderVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.BrushOrderService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.brushorder.model.dto.BrushOrderFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.brushorder.model.dto.CreateBrushOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.brushorder.model.dto.UpdateBrushOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.brushorder.model.vo.BrushOrderVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.brushorder.service.BrushOrderService;
|
||||
|
||||
/**
|
||||
* 刷单记录管理控制器
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.mapper;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.brushorder.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.BrushOrderPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.brushorder.model.po.BrushOrderPO;
|
||||
|
||||
/**
|
||||
* 刷单记录Mapper接口
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.brushorder;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.brushorder.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.brushorder;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.brushorder.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.brushorder;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.brushorder.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.po;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.brushorder.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.vo;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.brushorder.model.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
+6
-6
@@ -1,13 +1,13 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.brushorder.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.brushorder.BrushOrderFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.brushorder.CreateBrushOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.brushorder.UpdateBrushOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.BrushOrderPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.BrushOrderVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.brushorder.model.dto.BrushOrderFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.brushorder.model.dto.CreateBrushOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.brushorder.model.dto.UpdateBrushOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.brushorder.model.po.BrushOrderPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.brushorder.model.vo.BrushOrderVO;
|
||||
|
||||
/**
|
||||
* 刷单记录服务接口
|
||||
+14
-14
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service.impl;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.brushorder.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
@@ -10,19 +10,19 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
import top.xyquan.ecomdmbbackend.common.exception.BusinessException;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.mapper.BrushOrderMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.brushorder.BrushOrderFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.brushorder.CreateBrushOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.brushorder.UpdateBrushOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.BrushOrderPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ProductPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ProductSpecPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ShopPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.BrushOrderVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.BrushOrderService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ProductService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ProductSpecService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ShopService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.brushorder.mapper.BrushOrderMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.brushorder.model.dto.BrushOrderFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.brushorder.model.dto.CreateBrushOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.brushorder.model.dto.UpdateBrushOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.brushorder.model.po.BrushOrderPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.po.ProductPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.po.ProductSpecPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.shop.model.po.ShopPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.brushorder.model.vo.BrushOrderVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.brushorder.service.BrushOrderService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.service.ProductService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.service.ProductSpecService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.shop.service.ShopService;
|
||||
import top.xyquan.ecomdmbbackend.utils.CurrentUserContext;
|
||||
|
||||
import java.util.List;
|
||||
+7
-7
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.controller;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
@@ -9,12 +9,12 @@ import top.xyquan.ecomdmbbackend.common.annotation.RequireRole;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.common.response.ApiResponse;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importfielddef.BatchSortImportFieldDefDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importfielddef.CreateImportFieldDefDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importfielddef.ImportFieldDefFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importfielddef.UpdateImportFieldDefDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ImportFieldDefVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ImportFieldDefService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.dto.BatchSortImportFieldDefDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.dto.CreateImportFieldDefDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.dto.ImportFieldDefFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.dto.UpdateImportFieldDefDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.vo.ImportFieldDefVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.service.ImportFieldDefService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.mapper;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ImportFieldDefPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.po.ImportFieldDefPO;
|
||||
|
||||
/**
|
||||
* 导入字段定义Mapper接口
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importfielddef;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.Valid;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importfielddef;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importfielddef;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importfielddef;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.po;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.vo;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
+7
-7
@@ -1,14 +1,14 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importfielddef.BatchSortImportFieldDefDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importfielddef.CreateImportFieldDefDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importfielddef.ImportFieldDefFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importfielddef.UpdateImportFieldDefDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ImportFieldDefPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ImportFieldDefVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.dto.BatchSortImportFieldDefDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.dto.CreateImportFieldDefDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.dto.ImportFieldDefFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.dto.UpdateImportFieldDefDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.po.ImportFieldDefPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.vo.ImportFieldDefVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
+9
-9
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service.impl;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
@@ -11,14 +11,14 @@ import org.springframework.util.StringUtils;
|
||||
import top.xyquan.ecomdmbbackend.common.exception.BusinessException;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.mapper.ImportFieldDefMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importfielddef.BatchSortImportFieldDefDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importfielddef.CreateImportFieldDefDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importfielddef.ImportFieldDefFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importfielddef.UpdateImportFieldDefDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ImportFieldDefPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ImportFieldDefVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ImportFieldDefService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.mapper.ImportFieldDefMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.dto.BatchSortImportFieldDefDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.dto.CreateImportFieldDefDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.dto.ImportFieldDefFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.dto.UpdateImportFieldDefDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.po.ImportFieldDefPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.model.vo.ImportFieldDefVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importfielddef.service.ImportFieldDefService;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
+6
-6
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.controller;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importmapping.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
@@ -9,11 +9,11 @@ import top.xyquan.ecomdmbbackend.common.annotation.RequireRole;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.common.response.ApiResponse;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importmapping.CreateImportMappingDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importmapping.ImportMappingFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importmapping.UpdateImportMappingDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ImportMappingVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ImportMappingService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importmapping.model.dto.CreateImportMappingDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importmapping.model.dto.ImportMappingFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importmapping.model.dto.UpdateImportMappingDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importmapping.model.vo.ImportMappingVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importmapping.service.ImportMappingService;
|
||||
|
||||
/**
|
||||
* 导入映射模板管理控制器
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.mapper;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importmapping.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ImportMappingPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importmapping.model.po.ImportMappingPO;
|
||||
|
||||
/**
|
||||
* 导入映射Mapper接口
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importmapping;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importmapping.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importmapping;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importmapping.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importmapping;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importmapping.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.po;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importmapping.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.vo;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importmapping.model.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
+6
-6
@@ -1,13 +1,13 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importmapping.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importmapping.CreateImportMappingDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importmapping.ImportMappingFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importmapping.UpdateImportMappingDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ImportMappingPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ImportMappingVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importmapping.model.dto.CreateImportMappingDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importmapping.model.dto.ImportMappingFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importmapping.model.dto.UpdateImportMappingDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importmapping.model.po.ImportMappingPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importmapping.model.vo.ImportMappingVO;
|
||||
|
||||
/**
|
||||
* 导入映射模板服务接口
|
||||
+8
-8
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service.impl;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importmapping.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
@@ -11,13 +11,13 @@ import org.springframework.util.StringUtils;
|
||||
import top.xyquan.ecomdmbbackend.common.exception.BusinessException;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.mapper.ImportMappingMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importmapping.CreateImportMappingDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importmapping.ImportMappingFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importmapping.UpdateImportMappingDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ImportMappingPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ImportMappingVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ImportMappingService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importmapping.mapper.ImportMappingMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importmapping.model.dto.CreateImportMappingDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importmapping.model.dto.ImportMappingFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importmapping.model.dto.UpdateImportMappingDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importmapping.model.po.ImportMappingPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importmapping.model.vo.ImportMappingVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importmapping.service.ImportMappingService;
|
||||
import top.xyquan.ecomdmbbackend.utils.CurrentUserContext;
|
||||
|
||||
import java.util.List;
|
||||
+5
-5
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.controller;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importtask.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
@@ -8,10 +8,10 @@ import top.xyquan.ecomdmbbackend.common.annotation.RequireRole;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.common.response.ApiResponse;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importtask.CreateImportTaskDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importtask.ImportTaskFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ImportTaskVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ImportTaskService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.dto.CreateImportTaskDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.dto.ImportTaskFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.vo.ImportTaskVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.service.ImportTaskService;
|
||||
|
||||
/**
|
||||
* 导入任务管理控制器
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.controller;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importtask.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
@@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
|
||||
import top.xyquan.ecomdmbbackend.common.annotation.RequireRole;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.SseNotificationService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.service.SseNotificationService;
|
||||
import top.xyquan.ecomdmbbackend.utils.CurrentUserContext;
|
||||
|
||||
/**
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.mapper;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importtask.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ImportTaskPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.po.ImportTaskPO;
|
||||
|
||||
/**
|
||||
* 导入任务Mapper接口
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importtask;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importtask;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importtask;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importtask;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.po;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.vo;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importtask.service;
|
||||
|
||||
/**
|
||||
* 导入任务消费者服务接口
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importtask.service;
|
||||
|
||||
/**
|
||||
* 导入任务处理器服务接口
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importtask.service;
|
||||
|
||||
/**
|
||||
* 导入任务队列服务接口
|
||||
+5
-5
@@ -1,12 +1,12 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importtask.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importtask.CreateImportTaskDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importtask.ImportTaskFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ImportTaskPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ImportTaskVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.dto.CreateImportTaskDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.dto.ImportTaskFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.po.ImportTaskPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.vo.ImportTaskVO;
|
||||
|
||||
/**
|
||||
* 导入任务服务接口
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importtask.service;
|
||||
|
||||
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ImportTaskVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.vo.ImportTaskVO;
|
||||
|
||||
/**
|
||||
* SSE通知服务接口
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service.impl;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importtask.service.impl;
|
||||
|
||||
import jakarta.annotation.PostConstruct;
|
||||
import jakarta.annotation.PreDestroy;
|
||||
@@ -7,8 +7,8 @@ import org.slf4j.LoggerFactory;
|
||||
import org.springframework.data.redis.core.RedisTemplate;
|
||||
import org.springframework.stereotype.Service;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.config.ImportTaskQueueConfig;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ImportTaskConsumerService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ImportTaskProcessorService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.service.ImportTaskConsumerService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.service.ImportTaskProcessorService;
|
||||
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
+23
-23
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service.impl;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importtask.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||
@@ -11,28 +11,28 @@ import org.apache.commons.csv.CSVParser;
|
||||
import org.apache.commons.csv.CSVRecord;
|
||||
import org.springframework.stereotype.Service;
|
||||
import top.xyquan.ecomdmbbackend.common.exception.BusinessException;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.mapper.ShopProductRelationMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.shop.mapper.ShopProductRelationMapper;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.order.CreateOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ImportTaskPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ShopPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ProductSpecPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ShopProductRelationPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ImportTaskVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ImportTaskProcessorService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.mapper.OrderMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.mapper.ProductMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.OrderPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ProductPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.OrderVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ImportTaskService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.OrderService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ShopService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.OrderStatusPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.OrderStatusService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ProductService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ProductSpecService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.SseNotificationService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.dto.CreateOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.po.ImportTaskPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.shop.model.po.ShopPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.po.ProductSpecPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.shop.model.po.ShopProductRelationPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.vo.ImportTaskVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.service.ImportTaskProcessorService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.mapper.OrderMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.mapper.ProductMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.po.OrderPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.po.ProductPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.vo.OrderVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.service.ImportTaskService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.service.OrderService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.shop.service.ShopService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.model.po.OrderStatusPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.service.OrderStatusService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.service.ProductService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.service.ProductSpecService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.service.SseNotificationService;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
@@ -1131,7 +1131,7 @@ public class ImportTaskProcessorServiceImpl implements ImportTaskProcessorServic
|
||||
// 复用OrderService.createOrder的验证逻辑
|
||||
|
||||
// 验证店铺是否存在且属于当前公司
|
||||
top.xyquan.ecomdmbbackend.modules.ecom.model.po.ShopPO shop = shopService.getById(createOrderDTO.getShopId());
|
||||
top.xyquan.ecomdmbbackend.modules.ecom.shop.model.po.ShopPO shop = shopService.getById(createOrderDTO.getShopId());
|
||||
if (shop == null || !shop.getCompanyId().equals(companyId)) {
|
||||
throw new BusinessException("店铺不存在");
|
||||
}
|
||||
+4
-4
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service.impl;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importtask.service.impl;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
@@ -6,9 +6,9 @@ import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.data.redis.core.RedisTemplate;
|
||||
import org.springframework.stereotype.Service;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.config.ImportTaskQueueConfig;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ImportTaskPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ImportTaskQueueService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ImportTaskService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.po.ImportTaskPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.service.ImportTaskQueueService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.service.ImportTaskService;
|
||||
|
||||
/**
|
||||
* 导入任务队列服务实现类
|
||||
+8
-8
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service.impl;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importtask.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
@@ -11,13 +11,13 @@ import org.springframework.transaction.support.TransactionSynchronizationManager
|
||||
import org.springframework.util.StringUtils;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.mapper.ImportTaskMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importtask.CreateImportTaskDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importtask.ImportTaskFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ImportTaskPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ImportTaskVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ImportTaskQueueService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ImportTaskService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.mapper.ImportTaskMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.dto.CreateImportTaskDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.dto.ImportTaskFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.po.ImportTaskPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.vo.ImportTaskVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.service.ImportTaskQueueService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.service.ImportTaskService;
|
||||
import top.xyquan.ecomdmbbackend.utils.CurrentUserContext;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
+5
-5
@@ -1,14 +1,14 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service.impl;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importtask.service.impl;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ImportTaskPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ImportTaskVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ImportTaskService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.SseNotificationService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.po.ImportTaskPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.vo.ImportTaskVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.service.ImportTaskService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.service.SseNotificationService;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
+3
-3
@@ -1,10 +1,10 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.util;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.importtask.util;
|
||||
|
||||
import org.apache.commons.csv.CSVFormat;
|
||||
import org.apache.commons.csv.CSVParser;
|
||||
import org.apache.commons.csv.CSVRecord;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importtask.OrderImportMappingConfig;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importtask.OrderImportRow;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.dto.OrderImportMappingConfig;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.importtask.model.dto.OrderImportRow;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
+8
-8
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.controller;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.order.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
@@ -9,13 +9,13 @@ import top.xyquan.ecomdmbbackend.common.annotation.RequireRole;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.common.response.ApiResponse;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.order.BatchImportOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.order.CreateOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.order.OrderFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.order.UpdateOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.BatchImportResultVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.OrderVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.OrderService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.dto.BatchImportOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.dto.CreateOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.dto.OrderFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.dto.UpdateOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.vo.BatchImportResultVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.vo.OrderVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.service.OrderService;
|
||||
|
||||
/**
|
||||
* 订单管理控制器
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.mapper;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.order.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.OrderPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.po.OrderPO;
|
||||
|
||||
/**
|
||||
* 订单Mapper接口
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.order;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.order.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.Valid;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.order;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.order.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.order;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.order.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.order;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.order.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.po;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.order.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.vo;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.order.model.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.vo;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.order.model.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
+8
-8
@@ -1,15 +1,15 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.order.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.order.BatchImportOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.order.CreateOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.order.OrderFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.order.UpdateOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.OrderPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.BatchImportResultVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.OrderVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.dto.BatchImportOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.dto.CreateOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.dto.OrderFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.dto.UpdateOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.po.OrderPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.vo.BatchImportResultVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.vo.OrderVO;
|
||||
|
||||
/**
|
||||
* 订单服务接口
|
||||
+18
-18
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service.impl;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.order.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
@@ -10,23 +10,23 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
import top.xyquan.ecomdmbbackend.common.exception.BusinessException;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.mapper.OrderMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.order.BatchImportOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.order.CreateOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.order.OrderFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.order.UpdateOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.OrderPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ProductPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ProductSpecPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ShopPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.BatchImportResultVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.OrderVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.OrderStatusPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.OrderService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.OrderStatusService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ProductService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ProductSpecService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ShopService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.mapper.OrderMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.dto.BatchImportOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.dto.CreateOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.dto.OrderFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.dto.UpdateOrderDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.po.OrderPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.po.ProductPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.po.ProductSpecPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.shop.model.po.ShopPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.vo.BatchImportResultVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.vo.OrderVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.model.po.OrderStatusPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.service.OrderService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.service.OrderStatusService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.service.ProductService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.service.ProductSpecService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.shop.service.ShopService;
|
||||
import top.xyquan.ecomdmbbackend.utils.CurrentUserContext;
|
||||
|
||||
import java.util.ArrayList;
|
||||
+5
-5
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.controller;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
@@ -7,10 +7,10 @@ import jakarta.validation.Valid;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import top.xyquan.ecomdmbbackend.common.annotation.RequireRole;
|
||||
import top.xyquan.ecomdmbbackend.common.response.ApiResponse;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.orderstatus.CreateOrderStatusDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.orderstatus.UpdateOrderStatusDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.OrderStatusVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.OrderStatusService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.model.dto.CreateOrderStatusDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.model.dto.UpdateOrderStatusDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.model.vo.OrderStatusVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.service.OrderStatusService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.mapper;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.OrderStatusPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.model.po.OrderStatusPO;
|
||||
|
||||
/**
|
||||
* 订单状态Mapper接口
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.orderstatus;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.orderstatus;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.enums;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.model.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.po;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.vo;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.model.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
+5
-5
@@ -1,10 +1,10 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.orderstatus.CreateOrderStatusDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.orderstatus.UpdateOrderStatusDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.OrderStatusPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.OrderStatusVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.model.dto.CreateOrderStatusDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.model.dto.UpdateOrderStatusDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.model.po.OrderStatusPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.model.vo.OrderStatusVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
+7
-7
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service.impl;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
@@ -6,12 +6,12 @@ import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import top.xyquan.ecomdmbbackend.common.exception.BusinessException;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.mapper.OrderStatusMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.orderstatus.CreateOrderStatusDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.orderstatus.UpdateOrderStatusDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.OrderStatusPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.OrderStatusVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.OrderStatusService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.mapper.OrderStatusMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.model.dto.CreateOrderStatusDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.model.dto.UpdateOrderStatusDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.model.po.OrderStatusPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.model.vo.OrderStatusVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.service.OrderStatusService;
|
||||
import top.xyquan.ecomdmbbackend.utils.CurrentUserContext;
|
||||
|
||||
import java.util.List;
|
||||
+4
-4
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.controller;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.overview.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
@@ -6,9 +6,9 @@ import jakarta.validation.Valid;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import top.xyquan.ecomdmbbackend.common.annotation.RequireRole;
|
||||
import top.xyquan.ecomdmbbackend.common.response.ApiResponse;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.overview.CompanyOverviewQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.CompanyOverviewVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.CompanyOverviewService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.overview.model.dto.CompanyOverviewQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.overview.model.vo.CompanyOverviewVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.overview.service.CompanyOverviewService;
|
||||
|
||||
/**
|
||||
* 全店铺概览控制器
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.overview;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.overview.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.overview;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.overview.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.vo;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.overview.model.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.vo;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.overview.model.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.overview.service;
|
||||
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.overview.CompanyOverviewQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.CompanyOverviewVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.overview.model.dto.CompanyOverviewQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.overview.model.vo.CompanyOverviewVO;
|
||||
|
||||
/**
|
||||
* 全店铺概览服务接口
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.overview.service;
|
||||
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.overview.ShopOverviewQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ShopOverviewStatisticsVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.overview.model.dto.ShopOverviewQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.overview.model.vo.ShopOverviewStatisticsVO;
|
||||
|
||||
/**
|
||||
* 单店铺概览统计服务接口
|
||||
+16
-16
@@ -1,23 +1,23 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service.impl;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.overview.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
import top.xyquan.ecomdmbbackend.common.exception.BusinessException;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.mapper.BrushOrderMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.mapper.OrderMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.mapper.PromotionFeeMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.mapper.ShopMonthlyTargetMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.overview.CompanyOverviewQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.BrushOrderPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.OrderPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.OrderStatusPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.PromotionFeePO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ShopMonthlyTargetPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ShopPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.CompanyOverviewVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.CompanyOverviewService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.OrderStatusService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ShopService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.brushorder.mapper.BrushOrderMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.mapper.OrderMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.promotion.mapper.PromotionFeeMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.shopmonthlytarget.mapper.ShopMonthlyTargetMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.overview.model.dto.CompanyOverviewQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.brushorder.model.po.BrushOrderPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.po.OrderPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.model.po.OrderStatusPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.promotion.model.po.PromotionFeePO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.shopmonthlytarget.model.po.ShopMonthlyTargetPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.shop.model.po.ShopPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.overview.model.vo.CompanyOverviewVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.overview.service.CompanyOverviewService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.service.OrderStatusService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.shop.service.ShopService;
|
||||
import top.xyquan.ecomdmbbackend.utils.CurrentUserContext;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
+18
-18
@@ -1,25 +1,25 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service.impl;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.overview.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
import top.xyquan.ecomdmbbackend.common.exception.BusinessException;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.mapper.BrushOrderMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.mapper.OrderMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.mapper.PromotionFeeMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.mapper.ShopMonthlyTargetMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.overview.ShopOverviewQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.BrushOrderPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.OrderPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.OrderStatusPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ProductPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.PromotionFeePO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ShopMonthlyTargetPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ShopPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ShopOverviewStatisticsVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.OrderStatusService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ProductService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ShopOverviewStatisticsService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ShopService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.brushorder.mapper.BrushOrderMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.mapper.OrderMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.promotion.mapper.PromotionFeeMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.shopmonthlytarget.mapper.ShopMonthlyTargetMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.overview.model.dto.ShopOverviewQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.brushorder.model.po.BrushOrderPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.order.model.po.OrderPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.model.po.OrderStatusPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.po.ProductPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.promotion.model.po.PromotionFeePO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.shopmonthlytarget.model.po.ShopMonthlyTargetPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.shop.model.po.ShopPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.overview.model.vo.ShopOverviewStatisticsVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.orderstatus.service.OrderStatusService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.service.ProductService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.overview.service.ShopOverviewStatisticsService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.shop.service.ShopService;
|
||||
import top.xyquan.ecomdmbbackend.utils.CurrentUserContext;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
+6
-6
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.controller;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.product.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
@@ -9,11 +9,11 @@ import top.xyquan.ecomdmbbackend.common.annotation.RequireRole;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.common.response.ApiResponse;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product.CreateProductDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product.ProductFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product.UpdateProductDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ProductVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ProductService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto.CreateProductDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto.ProductFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto.UpdateProductDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.vo.ProductVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.service.ProductService;
|
||||
|
||||
/**
|
||||
* 商品管理控制器
|
||||
+8
-8
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.controller;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.product.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
@@ -11,13 +11,13 @@ import top.xyquan.ecomdmbbackend.common.annotation.RequireRole;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.common.response.ApiResponse;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product.CreateProductSpecDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product.ProductSpecFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product.UpdateProductSpecDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ProductSpecVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ProductVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ProductSpecService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ProductSpecService.ProductSpecQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto.CreateProductSpecDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto.ProductSpecFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto.UpdateProductSpecDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.vo.ProductSpecVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.vo.ProductVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.service.ProductSpecService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.service.ProductSpecService.ProductSpecQueryDTO;
|
||||
|
||||
/**
|
||||
* 商品规格管理控制器
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.mapper;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.product.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ProductPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.po.ProductPO;
|
||||
|
||||
/**
|
||||
* 商品Mapper接口
|
||||
+3
-3
@@ -1,12 +1,12 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.mapper;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.product.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ProductSpecPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product.ProductSpecFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.po.ProductSpecPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto.ProductSpecFilterDTO;
|
||||
|
||||
/**
|
||||
* 商品规格Mapper
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.Valid;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.Valid;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.po;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.product.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.po;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.product.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.vo;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.product.model.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.vo;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.product.model.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
+6
-6
@@ -1,14 +1,14 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product.CreateProductDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product.ProductFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product.UpdateProductDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ProductPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto.CreateProductDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto.ProductFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto.UpdateProductDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.po.ProductPO;
|
||||
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ProductVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.vo.ProductVO;
|
||||
|
||||
/**
|
||||
* 商品服务接口
|
||||
+7
-7
@@ -1,14 +1,14 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product.CreateProductSpecDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product.ProductSpecFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product.UpdateProductSpecDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ProductSpecPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ProductSpecVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ProductVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto.CreateProductSpecDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto.ProductSpecFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto.UpdateProductSpecDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.po.ProductSpecPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.vo.ProductSpecVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.vo.ProductVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
+13
-13
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service.impl;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.product.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
@@ -11,18 +11,18 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
import top.xyquan.ecomdmbbackend.common.exception.BusinessException;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.mapper.ProductMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product.CreateProductDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product.ProductFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product.UpdateProductDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ProductPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ProductSpecPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ProductVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ProductSpecVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ProductService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ProductSpecService;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.mapper.SysFileMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.po.SysFilePO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.mapper.ProductMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto.CreateProductDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto.ProductFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto.UpdateProductDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.po.ProductPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.po.ProductSpecPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.vo.ProductVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.vo.ProductSpecVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.service.ProductService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.service.ProductSpecService;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.file.mapper.SysFileMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.file.model.po.SysFilePO;
|
||||
import top.xyquan.ecomdmbbackend.utils.CurrentUserContext;
|
||||
import top.xyquan.ecomdmbbackend.utils.SysFileUtils;
|
||||
|
||||
+11
-11
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.service.impl;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.product.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
@@ -10,16 +10,16 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
import top.xyquan.ecomdmbbackend.common.exception.BusinessException;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.mapper.ProductSpecMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product.CreateProductSpecDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product.ProductSpecFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product.UpdateProductSpecDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ProductPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ProductSpecPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ProductSpecVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ProductVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ProductService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.ProductSpecService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.mapper.ProductSpecMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto.CreateProductSpecDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto.ProductSpecFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.dto.UpdateProductSpecDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.po.ProductPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.po.ProductSpecPO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.vo.ProductSpecVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.model.vo.ProductVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.service.ProductService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.product.service.ProductSpecService;
|
||||
import top.xyquan.ecomdmbbackend.utils.CurrentUserContext;
|
||||
|
||||
import java.util.List;
|
||||
+6
-6
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.controller;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.promotion.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
@@ -10,11 +10,11 @@ import top.xyquan.ecomdmbbackend.common.annotation.RequireRole;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.common.response.ApiResponse;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.promotion.CreatePromotionFeeDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.promotion.PromotionFeeFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.promotion.UpdatePromotionFeeDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.PromotionFeeVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.PromotionFeeService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.promotion.model.dto.CreatePromotionFeeDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.promotion.model.dto.PromotionFeeFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.promotion.model.dto.UpdatePromotionFeeDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.promotion.model.vo.PromotionFeeVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.promotion.service.PromotionFeeService;
|
||||
|
||||
/**
|
||||
* 推广费记录控制器
|
||||
+5
-5
@@ -1,4 +1,4 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.controller;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.promotion.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
@@ -7,10 +7,10 @@ import jakarta.validation.Valid;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import top.xyquan.ecomdmbbackend.common.response.ApiResponse;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.promotion.CreatePromotionFeeTypeDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.promotion.UpdatePromotionFeeTypeDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.PromotionFeeTypeVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.service.PromotionFeeTypeService;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.promotion.model.dto.CreatePromotionFeeTypeDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.promotion.model.dto.UpdatePromotionFeeTypeDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.promotion.model.vo.PromotionFeeTypeVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.promotion.service.PromotionFeeTypeService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
+3
-3
@@ -1,12 +1,12 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.mapper;
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.promotion.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.PromotionFeePO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.promotion.PromotionFeeFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.promotion.model.po.PromotionFeePO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.promotion.model.dto.PromotionFeeFilterDTO;
|
||||
|
||||
/**
|
||||
* 推广费记录Mapper
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user