From 2176938b4e13e119fca73f30e2342d2de7dd01da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=85=81=E6=9E=9E?= <3422692813@qq.com> Date: Sat, 28 Sep 2024 18:08:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B09.28?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/FleetMemberServiceImpl.java | 63 ++++++++++--------- .../controller/CardCouponController.java | 8 +-- .../cardCoupon/service/CardCouponService.java | 2 +- .../service/impl/CardCouponServiceImpl.java | 34 +++++----- gasStation-uni/config.js | 3 +- 5 files changed, 56 insertions(+), 54 deletions(-) diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/fleet/service/impl/FleetMemberServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/fleet/service/impl/FleetMemberServiceImpl.java index 39dd1a2b6..aefabbfa1 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/fleet/service/impl/FleetMemberServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/fleet/service/impl/FleetMemberServiceImpl.java @@ -86,7 +86,7 @@ public class FleetMemberServiceImpl extends ServiceImpl() .eq(FleetMember::getFleetId, fleetMember.getFleetId()) - .eq(FleetMember::getUserId, nowAccountInfo.getId())); + .eq(FleetMember::getUserId, nowAccountInfo.getId())); if (ObjectUtil.isEmpty(fleetMember1)) { throw new RuntimeException("未绑定该车队,无法查看当前车队成员信息"); } @@ -255,7 +255,8 @@ public class FleetMemberServiceImpl extends ServiceImpl { * @param id * @return */ - CardCouponUniVo getCouponOne(Integer id); +// CardCouponUniVo getCouponOne(Integer id); } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/service/impl/CardCouponServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/service/impl/CardCouponServiceImpl.java index da1ffb7ef..18c9e2cfa 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/service/impl/CardCouponServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/service/impl/CardCouponServiceImpl.java @@ -122,25 +122,25 @@ public class CardCouponServiceImpl extends ServiceImpl list = Arrays.asList(split); - //转成integer集合 - List ids = list.stream().map(Integer::parseInt).collect(Collectors.toList()); - List oilNames = oilNameMapper.selectList(new LambdaQueryWrapper() - .in(OilName::getId, ids)); - } - return null; - } +// @Override +// public CardCouponUniVo getCouponOne(Integer id) { +// CardCoupon cardCoupon = baseMapper.selectById(id); +// CardCouponUniVo cardCouponUniVo = BeanUtil.copyProperties(cardCoupon, CardCouponUniVo.class); +// String oilNumber = cardCouponUniVo.getOilNumber(); +// //以逗号隔开 +// if (StrUtil.isNotEmpty(oilNumber)) { +// String[] split = oilNumber.split(","); +// List list = Arrays.asList(split); +// //转成integer集合 +// List ids = list.stream().map(Integer::parseInt).collect(Collectors.toList()); +// List oilNames = oilNameMapper.selectList(new LambdaQueryWrapper() +// .in(OilName::getId, ids)); +// } +// return null; +// } private static void extracted(CardCouponUniVo coupon) { //计算领取的比例 diff --git a/gasStation-uni/config.js b/gasStation-uni/config.js index 41b36051a..84ad39863 100644 --- a/gasStation-uni/config.js +++ b/gasStation-uni/config.js @@ -5,7 +5,8 @@ module.exports = { // baseUrl: 'https://www.tuofeng.cc/oilAdmin/', // baseUrl: 'https://oilapi.youkerr.com/oilAdmin/', // baseUrl: 'https://8q4f124343.yicp.fun/', - baseUrl: 'http://192.168.31.95:8080/', + // baseUrl: 'http://192.168.31.95:8080/', + baseUrl: 'http://localhost:8080/', // baseUrl: 'http://192.168.1.5:8002/cdJdc', imagesUrl: 'http://www.nuoyunr.com/lananRsc', // 应用信息