|
@@ -1228,7 +1228,10 @@ func CreateProductPlan(c *gin.Context, apictx *ApiSession) (interface{}, error)
|
|
|
if plan.Total == 0 {
|
|
|
return nil, errors.New("生产计划数应不为0")
|
|
|
}
|
|
|
-
|
|
|
+ if plan.TotalPrice == nil {
|
|
|
+ var zero float64 = 0
|
|
|
+ plan.TotalPrice = &zero
|
|
|
+ }
|
|
|
plan.Status = "process" // 进行中
|
|
|
plan.CreateTime = time.Now()
|
|
|
plan.UpdateTime = time.Now()
|