|
@@ -121,6 +121,7 @@ func (this *CompanyApplyController) ApplyContractHistoryList() {
|
|
|
// return
|
|
|
//}
|
|
|
var expensiveYx int
|
|
|
+ var pints float64 // 现在就一个行业有点数,先这么写吧
|
|
|
hasPermissions, e := company.GetCompanyContractPermissionByCompanyContractId(companyContract.CompanyContractId)
|
|
|
if e != nil {
|
|
|
br.Msg = "获取失败"
|
|
@@ -133,8 +134,11 @@ func (this *CompanyApplyController) ApplyContractHistoryList() {
|
|
|
if p.ExpensiveYx > 0 {
|
|
|
expensiveYx = p.ExpensiveYx
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
+ if p.Points > 0 {
|
|
|
+ pints = p.Points
|
|
|
+ }
|
|
|
+ }
|
|
|
checkItems := make([]*company.PermissionLookItem, 0)
|
|
|
raiPermissions, e := company.GetPermissionLookItemsExt("2", utils.COMPANY_PRODUCT_RAI_NAME)
|
|
|
if e != nil {
|
|
@@ -170,8 +174,8 @@ func (this *CompanyApplyController) ApplyContractHistoryList() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if n.ChartPermissionId == utils.YAN_XUAN_KOU_DIAN_BAO_ID && n.Points > 0 {
|
|
|
- n.PermissionName += "(" + fmt.Sprint(n.Points) + ")点"
|
|
|
+ if n.ChartPermissionId == utils.YAN_XUAN_KOU_DIAN_BAO_ID && pints > 0 {
|
|
|
+ n.PermissionName += "(" + fmt.Sprint(pints) + ")点"
|
|
|
}
|
|
|
checkList = append(checkList, n.ChartPermissionId)
|
|
|
checkItems = append(checkItems, n)
|
|
@@ -203,8 +207,8 @@ func (this *CompanyApplyController) ApplyContractHistoryList() {
|
|
|
//n.PermissionName += "(3w)"
|
|
|
}
|
|
|
|
|
|
- if n.ChartPermissionId == utils.YAN_XUAN_KOU_DIAN_BAO_ID && n.Points > 0 {
|
|
|
- n.PermissionName += "(" + fmt.Sprint(n.Points) + ")点"
|
|
|
+ if n.ChartPermissionId == utils.YAN_XUAN_KOU_DIAN_BAO_ID && pints > 0 {
|
|
|
+ n.PermissionName += "(" + fmt.Sprint(pints) + ")点"
|
|
|
}
|
|
|
//n.PermissionName += expMap[match.ExpensiveYx]
|
|
|
checkList = append(checkList, n.ChartPermissionId)
|