DengBiao 1 ano atrás
pai
commit
cc9f1bc6f1
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      app/customer/svc/svc_enterprise.go

+ 1
- 1
app/customer/svc/svc_enterprise.go Ver arquivo

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


Carregando…
Cancelar
Salvar