enc.dec working; tbd: sig check, query station info logic
This commit is contained in:
parent
166c9c621d
commit
f2c8c125a8
@ -1,5 +1,7 @@
|
|||||||
package com.xhpc.evcs.domain;
|
package com.xhpc.evcs.domain;
|
||||||
|
|
||||||
|
import com.xhpc.common.core.utils.DateUtils;
|
||||||
|
|
||||||
import javax.persistence.Column;
|
import javax.persistence.Column;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
@ -50,7 +52,7 @@ public class XhpcStatisticsTimeInterval {
|
|||||||
|
|
||||||
public BigDecimal getServicePriceEvcs() {
|
public BigDecimal getServicePriceEvcs() {
|
||||||
|
|
||||||
return servicePriceEvcs;
|
return servicePriceEvcs == null ? BigDecimal.ZERO : servicePriceEvcs;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setServicePriceEvcs(BigDecimal servicePriceEvcs) {
|
public void setServicePriceEvcs(BigDecimal servicePriceEvcs) {
|
||||||
@ -60,7 +62,7 @@ public class XhpcStatisticsTimeInterval {
|
|||||||
|
|
||||||
public BigDecimal getElecPriceEvcs() {
|
public BigDecimal getElecPriceEvcs() {
|
||||||
|
|
||||||
return elecPriceEvcs;
|
return elecPriceEvcs == null ? BigDecimal.ZERO : elecPriceEvcs;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setElecPriceEvcs(BigDecimal elecPriceEvcs) {
|
public void setElecPriceEvcs(BigDecimal elecPriceEvcs) {
|
||||||
@ -70,7 +72,7 @@ public class XhpcStatisticsTimeInterval {
|
|||||||
|
|
||||||
public String getEndTimeEvcs() {
|
public String getEndTimeEvcs() {
|
||||||
|
|
||||||
return endTimeEvcs;
|
return endTimeEvcs == null ? DateUtils.getTime() : endTimeEvcs;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEndTimeEvcs(String endTimeEvcs) {
|
public void setEndTimeEvcs(String endTimeEvcs) {
|
||||||
@ -80,7 +82,7 @@ public class XhpcStatisticsTimeInterval {
|
|||||||
|
|
||||||
public String getStartTimeEvcs() {
|
public String getStartTimeEvcs() {
|
||||||
|
|
||||||
return startTimeEvcs;
|
return startTimeEvcs == null ? DateUtils.getTime() : startTimeEvcs;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setStartTimeEvcs(String startTimeEvcs) {
|
public void setStartTimeEvcs(String startTimeEvcs) {
|
||||||
@ -110,7 +112,7 @@ public class XhpcStatisticsTimeInterval {
|
|||||||
|
|
||||||
public BigDecimal getChargingDegree() {
|
public BigDecimal getChargingDegree() {
|
||||||
|
|
||||||
return chargingDegree;
|
return chargingDegree == null ? BigDecimal.ZERO : chargingDegree;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setChargingDegree(BigDecimal chargingDegree) {
|
public void setChargingDegree(BigDecimal chargingDegree) {
|
||||||
|
|||||||
@ -201,7 +201,7 @@ public class XhpcHistoryOrder extends BaseEntity {
|
|||||||
* 2:有卡启动
|
* 2:有卡启动
|
||||||
* 3:其他无卡启动
|
* 3:其他无卡启动
|
||||||
*/
|
*/
|
||||||
private int chargeModelEvcs;
|
private Integer chargeModelEvcs;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 实际充电的客户在运营商侧的名称,<=20字符
|
* 实际充电的客户在运营商侧的名称,<=20字符
|
||||||
@ -243,7 +243,7 @@ public class XhpcHistoryOrder extends BaseEntity {
|
|||||||
|
|
||||||
public String getUserNameEvcs() {
|
public String getUserNameEvcs() {
|
||||||
|
|
||||||
return userNameEvcs;
|
return userNameEvcs == null ? getPhone() : userNameEvcs;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUserNameEvcs(String userNameEvcs) {
|
public void setUserNameEvcs(String userNameEvcs) {
|
||||||
@ -556,7 +556,7 @@ public class XhpcHistoryOrder extends BaseEntity {
|
|||||||
|
|
||||||
public Double getTotalPower() {
|
public Double getTotalPower() {
|
||||||
|
|
||||||
return totalPower;
|
return totalPower == null ? 0 : totalPower;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTotalPower(Double totalPower) {
|
public void setTotalPower(Double totalPower) {
|
||||||
@ -566,7 +566,7 @@ public class XhpcHistoryOrder extends BaseEntity {
|
|||||||
|
|
||||||
public Date getStartTime() {
|
public Date getStartTime() {
|
||||||
|
|
||||||
return startTime;
|
return startTime == null ? getCreateTime() : startTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setStartTime(Date startTime) {
|
public void setStartTime(Date startTime) {
|
||||||
@ -576,7 +576,7 @@ public class XhpcHistoryOrder extends BaseEntity {
|
|||||||
|
|
||||||
public Integer getStopReasonEvcs() {
|
public Integer getStopReasonEvcs() {
|
||||||
|
|
||||||
return stopReasonEvcs;
|
return stopReasonEvcs == null ? 0 : stopReasonEvcs;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setStopReasonEvcs(Integer stopReasonEvcs) {
|
public void setStopReasonEvcs(Integer stopReasonEvcs) {
|
||||||
@ -604,9 +604,9 @@ public class XhpcHistoryOrder extends BaseEntity {
|
|||||||
this.operatorId3rdptyEvcs = operatorId3rdptyEvcs;
|
this.operatorId3rdptyEvcs = operatorId3rdptyEvcs;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getChargeModelEvcs() {
|
public Integer getChargeModelEvcs() {
|
||||||
|
|
||||||
return chargeModelEvcs;
|
return chargeModelEvcs == null ? 3 : chargeModelEvcs;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setChargeModelEvcs(int chargeModelEvcs) {
|
public void setChargeModelEvcs(int chargeModelEvcs) {
|
||||||
@ -616,7 +616,7 @@ public class XhpcHistoryOrder extends BaseEntity {
|
|||||||
|
|
||||||
public Double getConnectorPowerEvcs() {
|
public Double getConnectorPowerEvcs() {
|
||||||
|
|
||||||
return connectorPowerEvcs;
|
return connectorPowerEvcs == null ? 0 : connectorPowerEvcs;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setConnectorPowerEvcs(Double connectorPowerEvcs) {
|
public void setConnectorPowerEvcs(Double connectorPowerEvcs) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user