|
@@ -5,7 +5,6 @@ import (
|
|
|
"hongze/hongze_mobile_admin/models/tables/english_company"
|
|
|
"hongze/hongze_mobile_admin/services"
|
|
|
"hongze/hongze_mobile_admin/utils"
|
|
|
- "strconv"
|
|
|
"strings"
|
|
|
)
|
|
|
|
|
@@ -77,22 +76,22 @@ func (this *CalendarController) CompanyDetail() {
|
|
|
for _, v := range permissionList {
|
|
|
permissionArr = append(permissionArr, v.PermissionName)
|
|
|
}
|
|
|
- readMap, err := services.GetFiccCountUserViewHistoryByCompanyIds(strconv.Itoa(companyId))
|
|
|
- if err != nil {
|
|
|
- this.FailWithMessage("获取阅读次数失败!", "获取阅读次数失败!Err:"+err.Error())
|
|
|
- return
|
|
|
- }
|
|
|
- readNum, ok := readMap[companyId]
|
|
|
- if !ok {
|
|
|
- readNum = 0
|
|
|
- }
|
|
|
+ //readMap, err := services.GetFiccCountUserViewHistoryByCompanyIds(strconv.Itoa(companyId))
|
|
|
+ //if err != nil {
|
|
|
+ // this.FailWithMessage("获取阅读次数失败!", "获取阅读次数失败!Err:"+err.Error())
|
|
|
+ // return
|
|
|
+ //}
|
|
|
+ //readNum, ok := readMap[companyId]
|
|
|
+ //if !ok {
|
|
|
+ // readNum = 0
|
|
|
+ //}
|
|
|
detailView.CompanyId = companyProductItem.CompanyId
|
|
|
detailView.CompanyName = companyProductItem.CompanyName
|
|
|
detailView.Status = companyProductItem.Status
|
|
|
detailView.IndustryId = companyProductItem.IndustryId
|
|
|
detailView.IndustryName = companyProductItem.IndustryName
|
|
|
detailView.PermissionName = strings.Join(permissionArr, "/")
|
|
|
- detailView.ReportReadTotal = readNum //ficc报告-累计阅读次数
|
|
|
+ detailView.ReportReadTotal = companyProductItem.ViewTotal //ficc报告-累计阅读次数
|
|
|
this.OkDetailed(detailView, "获取成功")
|
|
|
return
|
|
|
}
|