数据分析平台
This commit is contained in:
parent
694048a65d
commit
c8bd5f921e
@ -185,6 +185,9 @@ func HandleSTS8200Excel(fileText *model.FileText) error {
|
||||
LimitU: rows[limitUIndex][k],
|
||||
}
|
||||
}
|
||||
if len(rows)-dataIndex < 100 {
|
||||
return errors.New(fmt.Sprintf("可能涉及QC工序,不做处理"))
|
||||
}
|
||||
for i := dataIndex; i < len(rows); i++ {
|
||||
if len(rows[i]) < len(rows[titleIndex]) {
|
||||
rows[i] = append(rows[i], utils.FillData(len(rows[titleIndex])-len(rows[i]))...)
|
||||
|
@ -591,15 +591,25 @@ func Scatter(req *request.Scatter) ([]*model.Scatter, model.ScatterLimit, model.
|
||||
}
|
||||
if needAppend {
|
||||
counter[xySelection.X+","+xySelection.Y][coordinate]++
|
||||
if _, ok := scatterFieldMap[xySelection.X+","+xySelection.Y]; !ok {
|
||||
if _, ok := scatterFieldMap[xySelection.X+","+xySelection.Y+"-Site"+site]; !ok {
|
||||
scatter := &model.Scatter{
|
||||
Field: xySelection.X + "," + xySelection.Y + "-Site" + site, Datas: [][]string{}}
|
||||
scatterFieldMap[xySelection.X+","+xySelection.Y] = len(scatters)
|
||||
scatterFieldMap[xySelection.X+","+xySelection.Y+"-Site"+site] = len(scatters)
|
||||
scatters = append(scatters, scatter)
|
||||
}
|
||||
scatters[scatterFieldMap[xySelection.X+","+xySelection.Y]].Datas = append(
|
||||
scatters[scatterFieldMap[xySelection.X+","+xySelection.Y]].Datas,
|
||||
scatters[scatterFieldMap[xySelection.X+","+xySelection.Y+"-Site"+site]].Datas = append(
|
||||
scatters[scatterFieldMap[xySelection.X+","+xySelection.Y+"-Site"+site]].Datas,
|
||||
[]string{data[fieldMap[xySelection.X]], data[fieldMap[xySelection.Y]]})
|
||||
//counter[xySelection.X+","+xySelection.Y][coordinate]++
|
||||
//if _, ok := scatterFieldMap[xySelection.X+","+xySelection.Y]; !ok {
|
||||
// scatter := &model.Scatter{
|
||||
// Field: xySelection.X + "," + xySelection.Y + "-Site" + site, Datas: [][]string{}}
|
||||
// scatterFieldMap[xySelection.X+","+xySelection.Y] = len(scatters)
|
||||
// scatters = append(scatters, scatter)
|
||||
//}
|
||||
//scatters[scatterFieldMap[xySelection.X+","+xySelection.Y]].Datas = append(
|
||||
// scatters[scatterFieldMap[xySelection.X+","+xySelection.Y]].Datas,
|
||||
// []string{data[fieldMap[xySelection.X]], data[fieldMap[xySelection.Y]]})
|
||||
if xScatterLimit.Min == "" {
|
||||
xScatterLimit.Min = data[fieldMap[xySelection.X]]
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user