mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
add dubbo service
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package com.jsowell.dubbo;
|
||||
|
||||
import com.jsowell.common.service.ProtocolService;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class JCPPService {
|
||||
|
||||
@DubboReference
|
||||
ProtocolService protocolService;
|
||||
|
||||
/**
|
||||
* 调用jcpp的下发计费模板
|
||||
*/
|
||||
|
||||
/**
|
||||
* 调用jcpp的启动充电
|
||||
*/
|
||||
public void startCharge(String pileCode, String gunCode, BigDecimal limitYuan, String orderNo) {
|
||||
protocolService.startCharge(pileCode, gunCode, limitYuan, orderNo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 调用jcpp的停止充电
|
||||
*/
|
||||
public void stopCharge(String pileCode, String gunCode, String orderNo) {
|
||||
// protocolService.stopCharge(pileCode, gunCode, orderNo);
|
||||
}
|
||||
}
|
||||
@@ -849,6 +849,7 @@ public class PileBillingTemplateServiceImpl implements PileBillingTemplateServic
|
||||
}
|
||||
BillingTemplateVO billingTemplateVO = pileBillingTemplateMapper.selectBillingTemplateByPileSn(pileSn);
|
||||
if (billingTemplateVO != null) {
|
||||
billingTemplateVO.setPileSn(pileSn);
|
||||
redisCache.setCacheObject(redisKey, JSON.toJSONString(billingTemplateVO), CacheConstants.cache_expire_time_1d);
|
||||
}
|
||||
return billingTemplateVO;
|
||||
|
||||
@@ -19,6 +19,7 @@ import java.util.Map;
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
public class BillingTemplateVO {
|
||||
private String pileSn;
|
||||
// 站点id
|
||||
private String stationId;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user