32位可能超过Long型最大值
This commit is contained in:
parent
c0603d030a
commit
703d2a3b04
@ -20,7 +20,7 @@ public class PowerPileFallbackFactory implements FallbackFactory<PowerPileServic
|
||||
@Override
|
||||
public PowerPileService create(Throwable cause) {
|
||||
|
||||
logger.error("充电订单服务调用失败:{} //fallback", cause.getMessage());
|
||||
logger.error("充电桩服务调用失败:{} //fallback", cause.getMessage());
|
||||
return new PowerPileService() {
|
||||
@Override
|
||||
public R startCharging(StartChargingData startChargingData) {
|
||||
|
||||
@ -1,9 +1,7 @@
|
||||
package com.xhpc.common.api.factory;
|
||||
|
||||
import com.xhpc.common.api.PowerPileService;
|
||||
import com.xhpc.common.api.SmsService;
|
||||
import com.xhpc.common.core.domain.R;
|
||||
import com.xhpc.common.data.down.StartChargingData;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.cloud.openfeign.FallbackFactory;
|
||||
@ -20,7 +18,7 @@ public class SmsFallbackFactory implements FallbackFactory<SmsService> {
|
||||
private static final Logger logger = LoggerFactory.getLogger(SmsFallbackFactory.class);
|
||||
@Override
|
||||
public SmsService create(Throwable cause) {
|
||||
logger.error("充电订单服务调用失败:{} //fallback", cause.getMessage());
|
||||
logger.error("短信发送服务调用失败:{} //fallback", cause.getMessage());
|
||||
return new SmsService() {
|
||||
@Override
|
||||
public R sendNotice(String phone, String content) {
|
||||
|
||||
@ -20,7 +20,7 @@ public class StartChargingData {
|
||||
|
||||
public String getOrderNo() {
|
||||
|
||||
return String.format("%032d", Long.parseLong(orderNo));
|
||||
return orderNo;
|
||||
}
|
||||
|
||||
public void setOrderNo(String orderNo) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user