DengBiao vor 1 Jahr
Ursprung
Commit
cc9f1bc6f1
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. +1
    -1
      app/customer/svc/svc_enterprise.go

+ 1
- 1
app/customer/svc/svc_enterprise.go Datei anzeigen

@@ -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+"%")


Laden…
Abbrechen
Speichern