mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-12 03:09:48 +08:00
bugfix 小程序查询站点计费模板未筛选出非会员价
This commit is contained in:
@@ -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-取消收藏) |
|
||||||
|
|
||||||
**反参**
|
**反参**
|
||||||
|
|
||||||
|
|||||||
@@ -632,6 +632,7 @@ public class PileBillingTemplateServiceImpl implements PileBillingTemplateServic
|
|||||||
Optional<BillingTemplateVO> max = list.stream()
|
Optional<BillingTemplateVO> max = list.stream()
|
||||||
.filter(x -> StringUtils.equals(x.getDeviceType(), Constants.ONE)) // 过滤出汽车桩的计费模板
|
.filter(x -> StringUtils.equals(x.getDeviceType(), Constants.ONE)) // 过滤出汽车桩的计费模板
|
||||||
.filter(x -> StringUtils.isNotBlank(x.getPublishTime()))
|
.filter(x -> StringUtils.isNotBlank(x.getPublishTime()))
|
||||||
|
.filter(x -> StringUtils.equals(Constants.ZERO, x.getMemberFlag())) // 过滤出非会员价格
|
||||||
.max(Comparator.comparing(BillingTemplateVO::getPublishTime));
|
.max(Comparator.comparing(BillingTemplateVO::getPublishTime));
|
||||||
return max.orElse(null);
|
return max.orElse(null);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user