|
@@ -13,6 +13,7 @@ import com.qs.mp.common.enums.TicketTypeEnum;
|
|
|
import java.io.Serializable;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.Date;
|
|
|
+import java.util.Objects;
|
|
|
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
@@ -232,7 +233,10 @@ public class TicketBox implements Serializable {
|
|
|
|
|
|
@ApiModelProperty("预付票包价格")
|
|
|
public Integer getPkgPrePrice() {
|
|
|
- return this.prePrice * this.pkgUnit;
|
|
|
+ if (Objects.nonNull(this.prePrice) && Objects.nonNull(this.pkgUnit)) {
|
|
|
+ return this.prePrice * this.pkgUnit;
|
|
|
+ }
|
|
|
+ return 0;
|
|
|
}
|
|
|
|
|
|
}
|