xingzai 1 жил өмнө
parent
commit
3083c212ca

+ 8 - 0
controllers/yanxuan_special.go

@@ -234,6 +234,14 @@ func (this *YanxuanSpecialController) Detail() {
 		resp.HasPermission = 2
 		resp.HasPermission = 2
 	}
 	}
 
 
+	//判断是否属于审核人员
+	mobileSlice := strings.Split(cnf.ConfigValue, ",")
+	for _, v := range mobileSlice {
+		if v == sysUser.Mobile {
+			resp.IsApprovalAdmin = true
+		}
+	}
+
 	br.Data = resp
 	br.Data = resp
 	br.Ret = 200
 	br.Ret = 200
 	br.Success = true
 	br.Success = true

+ 5 - 4
models/cygx_yanxuan_special.go

@@ -63,10 +63,11 @@ type CygxYanxuanSpecialItem struct {
 
 
 type CygxYanxuanSpecialResp struct {
 type CygxYanxuanSpecialResp struct {
 	CygxYanxuanSpecialItem
 	CygxYanxuanSpecialItem
-	Docs          []Doc
-	CompanyTags   []string
-	IndustryTags  []string
-	HasPermission int `description:"1:正常展示,2:不展示"`
+	Docs            []Doc
+	CompanyTags     []string
+	IndustryTags    []string
+	HasPermission   int  `description:"1:正常展示,2:不展示"`
+	IsApprovalAdmin bool // 是否是审批人员
 }
 }
 
 
 type Doc struct {
 type Doc struct {