Browse Source

添加对operator的特殊处理

pull/263/head
zhangxin 3 years ago
parent
commit
7b5d461ca2
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      services/ap/implments/PlanOrder.service.impl.go

+ 8
- 0
services/ap/implments/PlanOrder.service.impl.go View File

@ -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)


Loading…
Cancel
Save