数据分析平台
This commit is contained in:
parent
22371c5ea6
commit
b60aa1f2f0
@ -284,7 +284,7 @@ func PassProbabilityByFactory(r *request.PassProbabilityByFactory) ([]*model.Lin
|
||||
var histogram []*model.Histogram
|
||||
maxValue := math.MinInt
|
||||
minValue := math.MaxInt
|
||||
startDate := carbon.Now().SubYear().StartOfMonth().Format("Y-m-d")
|
||||
startDate := carbon.Now().SubYear().AddMonth().StartOfMonth().Format("Y-m-d")
|
||||
endDate := carbon.Now().EndOfMonth().Format("Y-m-d")
|
||||
var factorys []string
|
||||
var sql string
|
||||
@ -361,7 +361,7 @@ func FTPassProbabilityByProduct(r *request.PassProbabilityByProduct) (*model.Lin
|
||||
var histogram, binHistogram *model.Histogram
|
||||
maxValue := math.MinInt
|
||||
minValue := math.MaxInt
|
||||
startDate := carbon.Now().SubYear().StartOfMonth().Format("Y-m-d")
|
||||
startDate := carbon.Now().SubYear().AddMonth().StartOfMonth().Format("Y-m-d")
|
||||
endDate := carbon.Now().EndOfMonth().Format("Y-m-d")
|
||||
var sql string
|
||||
if r.Factory != "" {
|
||||
|
Loading…
Reference in New Issue
Block a user