mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
新增 车位相机管理相关方法
This commit is contained in:
@@ -21,4 +21,25 @@ public class GenerateOccupyOrderDTO {
|
||||
* 枪口号
|
||||
*/
|
||||
private String connectorCode;
|
||||
|
||||
|
||||
/**
|
||||
* 下面参数非必传
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* 订单状态
|
||||
*/
|
||||
private String orderStatus;
|
||||
|
||||
/**
|
||||
* 支付状态
|
||||
*/
|
||||
private String payStatus;
|
||||
|
||||
/**
|
||||
* 车牌号
|
||||
*/
|
||||
private String plateNumber;
|
||||
}
|
||||
|
||||
@@ -180,6 +180,17 @@ public class OrderPileOccupyServiceImpl implements OrderPileOccupyService {
|
||||
String pileSn = dto.getPileSn();
|
||||
String connectorCode = dto.getConnectorCode();
|
||||
|
||||
String orderStatus = dto.getOrderStatus();
|
||||
String payStatus = dto.getPayStatus();
|
||||
String plateNumber = dto.getPlateNumber();
|
||||
|
||||
if (StringUtils.isBlank(orderStatus)) {
|
||||
orderStatus = OccupyOrderStatusEnum.DRAFT_ORDER.getCode(); // 草稿单
|
||||
}
|
||||
if (StringUtils.isBlank(payStatus)) {
|
||||
payStatus = Constants.TWO; // 无需支付
|
||||
}
|
||||
|
||||
String redisKey = CacheConstants.GROUND_LOCK_OCCUPY_ORDER + pileSn + connectorCode;
|
||||
String cacheObject = redisCache.getCacheObject(redisKey);
|
||||
if (StringUtils.isNotBlank(cacheObject)) {
|
||||
@@ -191,8 +202,11 @@ public class OrderPileOccupyServiceImpl implements OrderPileOccupyService {
|
||||
String occupyCode = "OP" + IdUtils.getOrderCode();
|
||||
orderPileOccupy.setOccupyCode(occupyCode);
|
||||
orderPileOccupy.setMemberId(memberId);
|
||||
orderPileOccupy.setStatus(OccupyOrderStatusEnum.DRAFT_ORDER.getCode()); // 草稿单
|
||||
orderPileOccupy.setPayStatus(Constants.TWO); // 无需支付
|
||||
orderPileOccupy.setStatus(orderStatus); // 草稿单
|
||||
orderPileOccupy.setPayStatus(payStatus); // 无需支付
|
||||
if (StringUtils.isNotBlank(plateNumber)) {
|
||||
orderPileOccupy.setPlateNumber(plateNumber); // 车牌号
|
||||
}
|
||||
orderPileOccupy.setPileSn(pileSn);
|
||||
PileInfoVO pileInfoVO = pileBasicInfoService.selectPileInfoBySn(pileSn);
|
||||
if (pileInfoVO != null) {
|
||||
|
||||
Reference in New Issue
Block a user