|
@@ -92,13 +92,18 @@ func SummarySupplierPlan(c *gin.Context, apictx *ApiSession) (interface{}, error
|
|
|
|
|
|
for _, plan := range plans {
|
|
|
flag := false
|
|
|
+ // !20240425兼容totalPrice为空的情况
|
|
|
+ var totalPrice float64 = 0
|
|
|
+ if plan.TotalPrice != nil {
|
|
|
+ totalPrice = *plan.TotalPrice
|
|
|
+ }
|
|
|
ps := &PlanSimple{
|
|
|
Id: plan.Id,
|
|
|
Name: plan.Name,
|
|
|
CreateUser: plan.CreateUser,
|
|
|
Total: plan.Total,
|
|
|
Status: plan.Status,
|
|
|
- TotalPrice: *plan.TotalPrice,
|
|
|
+ TotalPrice: totalPrice,
|
|
|
CreateTime: plan.CreateTime,
|
|
|
}
|
|
|
// 选供应商
|