|
@@ -60,6 +60,7 @@ func (this *CalendarController) CompanySearch() {
|
|
|
// @Description 我的日历列表接口
|
|
|
// @Param CompanyId query int true "公司id"
|
|
|
// @Param EnglishCompany query int true "是否为英文客户"
|
|
|
+// @Param CompanyType query string true "客户类型:'ficc','权益',传空默认为ficc,"
|
|
|
// @Success 200 {object} roadshow.CompanyDetailView
|
|
|
// @router /company/detail [get]
|
|
|
func (this *CalendarController) CompanyDetail() {
|
|
@@ -84,10 +85,14 @@ func (this *CalendarController) CompanyDetail() {
|
|
|
return
|
|
|
}
|
|
|
englishCompany, _ := this.GetInt("EnglishCompany")
|
|
|
+ companyType := this.GetString("CompanyType")
|
|
|
productId := services.GetProductId(sysUser.RoleTypeCode)
|
|
|
if productId == 0 {
|
|
|
productId = 1
|
|
|
}
|
|
|
+ if companyType == utils.COMPANY_CLASSIFY_RAI {
|
|
|
+ productId = 2
|
|
|
+ }
|
|
|
detailView := new(roadshow.CompanyDetailView)
|
|
|
if englishCompany == 0 {
|
|
|
companyProductItem, err := company.GetCompanyProductByCompanyIdAndProductId(companyId, productId)
|