From 1a5e536cf6ea5f696c709fb07af1ad7c67f0ec0c Mon Sep 17 00:00:00 2001 From: zhaohengkun Date: Mon, 4 Nov 2024 09:27:46 +0800 Subject: [PATCH 1/6] 1 --- .../service/impl/AllOrderInfoServiceImpl.java | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/AllOrderInfoServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/AllOrderInfoServiceImpl.java index 101af9b0e..20ed96e2d 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/AllOrderInfoServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/AllOrderInfoServiceImpl.java @@ -21,8 +21,10 @@ import com.fuint.business.convenienceSore.dto.LJGoodsDto; import com.fuint.business.convenienceSore.mapper.LJGoodsMapper; import com.fuint.business.convenienceSore.service.LJGoodsService; import com.fuint.business.convenienceSore.service.StockTrackService; +import com.fuint.business.fleet.entity.FleetConsumeRecord; import com.fuint.business.fleet.entity.FleetInfo; import com.fuint.business.fleet.entity.FleetMember; +import com.fuint.business.fleet.mapper.FleetConsumeRecordMapper; import com.fuint.business.fleet.mapper.FleetInfoMapper; import com.fuint.business.fleet.mapper.FleetLinesChangeMapper; import com.fuint.business.fleet.mapper.FleetMemberMapper; @@ -125,7 +127,7 @@ public class AllOrderInfoServiceImpl extends ServiceImpl q4 = Wrappers.query(); - q2.eq("order_no", userBalance.getMtUserId()); + q2.eq("order_no", allOrder.getOrderNo()); CardFuelChange cardFuelChange = cardFuelChangeMapper.selectOne(q4); mtUserFuel.setFuelAmount(mtUserFuel.getFuelAmount() + cardFuelChange.getBalance()); mtUserFuelMapper.updateById(mtUserFuel); @@ -660,7 +661,14 @@ public class AllOrderInfoServiceImpl extends ServiceImpl q7 = Wrappers.query(); + q7.eq("order_no", allOrder.getOrderNo()); + FleetConsumeRecord fleetConsumeRecord = fleetConsumeRecordMapper.selectOne(q7); + + fleetMember.setRemainingCreditLimit(fleetMember.getRemainingCreditLimit() + fleetConsumeRecord.getAfterTheChange()); + fleetInfo.setTotalBalance(fleetInfo.getTotalBalance() + fleetConsumeRecord.getAfterTheChange()); + fleetInfoMapper.updateById(fleetInfo); + fleetMemberMapper.updateById(fleetMember); } if (orderNo.equals("card_value")) { From 3ccbd60e4f00a45c42f8e8d17ed00141555cf5ed Mon Sep 17 00:00:00 2001 From: zhaohengkun Date: Mon, 4 Nov 2024 10:42:04 +0800 Subject: [PATCH 2/6] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reconciliation/tab/ref.vue | 269 +++--- .../reconciliation/tab/trading.vue | 12 +- .../cashier/orderComponents/order_Cashier.vue | 818 +++++++++--------- 3 files changed, 567 insertions(+), 532 deletions(-) diff --git a/fuintAdmin/src/views/financialStatement/reconciliation/tab/ref.vue b/fuintAdmin/src/views/financialStatement/reconciliation/tab/ref.vue index 7ea44b085..fca319b5d 100644 --- a/fuintAdmin/src/views/financialStatement/reconciliation/tab/ref.vue +++ b/fuintAdmin/src/views/financialStatement/reconciliation/tab/ref.vue @@ -1,7 +1,7 @@