Browse Source

1

add_mode
DengBiao 1 year ago
parent
commit
cc9f1bc6f1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/customer/svc/svc_enterprise.go

+ 1
- 1
app/customer/svc/svc_enterprise.go View File

@@ -10,7 +10,7 @@ import (
func EnterpriseList(req md.EnterpriseListReq, platform string) (m []model.Enterprise, total int64, err error) { func EnterpriseList(req md.EnterpriseListReq, platform string) (m []model.Enterprise, total int64, err error) {
eg := db.Db.Where("1=1") eg := db.Db.Where("1=1")
if platform == "wx_applet" { 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 != "" { if req.Name != "" {
eg.And("name like ?", "%"+req.Name+"%") eg.And("name like ?", "%"+req.Name+"%")


Loading…
Cancel
Save