空指针金额问题

This commit is contained in:
wangw 2025-03-04 10:27:02 +08:00
parent 3ece479798
commit f1f7a471fd
1 changed files with 8 additions and 0 deletions

View File

@ -190,6 +190,14 @@ public class OrderDetail implements Serializable {
return returnAmount == null ? BigDecimal.ZERO : returnAmount;
}
public BigDecimal getReturnNum() {
return returnNum == null ? BigDecimal.ZERO : returnNum;
}
public BigDecimal getPackAmount() {
return packAmount == null ? BigDecimal.ZERO : packAmount;
}
public String getRefundRemark() {
return StrUtil.isBlank(refundRemark) ? "" : refundRemark + " ";
}