From 71c570cb2eec0d1bccacd1bf9daa0e8509c2b70f Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 16 Oct 2023 16:49:33 +0800 Subject: [PATCH] update --- .../hdl/enterprise_manage/hdl_enterprise.go | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/app/admin/hdl/enterprise_manage/hdl_enterprise.go b/app/admin/hdl/enterprise_manage/hdl_enterprise.go index 0b19794..53a89e4 100644 --- a/app/admin/hdl/enterprise_manage/hdl_enterprise.go +++ b/app/admin/hdl/enterprise_manage/hdl_enterprise.go @@ -100,32 +100,27 @@ func UserIdentityList(c *gin.Context) { } var resp interface{} - switch enterprise.Kind { - case enum.EnterpriseKindByCentralKitchenForSchool: + //判断校企类型 + if enterprise.Pvd == enum.EnterprisePvdForOnlinePayment && enterprise.Mode == enum.EnterpriseModeForSchool { resp, err = svc2.EnterpriseUserListByCentralKitchenForSchool(req) if err != nil { e.OutErr(c, e.ERR, err.Error()) return } - break - case enum.EnterpriseKindByCentralKitchenForFactory: - break - case enum.EnterpriseKindBySelfSupportForSchool: + } + if enterprise.Pvd == enum.EnterprisePvdForFaceScanPayment && enterprise.Mode == enum.EnterpriseModeForSchool { resp, err = svc2.EnterpriseUserListByCentralKitchenForSchool(req) if err != nil { e.OutErr(c, e.ERR, err.Error()) return } - break - case enum.EnterpriseKindBySelfSupportForFactory: - break - case enum.EnterpriseKindByNursingHome: + } + if enterprise.Kind == enum.EnterpriseKindByNursingHome { resp, err = svc2.EnterpriseUserListByNursingHome(req) if err != nil { e.OutErr(c, e.ERR, err.Error()) return } - break } e.OutSuc(c, resp, nil) return