From 4307d83fec92336a718015dfef43efca98f29285 Mon Sep 17 00:00:00 2001 From: ah--desktop Date: Wed, 29 Oct 2025 23:04:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BB=99=E5=89=A9=E4=BD=99=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=B1=82=E6=96=B9=E6=B3=95=E8=A1=A5=E4=B8=8A=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/ImportRuleServiceImpl.java | 45 ++++++++++++++++ .../ecom/service/impl/OrderServiceImpl.java | 30 +++++++++++ .../service/impl/OrderStatusServiceImpl.java | 32 ++++++++++++ .../ecom/service/impl/ProductServiceImpl.java | 35 +++++++++++++ .../service/impl/ProductSpecServiceImpl.java | 35 ++++++++++++- .../service/impl/PromotionFeeServiceImpl.java | 23 ++++++++ .../impl/PromotionFeeTypeServiceImpl.java | 33 ++++++++++++ .../ecom/service/impl/ShopServiceImpl.java | 35 +++++++++++++ .../service/impl/MediaFileServiceImpl.java | 35 +++++++++++++ .../service/impl/MediaImageServiceImpl.java | 52 +++++++++++++++++++ .../org/service/impl/PositionServiceImpl.java | 26 ++++++++++ .../service/impl/SuperAccountServiceImpl.java | 25 +++++++++ .../service/impl/PlanPricingServiceImpl.java | 20 +++++++ .../sub/service/impl/PlanServiceImpl.java | 20 +++++++ .../service/impl/SubscriptionServiceImpl.java | 20 +++++++ 15 files changed, 465 insertions(+), 1 deletion(-) diff --git a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/ImportRuleServiceImpl.java b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/ImportRuleServiceImpl.java index 95af4351..922dfd3b 100644 --- a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/ImportRuleServiceImpl.java +++ b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/ImportRuleServiceImpl.java @@ -35,6 +35,11 @@ public class ImportRuleServiceImpl extends ServiceImpl getImportRulePage(PageQueryDTO pageQueryDTO) { Long companyId = currentUserContext.getCurrentCompanyId(); @@ -167,6 +192,11 @@ public class ImportRuleServiceImpl extends ServiceImpl(voList, pageResult.getTotal(), pageQueryDTO.getPage(), pageQueryDTO.getPageSize()); } + /** + * 根据类型查询导入规则 + * @param ruleType 类型 + * @return 导入规则VO列表 + */ @Override public List getImportRulesByType(String ruleType) { Long companyId = currentUserContext.getCurrentCompanyId(); @@ -183,6 +213,10 @@ public class ImportRuleServiceImpl extends ServiceImpl getActiveImportRules() { Long companyId = currentUserContext.getCurrentCompanyId(); @@ -199,6 +233,11 @@ public class ImportRuleServiceImpl extends ServiceImpl implemen this.productSpecService = productSpecService; } + /** + * 创建订单 + * @param createOrderDTO 创建订单DTO + * @return 订单VO + */ @Override @Transactional public OrderVO createOrder(CreateOrderDTO createOrderDTO) { @@ -114,6 +119,12 @@ public class OrderServiceImpl extends ServiceImpl implemen return convertToVO(order); } + /** + * 更新订单 + * @param updateOrderDTO 更新订单DTO + * @param id 订单ID + * @return 订单VO + */ @Override @Transactional public OrderVO updateOrder(UpdateOrderDTO updateOrderDTO, Long id) { @@ -159,6 +170,10 @@ public class OrderServiceImpl extends ServiceImpl implemen return convertToVO(order); } + /** + * 删除订单 + * @param id 订单ID + */ @Override @Transactional public void deleteOrder(Long id) { @@ -175,6 +190,11 @@ public class OrderServiceImpl extends ServiceImpl implemen this.removeById(id); } + /** + * 获取订单分页列表 + * @param pageQueryDTO 分页查询DTO + * @return 分页结果VO + */ @Override public PageResultVO getOrderPage(PageQueryDTO pageQueryDTO) { // 从token中获取公司ID @@ -229,6 +249,11 @@ public class OrderServiceImpl extends ServiceImpl implemen return PageResultVO.create(voList, pageResult.getTotal(), pageQueryDTO.getPage(), pageQueryDTO.getPageSize()); } + /** + * 根据ID查询订单 + * @param id 订单ID + * @return 订单VO + */ @Override public OrderVO getOrderById(Long id) { // 从token中获取公司ID @@ -244,6 +269,11 @@ public class OrderServiceImpl extends ServiceImpl implemen return convertToVO(order); } + /** + * 批量导入订单 + * @param batchImportOrderDTO 批量导入订单DTO + * @return 批量导入结果VO + */ @Override @Transactional public BatchImportResultVO batchImportOrders(BatchImportOrderDTO batchImportOrderDTO) { diff --git a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/OrderStatusServiceImpl.java b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/OrderStatusServiceImpl.java index 61f09bd8..19d6faa1 100644 --- a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/OrderStatusServiceImpl.java +++ b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/OrderStatusServiceImpl.java @@ -26,6 +26,11 @@ public class OrderStatusServiceImpl implements OrderStatusService { private final OrderStatusMapper orderStatusMapper; private final CurrentUserContext currentUserContext; + /** + * 创建订单状态 + * @param dto 创建订单状态DTO + * @return 订单状态ID + */ @Override @Transactional(rollbackFor = Exception.class) public Long createOrderStatus(CreateOrderStatusDTO dto) { @@ -47,6 +52,10 @@ public class OrderStatusServiceImpl implements OrderStatusService { return po.getId(); } + /** + * 更新订单状态 + * @param dto 更新订单状态DTO + */ @Override @Transactional(rollbackFor = Exception.class) public void updateOrderStatus(UpdateOrderStatusDTO dto) { @@ -57,6 +66,10 @@ public class OrderStatusServiceImpl implements OrderStatusService { orderStatusMapper.updateById(po); } + /** + * 删除订单状态 + * @param id 订单状态ID + */ @Override @Transactional(rollbackFor = Exception.class) public void deleteOrderStatus(Long id) { @@ -64,6 +77,11 @@ public class OrderStatusServiceImpl implements OrderStatusService { orderStatusMapper.deleteById(id); } + /** + * 根据ID查询订单状态 + * @param id 订单状态ID + * @return 订单状态VO + */ @Override public OrderStatusVO getOrderStatusById(Long id) { OrderStatusPO po = orderStatusMapper.selectById(id); @@ -76,6 +94,10 @@ public class OrderStatusServiceImpl implements OrderStatusService { return vo; } + /** + * 获取所有启用的订单状态列表 + * @return 订单状态VO列表 + */ @Override public List getActiveOrderStatusList() { LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); @@ -93,6 +115,10 @@ public class OrderStatusServiceImpl implements OrderStatusService { .collect(Collectors.toList()); } + /** + * 获取所有订单状态列表 + * @return 订单状态VO列表 + */ @Override public List getAllOrderStatusList() { LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); @@ -111,6 +137,7 @@ public class OrderStatusServiceImpl implements OrderStatusService { /** * 初始化公司订单状态数据 + * @param companyId 公司ID */ @Override @Transactional(rollbackFor = Exception.class) @@ -153,6 +180,11 @@ public class OrderStatusServiceImpl implements OrderStatusService { /** * 创建订单状态PO对象 + * @param companyId 公司ID + * @param statusName 状态名称 + * @param description 描述 + * @param sortOrder 排序 + * @return 订单状态PO对象 */ private OrderStatusPO createOrderStatusPO(Long companyId, String statusName, String description, Integer sortOrder) { OrderStatusPO po = new OrderStatusPO(); diff --git a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/ProductServiceImpl.java b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/ProductServiceImpl.java index 03a829d6..12b86ff1 100644 --- a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/ProductServiceImpl.java +++ b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/ProductServiceImpl.java @@ -45,6 +45,11 @@ public class ProductServiceImpl extends ServiceImpl im this.productSpecService = productSpecService; } + /** + * 创建商品 + * @param createProductDTO 创建商品DTO + * @return 商品VO + */ @Override @Transactional public ProductVO createProduct(CreateProductDTO createProductDTO) { @@ -86,6 +91,12 @@ public class ProductServiceImpl extends ServiceImpl im return convertToVO(product); } + /** + * 更新商品 + * @param updateProductDTO 更新商品DTO + * @param id 商品ID + * @return 商品VO + */ @Override @Transactional public ProductVO updateProduct(UpdateProductDTO updateProductDTO, Long id) { @@ -133,6 +144,10 @@ public class ProductServiceImpl extends ServiceImpl im return convertToVO(product); } + /** + * 删除商品 + * @param id 商品ID + */ @Override @Transactional public void deleteProduct(Long id) { @@ -149,6 +164,11 @@ public class ProductServiceImpl extends ServiceImpl im this.removeById(id); } + /** + * 获取商品分页列表 + * @param pageQueryDTO 分页查询DTO + * @return 分页结果VO + */ @Override public PageResultVO getProductPage(PageQueryDTO pageQueryDTO) { // 从token中获取公司ID @@ -184,6 +204,11 @@ public class ProductServiceImpl extends ServiceImpl im return PageResultVO.create(voList, pageResult.getTotal(), pageQueryDTO.getPage(), pageQueryDTO.getPageSize()); } + /** + * 创建商品并创建商品规格 + * @param createProductWithSpecsDTO 创建商品并创建商品规格DTO + * @return 商品VO + */ @Override @Transactional public ProductVO createProductWithSpecs(CreateProductWithSpecsDTO createProductWithSpecsDTO) { @@ -258,6 +283,11 @@ public class ProductServiceImpl extends ServiceImpl im return productVO; } + /** + * 根据名称查询商品 + * @param name 商品名称 + * @return 商品VO + */ @Override public ProductVO getProductByName(String name) { // 从token中获取公司ID @@ -276,6 +306,11 @@ public class ProductServiceImpl extends ServiceImpl im return convertToVO(product); } + /** + * 根据名称列表查询商品 + * @param names 商品名称列表 + * @return 商品VO列表 + */ @Override public List getProductsByNames(List names) { if (names == null || names.isEmpty()) { diff --git a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/ProductSpecServiceImpl.java b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/ProductSpecServiceImpl.java index 1395eba4..8f7764fa 100644 --- a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/ProductSpecServiceImpl.java +++ b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/ProductSpecServiceImpl.java @@ -39,6 +39,11 @@ public class ProductSpecServiceImpl extends ServiceImpl getProductSpecPage(PageQueryDTO pageQueryDTO) { // 从token中获取公司ID @@ -171,6 +191,12 @@ public class ProductSpecServiceImpl extends ServiceImpl getProductSpecsByProductAndSpecs(List queries) { if (queries == null || queries.isEmpty()) { @@ -289,7 +320,9 @@ public class ProductSpecServiceImpl extends ServiceImpl getPromotionFeePage(PageQueryDTO pageQueryDTO) { // 从token中获取公司ID diff --git a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/PromotionFeeTypeServiceImpl.java b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/PromotionFeeTypeServiceImpl.java index 7b320b9e..78ef0de2 100644 --- a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/PromotionFeeTypeServiceImpl.java +++ b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/PromotionFeeTypeServiceImpl.java @@ -26,6 +26,11 @@ public class PromotionFeeTypeServiceImpl implements PromotionFeeTypeService { private final PromotionFeeTypeMapper promotionFeeTypeMapper; private final CurrentUserContext currentUserContext; + /** + * 创建推广费类型 + * @param dto 创建推广费类型DTO + * @return 推广费类型ID + */ @Override @Transactional(rollbackFor = Exception.class) public Long createPromotionFeeType(CreatePromotionFeeTypeDTO dto) { @@ -47,6 +52,10 @@ public class PromotionFeeTypeServiceImpl implements PromotionFeeTypeService { return po.getId(); } + /** + * 更新推广费类型 + * @param dto 更新推广费类型DTO + */ @Override @Transactional(rollbackFor = Exception.class) public void updatePromotionFeeType(UpdatePromotionFeeTypeDTO dto) { @@ -57,6 +66,10 @@ public class PromotionFeeTypeServiceImpl implements PromotionFeeTypeService { promotionFeeTypeMapper.updateById(po); } + /** + * 删除推广费类型 + * @param id 推广费类型ID + */ @Override @Transactional(rollbackFor = Exception.class) public void deletePromotionFeeType(Long id) { @@ -64,6 +77,11 @@ public class PromotionFeeTypeServiceImpl implements PromotionFeeTypeService { promotionFeeTypeMapper.deleteById(id); } + /** + * 根据ID查询推广费类型 + * @param id 推广费类型ID + * @return 推广费类型VO + */ @Override public PromotionFeeTypeVO getPromotionFeeTypeById(Long id) { PromotionFeeTypePO po = promotionFeeTypeMapper.selectById(id); @@ -98,6 +116,10 @@ public class PromotionFeeTypeServiceImpl implements PromotionFeeTypeService { return vo; } + /** + * 获取所有启用的推广费类型列表 + * @return 推广费类型VO列表 + */ @Override public List getActivePromotionFeeTypeList() { LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); @@ -137,6 +159,10 @@ public class PromotionFeeTypeServiceImpl implements PromotionFeeTypeService { .collect(Collectors.toList()); } + /** + * 获取所有推广费类型列表 + * @return 推广费类型VO列表 + */ @Override public List getAllPromotionFeeTypeList() { LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); @@ -177,6 +203,7 @@ public class PromotionFeeTypeServiceImpl implements PromotionFeeTypeService { /** * 初始化公司推广费类型数据 + * @param companyId 公司ID */ @Override @Transactional(rollbackFor = Exception.class) @@ -221,6 +248,12 @@ public class PromotionFeeTypeServiceImpl implements PromotionFeeTypeService { /** * 创建推广费类型PO对象 + * @param companyId 公司ID + * @param typeName 类型名称 + * @param description 描述 + * @param calculationMethod 计算方式 + * @param sortOrder 排序 + * @return 推广费类型PO对象 */ private PromotionFeeTypePO createPromotionFeeTypePO(Long companyId, String typeName, String description, Integer calculationMethod, Integer sortOrder) { PromotionFeeTypePO po = new PromotionFeeTypePO(); diff --git a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/ShopServiceImpl.java b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/ShopServiceImpl.java index c621c76b..e609fa67 100644 --- a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/ShopServiceImpl.java +++ b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/ShopServiceImpl.java @@ -39,6 +39,11 @@ public class ShopServiceImpl extends ServiceImpl implements this.mediaImageService = mediaImageService; } + /** + * 创建店铺 + * @param createShopDTO 创建店铺DTO + * @return 店铺VO + */ @Override @Transactional public ShopVO createShop(CreateShopDTO createShopDTO) { @@ -79,6 +84,12 @@ public class ShopServiceImpl extends ServiceImpl implements return convertToVO(shop); } + /** + * 更新店铺 + * @param updateShopDTO 更新店铺DTO + * @param id 店铺ID + * @return 店铺VO + */ @Override @Transactional public ShopVO updateShop(UpdateShopDTO updateShopDTO, Long id) { @@ -125,6 +136,10 @@ public class ShopServiceImpl extends ServiceImpl implements return convertToVO(shop); } + /** + * 删除店铺 + * @param id 店铺ID + */ @Override @Transactional public void deleteShop(Long id) { @@ -141,6 +156,11 @@ public class ShopServiceImpl extends ServiceImpl implements this.removeById(id); } + /** + * 获取店铺分页列表 + * @param pageQueryDTO 分页查询DTO + * @return 分页结果VO + */ @Override public PageResultVO getShopPage(PageQueryDTO pageQueryDTO) { // 从token中获取公司ID @@ -179,12 +199,22 @@ public class ShopServiceImpl extends ServiceImpl implements return PageResultVO.create(voList, pageResult.getTotal(), pageQueryDTO.getPage(), pageQueryDTO.getPageSize()); } + /** + * 上传Logo + * @param file 文件 + * @return Logo图片VO + */ @Override public MediaImageVO uploadLogo(MultipartFile file) { // 上传Logo到媒体模块(支持哈希校验和跨公司共享) return mediaImageService.uploadImageWithType(file, "logo"); } + /** + * 根据名称获取店铺 + * @param name 店铺名称 + * @return 店铺VO + */ @Override public ShopVO getShopByName(String name) { // 从token中获取公司ID @@ -203,6 +233,11 @@ public class ShopServiceImpl extends ServiceImpl implements return convertToVO(shop); } + /** + * 根据名称列表获取店铺列表 + * @param names 店铺名称列表 + * @return 店铺VO列表 + */ @Override public List getShopsByNames(List names) { if (names == null || names.isEmpty()) { diff --git a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/media/service/impl/MediaFileServiceImpl.java b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/media/service/impl/MediaFileServiceImpl.java index 79fddf41..423bb7d6 100644 --- a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/media/service/impl/MediaFileServiceImpl.java +++ b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/media/service/impl/MediaFileServiceImpl.java @@ -38,6 +38,11 @@ public class MediaFileServiceImpl extends ServiceImpl batchUploadFiles(List files) { @@ -109,6 +119,12 @@ public class MediaFileServiceImpl extends ServiceImpl getFilesByHashes(List fileHashes) { if (fileHashes == null || fileHashes.isEmpty()) { @@ -197,6 +227,11 @@ public class MediaFileServiceImpl extends ServiceImpl getFilePage(PageQueryDTO pageQueryDTO) { // 从token中获取公司ID diff --git a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/media/service/impl/MediaImageServiceImpl.java b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/media/service/impl/MediaImageServiceImpl.java index 2179e272..88c87583 100644 --- a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/media/service/impl/MediaImageServiceImpl.java +++ b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/media/service/impl/MediaImageServiceImpl.java @@ -38,6 +38,11 @@ public class MediaImageServiceImpl extends ServiceImpl batchUploadImages(List files) { @@ -113,6 +123,12 @@ public class MediaImageServiceImpl extends ServiceImpl getImagesByHashes(List fileHashes) { if (fileHashes == null || fileHashes.isEmpty()) { @@ -210,6 +245,11 @@ public class MediaImageServiceImpl extends ServiceImpl getImagePage(PageQueryDTO pageQueryDTO) { // 从token中获取公司ID @@ -255,6 +295,12 @@ public class MediaImageServiceImpl extends ServiceImpl this.currentUserContext = currentUserContext; } + /** + * 创建岗位 + * @param createPositionDTO 创建岗位DTO + * @return 岗位VO + */ @Override @Transactional public PositionVO createPosition(CreatePositionDTO createPositionDTO) { @@ -70,6 +75,12 @@ public class PositionServiceImpl extends ServiceImpl return convertToVO(position); } + /** + * 更新岗位 + * @param updatePositionDTO 更新岗位DTO + * @param id 岗位ID + * @return 岗位VO + */ @Override @Transactional public PositionVO updatePosition(UpdatePositionDTO updatePositionDTO, Long id) { @@ -112,6 +123,10 @@ public class PositionServiceImpl extends ServiceImpl return convertToVO(position); } + /** + * 删除岗位 + * @param id 岗位ID + */ @Override public void deletePosition(Long id) { // 从token中获取公司ID @@ -132,6 +147,11 @@ public class PositionServiceImpl extends ServiceImpl this.removeById(id); } + /** + * 获取岗位分页列表 + * @param pageQueryDTO 分页查询DTO + * @return 分页结果VO + */ @Override public PageResultVO getPositionPage(PageQueryDTO pageQueryDTO) { // 从token中获取公司ID @@ -170,6 +190,12 @@ public class PositionServiceImpl extends ServiceImpl return result; } + /** + * 为指定公司创建岗位 + * @param createPositionDTO 创建岗位DTO + * @param companyId 公司ID + * @return 岗位VO + */ @Override @Transactional public PositionVO createPositionForCompany(CreatePositionDTO createPositionDTO, Long companyId) { diff --git a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/org/service/impl/SuperAccountServiceImpl.java b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/org/service/impl/SuperAccountServiceImpl.java index 8e3c159c..27054914 100644 --- a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/org/service/impl/SuperAccountServiceImpl.java +++ b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/org/service/impl/SuperAccountServiceImpl.java @@ -39,6 +39,11 @@ public class SuperAccountServiceImpl extends ServiceImpl imp this.currentUserContext = currentUserContext; } + /** + * 创建账户(超管接口) + * @param superCreateAccountDTO 创建账户DTO + * @return 账户VO + */ @Override public AccountVO createAccount(SuperCreateAccountDTO superCreateAccountDTO) { // 验证登录账号是否已存在 @@ -75,6 +80,12 @@ public class SuperAccountServiceImpl extends ServiceImpl imp return convertToVO(user); } + /** + * 更新账户信息(超管接口) + * @param superUpdateAccountDTO 更新账户DTO + * @param accountId 账户ID + * @return 账户VO + */ @Override public AccountVO updateAccount(SuperUpdateAccountDTO superUpdateAccountDTO, Long accountId) { // 查询账户 @@ -146,6 +157,10 @@ public class SuperAccountServiceImpl extends ServiceImpl imp return convertToVO(user); } + /** + * 删除账户(逻辑删除) + * @param accountId 账户ID + */ @Override public void deleteAccount(Long accountId) { // 查询账户 @@ -160,6 +175,11 @@ public class SuperAccountServiceImpl extends ServiceImpl imp this.updateById(user); } + /** + * 获取账户详情 + * @param accountId 账户ID + * @return 账户详情 + */ @Override public AccountVO getAccountDetail(Long accountId) { // 查询账户 @@ -172,6 +192,11 @@ public class SuperAccountServiceImpl extends ServiceImpl imp return convertToVO(user); } + /** + * 分页查询账户(超管接口) + * @param pageQuery 分页查询DTO + * @return 分页结果VO + */ @Override public PageResultVO getAccountPage(PageQueryDTO pageQuery) { // 构建查询条件 diff --git a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/sub/service/impl/PlanPricingServiceImpl.java b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/sub/service/impl/PlanPricingServiceImpl.java index c5931f1e..75317f6f 100644 --- a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/sub/service/impl/PlanPricingServiceImpl.java +++ b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/sub/service/impl/PlanPricingServiceImpl.java @@ -36,6 +36,11 @@ public class PlanPricingServiceImpl extends ServiceImpl getPlanPricingPage(PageQueryDTO pageQueryDTO) { // 构建查询条件 diff --git a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/sub/service/impl/PlanServiceImpl.java b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/sub/service/impl/PlanServiceImpl.java index 4a7073ae..f9c2e90c 100644 --- a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/sub/service/impl/PlanServiceImpl.java +++ b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/sub/service/impl/PlanServiceImpl.java @@ -29,6 +29,11 @@ import java.util.List; @Service public class PlanServiceImpl extends ServiceImpl implements PlanService { + /** + * 创建套餐 + * @param createPlanDTO 创建套餐DTO + * @return 套餐VO + */ @Override @Transactional public PlanVO createPlan(CreatePlanDTO createPlanDTO) { @@ -64,6 +69,12 @@ public class PlanServiceImpl extends ServiceImpl implements return convertToVO(plan); } + /** + * 更新套餐 + * @param updatePlanDTO 更新套餐DTO + * @param planId 套餐ID + * @return 套餐VO + */ @Override @Transactional public PlanVO updatePlan(UpdatePlanDTO updatePlanDTO, Long planId) { @@ -101,6 +112,10 @@ public class PlanServiceImpl extends ServiceImpl implements return convertToVO(plan); } + /** + * 删除套餐 + * @param id 套餐ID + */ @Override public void deletePlan(Long id) { // 检查套餐是否存在 @@ -113,6 +128,11 @@ public class PlanServiceImpl extends ServiceImpl implements this.removeById(id); } + /** + * 获取套餐分页列表 + * @param pageQueryDTO 分页查询DTO + * @return 分页结果VO + */ @Override public PageResultVO getPlanPage(PageQueryDTO pageQueryDTO) { // 构建查询条件 diff --git a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/sub/service/impl/SubscriptionServiceImpl.java b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/sub/service/impl/SubscriptionServiceImpl.java index 2c8651ee..072f4668 100644 --- a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/sub/service/impl/SubscriptionServiceImpl.java +++ b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/sub/service/impl/SubscriptionServiceImpl.java @@ -37,6 +37,11 @@ public class SubscriptionServiceImpl extends ServiceImpl getSubscriptionPage(PageQueryDTO pageQueryDTO) { // 构建查询条件