pageHelper 不生效问题
空值问题
This commit is contained in:
@@ -87,4 +87,30 @@ public class CheckOrderPay implements Serializable {
|
||||
public Integer getPointsNum() {
|
||||
return pointsNum == null ? 0 : pointsNum;
|
||||
}
|
||||
|
||||
public BigDecimal getDiscountRatio() {
|
||||
return discountRatio == null ? BigDecimal.ONE : discountRatio;
|
||||
}
|
||||
|
||||
public BigDecimal getFullCouponDiscountAmount() {
|
||||
return fullCouponDiscountAmount == null ? BigDecimal.ZERO : fullCouponDiscountAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getProductCouponDiscountAmount() {
|
||||
return productCouponDiscountAmount == null ? BigDecimal.ZERO : productCouponDiscountAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getDiscountAmount() {
|
||||
return discountAmount == null ? BigDecimal.ZERO : discountAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getPointsDiscountAmount() {
|
||||
return pointsDiscountAmount == null ? BigDecimal.ZERO : pointsDiscountAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getRoundAmount() {
|
||||
return roundAmount == null ? BigDecimal.ZERO : roundAmount;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -49,17 +49,7 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.pagehelper</groupId>
|
||||
<artifactId>pagehelper</artifactId>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>com.github.jsqlparser</groupId>
|
||||
<artifactId>jsqlparser</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.pagehelper</groupId>
|
||||
<artifactId>sqlparser4.5</artifactId>
|
||||
<artifactId>pagehelper-spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
|
||||
Reference in New Issue
Block a user