diff --git a/app/customer/svc/svc_enterprise.go b/app/customer/svc/svc_enterprise.go index 567ea2d..5ff8b2d 100644 --- a/app/customer/svc/svc_enterprise.go +++ b/app/customer/svc/svc_enterprise.go @@ -10,7 +10,7 @@ import ( func EnterpriseList(req md.EnterpriseListReq, platform string) (m []model.Enterprise, total int64, err error) { eg := db.Db.Where("1=1") if platform == "wx_applet" { - eg.And("pvd != ? and mode != ?", enum.EnterprisePvdForFaceScanPayment, enum.EnterpriseModeForSchool) + eg.And("pvd != ? ", enum.EnterprisePvdForFaceScanPayment).Or("pvd = ? and mode !=?", enum.EnterprisePvdForFaceScanPayment, enum.EnterpriseModeForSchool) } if req.Name != "" { eg.And("name like ?", "%"+req.Name+"%")