From 916383fe825d83737dd0bd57185892c96b031685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BD=90=E5=A4=A9=E5=A4=A7=E5=9C=A3?= <17615834396@163.com> Date: Wed, 22 Nov 2023 10:47:20 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/ActiveConsumptionServiceImpl.java | 1 + .../impl/ActiveDiscountServiceImpl.java | 1 + .../impl/ActiveExchangeServiceImpl.java | 42 ++++++++++--------- .../impl/ActiveFullminusServiceImpl.java | 1 + .../impl/ActiveNewlywedsServiceImpl.java | 2 + .../controller/ActiveRecommendController.java | 3 ++ .../service/impl/CardExchangeServiceImpl.java | 1 + .../impl/CardFavorableServiceImpl.java | 1 + .../controller/CardFuelDieselController.java | 4 +- .../controller/CardGiftController.java | 4 +- .../controller/CardValueController.java | 2 + 11 files changed, 41 insertions(+), 21 deletions(-) diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java index ce6d23976..7b49b3957 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java @@ -103,6 +103,7 @@ public class ActiveConsumptionServiceImpl extends ServiceImpl activeFullminusList = activeFullminusService.list(fullminusLambdaQueryWrapper); for (ActiveFullminus activeFullminus : activeFullminusList) { MaxoutVO maxoutVO = new MaxoutVO(); - BeanUtils.copyProperties(activeFullminus,maxoutVO); - LambdaQueryWrapper queryWrappers = new LambdaQueryWrapper<>(); - queryWrappers.eq(ActiveDiscountChild::getActiveFullminusId,activeFullminus.getId()); - //判断符合金额 - queryWrappers.le(ActiveDiscountChild::getAmount,transferDTO.getOilPrice() * transferDTO.getOilLiters()); - queryWrappers.orderByDesc(ActiveDiscountChild::getAmount); - maxoutVO.setActiveDiscountChildList(activeDiscountChildService.list(queryWrappers)); - maxoutVOArrayList.add(maxoutVO); + if (activeFullminus.getDieselUserLevel().contains(String.valueOf(userGradeService.selectUserGradeById(transferDTO.getGradeId()).getId()))){ + BeanUtils.copyProperties(activeFullminus,maxoutVO); + LambdaQueryWrapper queryWrappers = new LambdaQueryWrapper<>(); + queryWrappers.eq(ActiveDiscountChild::getActiveFullminusId,activeFullminus.getId()); + //判断符合金额 + queryWrappers.le(ActiveDiscountChild::getAmount,transferDTO.getOilPrice() * transferDTO.getOilLiters()); + queryWrappers.orderByDesc(ActiveDiscountChild::getAmount); + maxoutVO.setActiveDiscountChildList(activeDiscountChildService.list(queryWrappers)); + maxoutVOArrayList.add(maxoutVO); + } } //构造折扣券查询条件 @@ -178,22 +181,23 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService { discountLambdaQueryWrapper.eq(ActiveDiscount::getIsonline,0); discountLambdaQueryWrapper.eq(ActiveDiscount::getStatus,0); discountLambdaQueryWrapper.orderByDesc(ActiveDiscount::getCreateTime); - //会员等级判断 - discountLambdaQueryWrapper.in(ActiveDiscount::getDieselUserLevel,userGradeService.selectUserGradeById(transferDTO.getGradeId()).getId()); //符合油号判断 discountLambdaQueryWrapper.in(ActiveDiscount::getAdaptOil,transferDTO.getOilName()); List activeDiscountList = activeDiscountService.list(discountLambdaQueryWrapper); //获取兑换物品信息 for (ActiveDiscount activeDiscount : activeDiscountList) { MaxoutVO maxoutVO = new MaxoutVO(); - BeanUtils.copyProperties(activeDiscount,maxoutVO); - LambdaQueryWrapper queryWrappers = new LambdaQueryWrapper<>(); - queryWrappers.eq(ActiveDiscountChild::getActiveDiscountId,activeDiscount.getId()); - //判断符合金额 - queryWrappers.le(ActiveDiscountChild::getAmount,transferDTO.getOilPrice() * transferDTO.getOilLiters()); - queryWrappers.orderByDesc(ActiveDiscountChild::getAmount); - maxoutVO.setActiveDiscountChildList(activeDiscountChildService.list(queryWrappers)); - maxoutVOArrayList.add(maxoutVO); + + if (activeDiscount.getDieselUserLevel().contains(String.valueOf(userGradeService.selectUserGradeById(transferDTO.getGradeId()).getId()))){ + BeanUtils.copyProperties(activeDiscount,maxoutVO); + LambdaQueryWrapper queryWrappers = new LambdaQueryWrapper<>(); + queryWrappers.eq(ActiveDiscountChild::getActiveDiscountId,activeDiscount.getId()); + //判断符合金额 + queryWrappers.le(ActiveDiscountChild::getAmount,transferDTO.getOilPrice() * transferDTO.getOilLiters()); + queryWrappers.orderByDesc(ActiveDiscountChild::getAmount); + maxoutVO.setActiveDiscountChildList(activeDiscountChildService.list(queryWrappers)); + maxoutVOArrayList.add(maxoutVO); + } } return maxoutVOArrayList; } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminus/service/impl/ActiveFullminusServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminus/service/impl/ActiveFullminusServiceImpl.java index ffa87b46e..86be6c31a 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminus/service/impl/ActiveFullminusServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminus/service/impl/ActiveFullminusServiceImpl.java @@ -101,6 +101,7 @@ public class ActiveFullminusServiceImpl extends ServiceImpl(activeRecommend))); } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardExchange/service/impl/CardExchangeServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardExchange/service/impl/CardExchangeServiceImpl.java index 20b9b34c8..b2cafd5c8 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardExchange/service/impl/CardExchangeServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardExchange/service/impl/CardExchangeServiceImpl.java @@ -74,6 +74,7 @@ public class CardExchangeServiceImpl extends ServiceImpl records = page1.getRecords(); //返回囤油卡状态 diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardGift/controller/CardGiftController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardGift/controller/CardGiftController.java index ad3a1afc9..e46a0516d 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardGift/controller/CardGiftController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardGift/controller/CardGiftController.java @@ -9,6 +9,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.fuint.business.marketingActivity.cardGift.entity.CardGift; import com.fuint.business.marketingActivity.cardGift.service.CardGiftService; import com.fuint.business.marketingActivity.cardValue.entity.CardValue; +import com.fuint.common.util.TokenUtil; import com.fuint.framework.web.BaseController; import com.fuint.framework.web.ResponseObject; import com.fuint.utils.ObjectUtil; @@ -61,7 +62,8 @@ public class CardGiftController extends BaseController { if(ObjectUtils.isNotEmpty(cardGift.getStatus())) { queryWrapper.eq(CardGift::getStatus,cardGift.getStatus()); } - queryWrapper.orderByDesc(CardGift::getCreateTime); + queryWrapper.eq(CardGift::getStoreId, TokenUtil.getNowAccountInfo().getStoreId()); + queryWrapper.orderByDesc(CardGift::getCreateTime); return getSuccessResult(this.cardGiftService.page(page, queryWrapper)); } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardValue/controller/CardValueController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardValue/controller/CardValueController.java index 754a381ac..17efbb2d4 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardValue/controller/CardValueController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardValue/controller/CardValueController.java @@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.fuint.business.marketingActivity.cardFavorable.entity.CardFavorable; import com.fuint.business.marketingActivity.cardValue.dto.CardValueDTO; import com.fuint.business.marketingActivity.cardValue.entity.CardValue; import com.fuint.business.marketingActivity.cardValue.entity.CardValueChild; @@ -65,6 +66,7 @@ public class CardValueController extends BaseController { if (ObjectUtils.isNotEmpty(cardValue.getIsonline())){ queryWrapper.eq(CardValue::getIsonline,cardValue.getIsonline()); } + queryWrapper.eq(CardValue::getStoreId,TokenUtil.getNowAccountInfo().getStoreId()); queryWrapper.orderByDesc(CardValue::getCreateTime); IPage page1 = this.cardValueService.page(page, queryWrapper); List records = page1.getRecords(); From 19f521c40648e1d36460105609664fb253b11d75 Mon Sep 17 00:00:00 2001 From: wangh <9483> Date: Wed, 22 Nov 2023 10:53:41 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/oilConfig/oilInventory/list.vue | 5 +- .../views/oilConfig/oilInventory/order.vue | 82 ++++++++----------- .../OilPurchaseOrderController.java | 12 +++ .../mapper/OilPurchaseOrderMapper.java | 7 ++ .../mapper/xml/OilInventoryMapper.xml | 2 +- .../mapper/xml/OilPurchaseOrderMapper.xml | 42 ++++++++++ .../mapper/xml/OilTankMapper.xml | 7 +- .../service/OilPurchaseOrderService.java | 9 ++ .../impl/OilInventoryOrderServiceImpl.java | 2 +- .../impl/OilPurchaseOrderServiceImpl.java | 33 ++++++-- .../controller/SysDictDataController.java | 2 +- 11 files changed, 144 insertions(+), 59 deletions(-) diff --git a/fuintAdmin/src/views/oilConfig/oilInventory/list.vue b/fuintAdmin/src/views/oilConfig/oilInventory/list.vue index b334e5434..711771011 100644 --- a/fuintAdmin/src/views/oilConfig/oilInventory/list.vue +++ b/fuintAdmin/src/views/oilConfig/oilInventory/list.vue @@ -64,7 +64,7 @@ 待审核 已审核入库 已作废 - 已审核 + 已审核 @@ -84,7 +84,8 @@ type="text" icon="el-icon-edit" @click="dispose(scope.row)" - >处理单据 + >{{ scope.row.status == 'ysh'?'查看单据':'处理单据' }} + diff --git a/fuintAdmin/src/views/oilConfig/oilInventory/order.vue b/fuintAdmin/src/views/oilConfig/oilInventory/order.vue index a4231627e..a73e0b173 100644 --- a/fuintAdmin/src/views/oilConfig/oilInventory/order.vue +++ b/fuintAdmin/src/views/oilConfig/oilInventory/order.vue @@ -92,12 +92,12 @@ - +