...
|
...
|
@@ -147,12 +147,12 @@ func (ptr *ByteCoreService) FormulasGenerate(param domain.ReqFormulasGenerate) ( |
|
|
// }
|
|
|
// return &domain.DataFormulasGenerate{}, nil
|
|
|
//}
|
|
|
if param.QuerySet.Type == domain.CalculateItem.ToString() {
|
|
|
if param.QuerySet.QueryComponents[0].Formula.ExprMode != 0 {
|
|
|
err := ptr.ExcelExprCalcPersistence(param.QuerySet.QueryComponents[0].Formula, param, true)
|
|
|
return &domain.DataFormulasGenerate{}, err
|
|
|
}
|
|
|
}
|
|
|
//if param.QuerySet.Type == domain.CalculateItem.ToString() {
|
|
|
// if param.QuerySet.QueryComponents[0].Formula.ExprMode != 0 {
|
|
|
// err := ptr.ExcelExprCalcPersistence(param.QuerySet.QueryComponents[0].Formula, param, true)
|
|
|
// return &domain.DataFormulasGenerate{}, err
|
|
|
// }
|
|
|
//}
|
|
|
if param.QuerySet.Type == domain.CalculateSet.ToString() {
|
|
|
_, err := param.QuerySetService.(*QuerySetService).LoadCalculateSetData(param.Context.(*domain.Context), param.QuerySet, param.QueryComponents)
|
|
|
if err != nil {
|
...
|
...
|
|