mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-08 03:50:13 +08:00
Merge branch 'dev' of http://192.168.2.2:8099/jsowell/jsowell-charger-web into dev
This commit is contained in:
@@ -64,6 +64,11 @@ public class CameraService {
|
||||
private MemberBasicInfoService memberBasicInfoService;
|
||||
|
||||
|
||||
/**
|
||||
* 接收相机识别结果
|
||||
* @param jsonObject
|
||||
* @throws InterruptedException
|
||||
*/
|
||||
public void receiveIdentifyResults(JSONObject jsonObject) throws InterruptedException {
|
||||
// 区分入场和出场
|
||||
Integer parking_state = jsonObject.getJSONObject("parking").getInteger("parking_state");
|
||||
@@ -83,7 +88,10 @@ public class CameraService {
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 保存心跳到Redis
|
||||
* @param dto
|
||||
*/
|
||||
public void saveHeartBeat2Redis(CameraHeartBeatDTO dto) {
|
||||
// 将基本信息存入缓存
|
||||
String redisKey = CacheConstants.CAMERA_HEARTBEAT + dto.getIp();
|
||||
@@ -92,8 +100,10 @@ public class CameraService {
|
||||
|
||||
/**
|
||||
* 车辆入场
|
||||
*
|
||||
* @param jsonObject
|
||||
* @param jsonObject json报文对象
|
||||
* @param parkingState
|
||||
* @return
|
||||
* @throws InterruptedException
|
||||
*/
|
||||
private String vehicleEntry(JSONObject jsonObject, String parkingState) throws InterruptedException {
|
||||
// 先将车牌图片信息存入缓存
|
||||
@@ -238,7 +248,6 @@ public class CameraService {
|
||||
return resultMap;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 保存图像
|
||||
* @param base64Image 图像的Base64编码
|
||||
|
||||
@@ -64,7 +64,7 @@ import com.jsowell.pile.transaction.service.TransactionService;
|
||||
import com.jsowell.pile.util.SnUtils;
|
||||
import com.jsowell.pile.vo.base.MemberWalletVO;
|
||||
import com.jsowell.pile.vo.base.PileInfoVO;
|
||||
import com.jsowell.pile.vo.uniapp.BillingPriceVO;
|
||||
import com.jsowell.pile.vo.uniapp.CurrentTimePriceDetails;
|
||||
import com.jsowell.pile.vo.uniapp.MemberVO;
|
||||
import com.jsowell.pile.vo.uniapp.PileConnectorDetailVO;
|
||||
import com.jsowell.pile.vo.web.*;
|
||||
@@ -253,11 +253,14 @@ public class SpringBootTestController {
|
||||
@Test
|
||||
public void queryBillingPriceTest() {
|
||||
String stationId = "19";
|
||||
List<BillingPriceVO> billingPriceVOS = pileBillingTemplateService.queryBillingPriceOld(stationId);
|
||||
System.out.println("老版:" + JSON.toJSONString(billingPriceVOS));
|
||||
// List<BillingPriceVO> billingPriceVOS = pileBillingTemplateService.queryBillingPriceOld(stationId);
|
||||
// System.out.println("老版:" + JSON.toJSONString(billingPriceVOS));
|
||||
//
|
||||
// List<BillingPriceVO> billingPriceVOS1 = pileBillingTemplateService.queryBillingPrice(stationId);
|
||||
// System.out.println("新版:" + JSON.toJSONString(billingPriceVOS1));
|
||||
|
||||
List<BillingPriceVO> billingPriceVOS1 = pileBillingTemplateService.queryBillingPrice(stationId);
|
||||
System.out.println("新版:" + JSON.toJSONString(billingPriceVOS1));
|
||||
CurrentTimePriceDetails currentTimePriceDetails = pileBillingTemplateService.getCurrentTimePriceDetails(stationId);
|
||||
System.out.println("currentTimePriceDetails:" + JSON.toJSONString(currentTimePriceDetails));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -76,11 +76,11 @@ public class MemberGroupServiceImpl implements MemberGroupService {
|
||||
if (CollectionUtils.isEmpty(resultList)) {
|
||||
return Lists.newArrayList();
|
||||
}
|
||||
for (MemberGroupVO memberGroupVO : resultList) {
|
||||
BigDecimal discount = memberGroupVO.getDiscount();
|
||||
// 返回给前端乘以10
|
||||
memberGroupVO.setDiscount(discount.multiply(BigDecimal.TEN));
|
||||
}
|
||||
// for (MemberGroupVO memberGroupVO : resultList) {
|
||||
// BigDecimal discount = memberGroupVO.getDiscount();
|
||||
// // 返回给前端乘以10
|
||||
// memberGroupVO.setDiscount(discount.multiply(BigDecimal.TEN));
|
||||
// }
|
||||
return resultList;
|
||||
}
|
||||
|
||||
|
||||
@@ -400,7 +400,7 @@ public class PileBillingTemplateServiceImpl implements PileBillingTemplateServic
|
||||
// 查询站点的集团会员计费模板
|
||||
BillingTemplateVO preferentialBillingTemplate = this.queryPreferentialBillingTemplate(stationId);
|
||||
if (Objects.nonNull(preferentialBillingTemplate) && Objects.nonNull(result) ) {
|
||||
List<BillingDetailVO> billingDetailList = billingTemplateVO.getBillingDetailList();
|
||||
List<BillingDetailVO> billingDetailList = preferentialBillingTemplate.getBillingDetailList();
|
||||
for (BillingDetailVO detailVO : billingDetailList) {
|
||||
List<String> applyTimeList = detailVO.getApplyTime();
|
||||
for (String applyTime : applyTimeList) {
|
||||
|
||||
Reference in New Issue
Block a user