Ver Fonte

Process: llplanType传0值问题 1

Yi há 1 ano atrás
pai
commit
a9931df128
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      model/formula_estimate.go

+ 1 - 1
model/formula_estimate.go

@@ -248,7 +248,7 @@ func NewProcessAnalysisParams(pastureId int64, req *operationPb.ProcessAnalysisR
 	}
 
 	lpPlanType := ""
-	if req.PlanType == 0 {
+	if req.PlanType > 0 {
 		lpPlanType = fmt.Sprintf("%d", req.PlanType)
 	}
 	return &ProcessAnalysisParams{