|
|
@@ -12,6 +12,10 @@ func EnterpriseList(req md.EnterpriseListReq, platform string) (m []model.Enterp |
|
|
|
if platform == "wx_applet" { |
|
|
|
eg.And("pvd != ? ", enum.EnterprisePvdForFaceScanPayment).Or("pvd = ? and mode !=?", enum.EnterprisePvdForFaceScanPayment, enum.EnterpriseModeForSchool) |
|
|
|
} |
|
|
|
if platform == "alipay_applet" { |
|
|
|
//TODO::暂只开放金茂小学支付宝购买权限 |
|
|
|
eg.And("pvd != ? ", enum.EnterprisePvdForOnlinePayment).Or("pvd = ? and mode !=?", enum.EnterprisePvdForOnlinePayment, enum.EnterpriseModeForSchool).Or("enterprise_id = 7") |
|
|
|
} |
|
|
|
if req.Name != "" { |
|
|
|
eg.And("name like ?", "%"+req.Name+"%") |
|
|
|
} |
|
|
|