mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update
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编码
|
||||
|
||||
Reference in New Issue
Block a user