Browse Source

特殊处理固定收益

xyxie 1 week ago
parent
commit
360a44534e

+ 2 - 2
controller/contract/pre_register.go

@@ -920,7 +920,7 @@ func (rg *PreRegisterController) Detail(c *gin.Context) {
 
 	//获取ficc小套餐品种
 	// 获取FICC权限
-	ficcCond := `enabled = 1 AND permission_type = 0 AND product_id = ? AND classify_name <> "市场策略"`
+	ficcCond := `enabled = 1 AND permission_type = 0 AND product_id = ? AND classify_name <> "市场策略" AND classify_name <> "固定收益"`
 	ficcPars := make([]interface{}, 0)
 	ficcPars = append(ficcPars, 1)
 	items, e := crm.GetPermissionSetItemsByCondition(ficcCond, ficcPars)
@@ -944,7 +944,7 @@ func (rg *PreRegisterController) Detail(c *gin.Context) {
 		if items[i].ParentId > 0 {
 			continue
 		}
-		if items[i].PermissionName == "市场策略" {
+		if items[i].PermissionName == "市场策略" || items[i].PermissionName == "固定收益" {
 			continue
 		}
 		checkList := make([]int, 0)

+ 1 - 1
controller/contract/service.go

@@ -119,7 +119,7 @@ func (sr *ServiceController) List(c *gin.Context) {
 				if items[j].ParentId > 0 {
 					continue
 				}
-				if items[j].PermissionName == "市场策略" {
+				if items[j].PermissionName == "市场策略" || items[j].PermissionName == "固定收益" {
 					continue
 				}
 				checkList := make([]int, 0)

+ 1 - 1
controller/crm/contract.go

@@ -198,7 +198,7 @@ func (rg *ContractController) PermissionList(c *gin.Context) {
 			if items[i].ParentId > 0 {
 				continue
 			}
-			if items[i].PermissionName == "市场策略" {
+			if items[i].PermissionName == "市场策略" || items[i].PermissionName == "固定收益" {
 				continue
 			}
 			checkList := make([]int, 0)

+ 1 - 1
services/crm/contract.go

@@ -165,7 +165,7 @@ func GetServicePermissionMap(serviceList []*crm.ContractServiceAndDetailRespItem
 			}
 			for _, v := range permissionList {
 				//大套餐中 市场策略暂时不作为勾选项
-				if v.ClassifyName == "市场策略" {
+				if v.ClassifyName == "市场策略" || v.ClassifyName == "固定收益" {
 					continue
 				}
 				checkPermissionIdMap[v.ChartPermissionId] = v.ChartPermissionId