更新对账的数据非空判断
This commit is contained in:
parent
5831172413
commit
248976e021
@ -1,9 +1,10 @@
|
||||
package com.xhpc.activity.domain;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* xhpc_history_order
|
||||
@ -225,7 +226,7 @@ public class XhpcHistoryOrderDomain implements Serializable {
|
||||
*/
|
||||
private Date endTime;
|
||||
|
||||
private Integer stopReasonEvcs;
|
||||
private String stopReasonEvcs;
|
||||
|
||||
/**
|
||||
* 电量
|
||||
|
||||
@ -651,10 +651,10 @@ public class InternetBillServiceImpl implements InternetBillService {
|
||||
|
||||
int checkoutStatus = 0;
|
||||
// 流量方的订单金额大于本平台的历史订单的订单金额,就可以判断成功
|
||||
if (domain.getPlatformOrderAmount() != null && domain.getPlatformOrderAmount().compareTo(domain.getInternetOrderAmount()) == 0
|
||||
&& domain.getPlatformPowerAmount() != null && domain.getPlatformPowerAmount().compareTo(domain.getInternetPowerAmount()) == 0
|
||||
&& domain.getPlatformServerAmount() != null && domain.getPlatformServerAmount().compareTo(domain.getInternetServerAmount()) == 0
|
||||
&& domain.getPlatformChargingDegree() != null && domain.getPlatformChargingDegree().compareTo(domain.getInternetChargingDegree()) == 0) {
|
||||
if (domain.getPlatformOrderAmount() != null && domain.getInternetOrderAmount() != null && domain.getPlatformOrderAmount().compareTo(domain.getInternetOrderAmount()) == 0
|
||||
&& domain.getPlatformPowerAmount() != null && domain.getInternetPowerAmount() != null && domain.getPlatformPowerAmount().compareTo(domain.getInternetPowerAmount()) == 0
|
||||
&& domain.getPlatformServerAmount() != null && domain.getInternetServerAmount() != null && domain.getPlatformServerAmount().compareTo(domain.getInternetServerAmount()) == 0
|
||||
&& domain.getPlatformChargingDegree() != null && domain.getInternetChargingDegree() != null && domain.getPlatformChargingDegree().compareTo(domain.getInternetChargingDegree()) == 0) {
|
||||
checkoutStatus = 2;
|
||||
}
|
||||
domain.setStatus(checkoutStatus);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user