From 5f49434239c64cebb99e51f115d09fdb5fdbaae4 Mon Sep 17 00:00:00 2001 From: axindata <1851789500@qq.com> Date: Wed, 19 Feb 2025 10:58:55 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=BB=A3=E7=A0=81=E5=AE=8C?= =?UTF-8?q?=E5=96=84=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/controller/PmsProductController.java | 26 ------------------- .../mall/service/PmsProductService.java | 11 -------- .../service/impl/PmsProductServiceImpl.java | 20 -------------- .../com/buy507/mall/model/PmsProduct.java | 14 +++++----- .../buy507/mall/mapper/PmsProductMapper.xml | 9 +++++++ 5 files changed, 16 insertions(+), 64 deletions(-) diff --git a/mall-admin/src/main/java/com/buy507/mall/controller/PmsProductController.java b/mall-admin/src/main/java/com/buy507/mall/controller/PmsProductController.java index 47f7d31..91572b5 100644 --- a/mall-admin/src/main/java/com/buy507/mall/controller/PmsProductController.java +++ b/mall-admin/src/main/java/com/buy507/mall/controller/PmsProductController.java @@ -138,32 +138,6 @@ public class PmsProductController { } } - @ApiOperation("批量设为积分专区") - @RequestMapping(value = "/update/integrationStatus", method = RequestMethod.POST) - @ResponseBody - public CommonResult updateIntegrationStatus(@RequestParam("ids") List ids, - @RequestParam("pointsAreaStatus") Integer pointsAreaStatus) { - int count = productService.updatepointsAreaStatus(ids, pointsAreaStatus); - if (count > 0) { - return CommonResult.success(count); - } else { - return CommonResult.failed(); - } - } - - @ApiOperation("批量设为积分兑换专区") - @RequestMapping(value = "/update/integrationExchangeStatus", method = RequestMethod.POST) - @ResponseBody - public CommonResult updateIntegrationExchangeStatus(@RequestParam("ids") List ids, - @RequestParam("pointsExchangeStatus") Integer pointsExchangeStatus) { - int count = productService.updatepointsExchangeStatus(ids, pointsExchangeStatus); - if (count > 0) { - return CommonResult.success(count); - } else { - return CommonResult.failed(); - } - } - @ApiOperation("批量修改删除状态") @RequestMapping(value = "/update/deleteStatus", method = RequestMethod.POST) @ResponseBody diff --git a/mall-admin/src/main/java/com/buy507/mall/service/PmsProductService.java b/mall-admin/src/main/java/com/buy507/mall/service/PmsProductService.java index 0deaeec..1bd588e 100644 --- a/mall-admin/src/main/java/com/buy507/mall/service/PmsProductService.java +++ b/mall-admin/src/main/java/com/buy507/mall/service/PmsProductService.java @@ -60,17 +60,6 @@ public interface PmsProductService { */ int updateNewStatus(List ids, Integer newStatus); - /** - *批量设为积分专区 - */ - int updatepointsAreaStatus(List ids, Integer pointsAreaStatus); - - /** - * 批量设为积分兑换专区 - */ - int updatepointsExchangeStatus(List ids, Integer pointsExchangeStatus); - - /** * 批量删除商品 */ diff --git a/mall-admin/src/main/java/com/buy507/mall/service/impl/PmsProductServiceImpl.java b/mall-admin/src/main/java/com/buy507/mall/service/impl/PmsProductServiceImpl.java index 1908424..4202d64 100644 --- a/mall-admin/src/main/java/com/buy507/mall/service/impl/PmsProductServiceImpl.java +++ b/mall-admin/src/main/java/com/buy507/mall/service/impl/PmsProductServiceImpl.java @@ -264,26 +264,6 @@ public class PmsProductServiceImpl implements PmsProductService { return productMapper.updateByExampleSelective(record, example); } - //积分区域 - @Override - public int updatepointsAreaStatus(List ids, Integer pointsAreaStatus) { - PmsProduct record = new PmsProduct(); - record.setPointsAreaStatus(pointsAreaStatus); - PmsProductExample example = new PmsProductExample(); - example.createCriteria().andIdIn(ids); - return productMapper.updateByExampleSelective(record, example); - } - - //积分兑换区域 - @Override - public int updatepointsExchangeStatus(List ids, Integer pointsExchangeStatus) { - PmsProduct record = new PmsProduct(); - record.setPointsExchangeStatus(pointsExchangeStatus); - PmsProductExample example = new PmsProductExample(); - example.createCriteria().andIdIn(ids); - return productMapper.updateByExampleSelective(record, example); - } - @Override public int updateDeleteStatus(List ids, Integer deleteStatus) { diff --git a/mall-dao/src/main/java/com/buy507/mall/model/PmsProduct.java b/mall-dao/src/main/java/com/buy507/mall/model/PmsProduct.java index b00e3e1..d1227ff 100644 --- a/mall-dao/src/main/java/com/buy507/mall/model/PmsProduct.java +++ b/mall-dao/src/main/java/com/buy507/mall/model/PmsProduct.java @@ -157,8 +157,7 @@ public class PmsProduct implements Serializable { @Transient private SmsCoupon smsCoupon; - - + @ApiModelProperty(value = "评论信息") @Transient private List pmsComment; @@ -175,17 +174,18 @@ public class PmsProduct implements Serializable { @ApiModelProperty(value = "好评比例") private PmsComment commentBiLi; - // 会员专区状态 + @Transient + @ApiModelProperty(value = "会员专区状态") private Integer vipStatus; - // 积分专区状态 + @Transient + @ApiModelProperty(value = "积分专区状态") private Integer pointsAreaStatus; - // 积分兑换专区状态 + @Transient + @ApiModelProperty(value = "积分兑换专区状态") private Integer pointsExchangeStatus; - - public List getProductAttribute() { return productAttribute; diff --git a/mall-dao/src/main/resources/com/buy507/mall/mapper/PmsProductMapper.xml b/mall-dao/src/main/resources/com/buy507/mall/mapper/PmsProductMapper.xml index 1f1b926..a8a9401 100644 --- a/mall-dao/src/main/resources/com/buy507/mall/mapper/PmsProductMapper.xml +++ b/mall-dao/src/main/resources/com/buy507/mall/mapper/PmsProductMapper.xml @@ -234,6 +234,15 @@ new_status, + + vip_status, + + + points_area_status, + + + points_exchange_status, + recommand_status, -- 2.36.6