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