From 584d8ee6b72bddf0fd203c5d5419bebaa97829ab Mon Sep 17 00:00:00 2001 From: Lemon Date: Mon, 24 Mar 2025 09:48:52 +0800 Subject: [PATCH] =?UTF-8?q?bugfix=20=20=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E7=AB=99=E7=82=B9=E8=AE=A1=E8=B4=B9=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E6=9C=AA=E7=AD=9B=E9=80=89=E5=87=BA=E9=9D=9E=E4=BC=9A?= =?UTF-8?q?=E5=91=98=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/万车充接口补充.md | 24 +++++++++++-------- .../impl/PileBillingTemplateServiceImpl.java | 1 + 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/doc/万车充接口补充.md b/doc/万车充接口补充.md index 26fde53ea..c774dbd01 100644 --- a/doc/万车充接口补充.md +++ b/doc/万车充接口补充.md @@ -38,15 +38,17 @@ # 查询站点收藏 ``` -接口地址: -请求方式: +接口地址:/uniapp/member/getCollectedStationIdList +请求方式:POST ``` **入参** -| 字段名 | 类型 | 是否必传 | 备注 | -| ------ | ---- | -------- | ---- | -| | | | | +| 字段名 | 类型 | 是否必传 | 备注 | +| ---------- | ------ | -------- | ------------ | +| memberId | String | Y | 存在Header中 | +| stationLng | String | Y | 当前位置经度 | +| stationLat | String | N | 当前位置纬度 | **反参** @@ -57,15 +59,17 @@ # (添加/删除) 站点收藏 ``` -接口地址: -请求方式: +接口地址:/uniapp/member/updateCollectedStation +请求方式:POST ``` **入参** -| 字段名 | 类型 | 是否必传 | 备注 | -| ------ | ---- | -------- | ---- | -| | | | | +| 字段名 | 类型 | 是否必传 | 备注 | +| ------------ | ------- | -------- | ----------------------------------------- | +| memberId | String | Y | 存在Header中 | +| stationId | String | Y | 站点id | +| operatorType | Boolean | Y | 操作类型(true-添加收藏;false-取消收藏) | **反参** diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileBillingTemplateServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileBillingTemplateServiceImpl.java index 2a8d55c01..ddd88b343 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileBillingTemplateServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileBillingTemplateServiceImpl.java @@ -632,6 +632,7 @@ public class PileBillingTemplateServiceImpl implements PileBillingTemplateServic Optional max = list.stream() .filter(x -> StringUtils.equals(x.getDeviceType(), Constants.ONE)) // 过滤出汽车桩的计费模板 .filter(x -> StringUtils.isNotBlank(x.getPublishTime())) + .filter(x -> StringUtils.equals(Constants.ZERO, x.getMemberFlag())) // 过滤出非会员价格 .max(Comparator.comparing(BillingTemplateVO::getPublishTime)); return max.orElse(null); }