|
@@ -89,7 +89,7 @@ func (c *CompanyContractCommon) ApplyContractDetail() {
|
|
|
permissions := make([]int, 0) // 合同权限IDs
|
|
|
checkItems := make([]*company_report_permission.PermissionLookItem, 0)
|
|
|
expMap := map[bool]string{false: "(3w)", true: "(5w)"} // 买方研选价格
|
|
|
-
|
|
|
+ var expensiveYx int
|
|
|
// 未选大套餐, 走老逻辑
|
|
|
if detail.RaiPackageType == 0 {
|
|
|
mapUpgrade := make(map[int]bool) // 通过合同获取所勾选的升级行业权限
|
|
@@ -98,8 +98,9 @@ func (c *CompanyContractCommon) ApplyContractDetail() {
|
|
|
if v.IsUpgrade == 1 {
|
|
|
mapUpgrade[v.ChartPermissionId] = true
|
|
|
}
|
|
|
- if v.ExpensiveYx == 1 {
|
|
|
+ if v.ExpensiveYx > 0 {
|
|
|
mapExpensive[v.ChartPermissionId] = true
|
|
|
+ expensiveYx = v.ExpensiveYx
|
|
|
}
|
|
|
permissions = append(permissions, v.ChartPermissionId)
|
|
|
}
|
|
@@ -135,7 +136,12 @@ func (c *CompanyContractCommon) ApplyContractDetail() {
|
|
|
}
|
|
|
// 买方研选
|
|
|
if p.ChartPermissionId == utils.CHART_PERMISSION_ID_YANXUAN {
|
|
|
- p.PermissionName += expMap[mapExpensive[p.ChartPermissionId]]
|
|
|
+ if expensiveYx == 1 {
|
|
|
+ p.PermissionName += "(5w)"
|
|
|
+ } else if expensiveYx == 2 {
|
|
|
+ p.PermissionName += "(10w)"
|
|
|
+ }
|
|
|
+ //p.PermissionName += expMap[mapExpensive[p.ChartPermissionId]]
|
|
|
}
|
|
|
}
|
|
|
}
|