diff --git a/services/ap/implments/PlanOrder.service.impl.go b/services/ap/implments/PlanOrder.service.impl.go index 946d19b..83475e3 100644 --- a/services/ap/implments/PlanOrder.service.impl.go +++ b/services/ap/implments/PlanOrder.service.impl.go @@ -293,10 +293,18 @@ func (impl *PlanOrderServiceImplement) SelectAndPaging(user *global.User, urlPar engine := db.Eloquent.Master() session := engine.NewSession() defer session.Close() + operator, exist := urlParameters["operator"] + if exist { + if operator == "*" { + urlParameters["operator"] = "" + } + } predicates, err := condition.BuildPredicates(urlParameters) if err != nil { return grmi.EmptyPagingResult, err } + + dao := dal.NewPlanOrderDAO(session, user.PlantNr, user.UserId) condition.Fill(urlParameters) result, err := dao.SelectAndPaging(condition.Paging, predicates, condition.OrderByFields)