Browse Source

no message

xingzai 10 months ago
parent
commit
4b7b82eb72
1 changed files with 7 additions and 6 deletions
  1. 7 6
      services/user_permission.go

+ 7 - 6
services/user_permission.go

@@ -248,11 +248,11 @@ func GetUserApplyRecordCountByCompanyIdPay(companyIdPay int) (isCompanyApply boo
 	//	return
 	//}
 	// 客户申请
-	applyCount, e := models.GetApplyRecordCountByCompanyIdPay(companyIdPay)
-	if e != nil {
-		err = errors.New("GetApplyRecordCountByCompanyIdPay, Err: " + e.Error())
-		return
-	}
+	//applyCount, e := models.GetApplyRecordCountByCompanyIdPay(companyIdPay)
+	//if e != nil {
+	//	err = errors.New("GetApplyRecordCountByCompanyIdPay, Err: " + e.Error())
+	//	return
+	//}
 
 	//有研选订阅的权限的也不开放申请按钮
 	permissionCount, e := models.GetCompanyPermissionCheck(companyIdPay, utils.CHART_PERMISSION_ID_YANXUAN)
@@ -260,7 +260,8 @@ func GetUserApplyRecordCountByCompanyIdPay(companyIdPay int) (isCompanyApply boo
 		err = errors.New("GetCompanyPermissionCheck, Err: " + e.Error())
 		return
 	}
-	if applyCount > 0 || permissionCount > 0 {
+	//if applyCount > 0 || permissionCount > 0 {
+	if permissionCount > 0 {
 		isCompanyApply = true
 	}
 	return