瀏覽代碼

新增所属区域

317699326@qq.com 1 月之前
父節點
當前提交
531ce9ce88
共有 2 個文件被更改,包括 8 次插入1 次删除
  1. 6 0
      controllers/roadshow/report.go
  2. 2 1
      models/roadshow/report_record.go

+ 6 - 0
controllers/roadshow/report.go

@@ -2097,6 +2097,7 @@ func (this *CalendarController) ResearcherReportExport() {
 	titleRow.AddCell().SetString("客户状态")
 	titleRow.AddCell().SetString("客户行业")
 	titleRow.AddCell().SetString("客户分类")
+	titleRow.AddCell().SetString("所属区域")
 
 	for _, v := range list {
 		dataRow := sheet.AddRow()
@@ -2113,6 +2114,11 @@ func (this *CalendarController) ResearcherReportExport() {
 		dataRow.AddCell().SetString(v.CompanyStatus)
 		dataRow.AddCell().SetString(v.CompanyIndustry)
 		dataRow.AddCell().SetString(v.CompanyClassify)
+		if v.EnglishCompany == 0 {
+			dataRow.AddCell().SetString("国内")
+		} else {
+			dataRow.AddCell().SetString("海外")
+		}
 	}
 
 	if e = xlsxFile.Save(downloadPath); e != nil {

+ 2 - 1
models/roadshow/report_record.go

@@ -151,6 +151,7 @@ type RsReportRecordList struct {
 	QuestionStatus             int       `description:"问答状态:0-未填写;1-已填写"`
 	QuestionMsgStatus          int       `description:"问答模板消息:0-未发送;1-已发送"`
 	CompanyType                string    `description:"客户类型:FICC/权益"`
+	EnglishCompany             int       `description:"是否为英文客户: 0-否; 1-是"`
 }
 
 // GetRsReportRecordList 获取路演统计详情返回数据
@@ -493,7 +494,7 @@ func UpdateRsReportRecordInteractionNumnMulti(items []*RsReportRecord) (err erro
 
 func GetReportResearcherExport(condition string, pars []interface{}) (list []*RsReportRecordList, err error) {
 	o := orm.NewOrm()
-	sql := ` SELECT a.*,b.theme,b.roadshow_platform,b.province,b.city,b.cooperation_name,c.company_industry,c.company_classify,c.question_status,c.question_msg_status
+	sql := ` SELECT a.*,b.theme,b.roadshow_platform,b.province,b.city,b.cooperation_name,c.company_industry,c.company_classify,c.question_status,c.question_msg_status,b.english_company
 				FROM  rs_report_record a 
 				join rs_calendar b on a.rs_calendar_id=b.rs_calendar_id
 				inner join rs_calendar_researcher AS c ON a.rs_calendar_id=c.rs_calendar_id AND a.rs_calendar_researcher_id=c.rs_calendar_researcher_id