订单价格问题处理
This commit is contained in:
parent
d6b05d4ff1
commit
8ceb214252
@ -103,13 +103,13 @@ public class PriceDetailDTO implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public PriceDetailDTO() {
|
public PriceDetailDTO() {
|
||||||
originalPrice=0d;
|
originalPrice = 0d;
|
||||||
goodsPrice = 0d;
|
goodsPrice = 0d;
|
||||||
freightPrice = 0d;
|
freightPrice = 0d;
|
||||||
|
|
||||||
payPoint = 0;
|
payPoint = 0;
|
||||||
discountPrice = 0d;
|
discountPrice = 0d;
|
||||||
couponPrice=0d;
|
couponPrice = 0d;
|
||||||
|
|
||||||
distributionCommission = 0d;
|
distributionCommission = 0d;
|
||||||
platFormCommission = 0d;
|
platFormCommission = 0d;
|
||||||
@ -122,7 +122,7 @@ public class PriceDetailDTO implements Serializable {
|
|||||||
|
|
||||||
flowPrice = 0d;
|
flowPrice = 0d;
|
||||||
billPrice = 0d;
|
billPrice = 0d;
|
||||||
settlementPrice=0d;
|
settlementPrice = 0d;
|
||||||
|
|
||||||
|
|
||||||
joinPromotion = new ArrayList<>();
|
joinPromotion = new ArrayList<>();
|
||||||
@ -251,70 +251,70 @@ public class PriceDetailDTO implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Double getGoodsPrice() {
|
public Double getGoodsPrice() {
|
||||||
if (goodsPrice <= 0) {
|
if (goodsPrice == null || goodsPrice <= 0) {
|
||||||
return 0D;
|
return 0D;
|
||||||
}
|
}
|
||||||
return goodsPrice;
|
return goodsPrice;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Double getFreightPrice() {
|
public Double getFreightPrice() {
|
||||||
if (freightPrice <= 0) {
|
if (freightPrice == null || freightPrice <= 0) {
|
||||||
return 0D;
|
return 0D;
|
||||||
}
|
}
|
||||||
return freightPrice;
|
return freightPrice;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getPayPoint() {
|
public Integer getPayPoint() {
|
||||||
if (payPoint <= 0) {
|
if (payPoint == null || payPoint <= 0) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return payPoint;
|
return payPoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Double getDiscountPrice() {
|
public Double getDiscountPrice() {
|
||||||
if (discountPrice <= 0) {
|
if (discountPrice == null || discountPrice <= 0) {
|
||||||
return 0D;
|
return 0D;
|
||||||
}
|
}
|
||||||
return discountPrice;
|
return discountPrice;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Double getCouponPrice() {
|
public Double getCouponPrice() {
|
||||||
if (couponPrice <= 0) {
|
if (couponPrice == null || couponPrice <= 0) {
|
||||||
return 0D;
|
return 0D;
|
||||||
}
|
}
|
||||||
return couponPrice;
|
return couponPrice;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Double getDistributionCommission() {
|
public Double getDistributionCommission() {
|
||||||
if (distributionCommission <= 0) {
|
if (distributionCommission == null || distributionCommission <= 0) {
|
||||||
return 0D;
|
return 0D;
|
||||||
}
|
}
|
||||||
return distributionCommission;
|
return distributionCommission;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Double getPlatFormCommission() {
|
public Double getPlatFormCommission() {
|
||||||
if (platFormCommission <= 0) {
|
if (platFormCommission == null || platFormCommission <= 0) {
|
||||||
return 0D;
|
return 0D;
|
||||||
}
|
}
|
||||||
return platFormCommission;
|
return platFormCommission;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Double getSiteCouponPrice() {
|
public Double getSiteCouponPrice() {
|
||||||
if (siteCouponPrice <= 0) {
|
if (siteCouponPrice == null || siteCouponPrice <= 0) {
|
||||||
return 0D;
|
return 0D;
|
||||||
}
|
}
|
||||||
return siteCouponPrice;
|
return siteCouponPrice;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Double getSiteCouponPoint() {
|
public Double getSiteCouponPoint() {
|
||||||
if (siteCouponPoint <= 0) {
|
if (siteCouponPoint == null || siteCouponPoint <= 0) {
|
||||||
return 0D;
|
return 0D;
|
||||||
}
|
}
|
||||||
return siteCouponPoint;
|
return siteCouponPoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Double getSiteCouponCommission() {
|
public Double getSiteCouponCommission() {
|
||||||
if (siteCouponCommission <= 0) {
|
if (siteCouponCommission == null || siteCouponCommission <= 0) {
|
||||||
return 0D;
|
return 0D;
|
||||||
}
|
}
|
||||||
return siteCouponCommission;
|
return siteCouponCommission;
|
||||||
@ -322,21 +322,21 @@ public class PriceDetailDTO implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
public Double getFlowPrice() {
|
public Double getFlowPrice() {
|
||||||
if (flowPrice <= 0) {
|
if (flowPrice == null || flowPrice <= 0) {
|
||||||
return 0D;
|
return 0D;
|
||||||
}
|
}
|
||||||
return flowPrice;
|
return flowPrice;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Double getSettlementPrice() {
|
public Double getSettlementPrice() {
|
||||||
if (settlementPrice <= 0) {
|
if (settlementPrice == null || settlementPrice <= 0) {
|
||||||
return 0D;
|
return 0D;
|
||||||
}
|
}
|
||||||
return settlementPrice;
|
return settlementPrice;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Double getBillPrice() {
|
public Double getBillPrice() {
|
||||||
if (billPrice <= 0) {
|
if (billPrice == null || billPrice <= 0) {
|
||||||
return 0D;
|
return 0D;
|
||||||
}
|
}
|
||||||
return billPrice;
|
return billPrice;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user