|
@@ -475,10 +475,10 @@ func (this *EdbInfoController) ExportCCFList() {
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- fileName := `CCF化纤`
|
|
|
- if len(indexList) > 0 {
|
|
|
- fileName = indexList[0].IndexName
|
|
|
- }
|
|
|
+ fileName := `CCF化纤信息`
|
|
|
+ //if len(indexList) > 0 {
|
|
|
+ // fileName = indexList[0].IndexName
|
|
|
+ //}
|
|
|
fileName += time.Now().Format("06.01.02") + `.xlsx` //文件名称
|
|
|
this.Ctx.Output.Download(downFile, fileName)
|
|
|
defer func() {
|
|
@@ -580,7 +580,10 @@ func (this *EdbInfoController) CCFStockTable() {
|
|
|
item, e := excelOb.GetItemByCondition(cond, pars, fmt.Sprintf("%s DESC", excelOb.Cols().ExcelDate))
|
|
|
if e != nil {
|
|
|
if e.Error() == utils.ErrNoRow() {
|
|
|
- br.Msg = "表格不存在"
|
|
|
+ br.Ret = 200
|
|
|
+ br.Success = true
|
|
|
+ br.Msg = "该日期暂无数据"
|
|
|
+ br.Data = data_manage.CCFStockExcel{}
|
|
|
return
|
|
|
}
|
|
|
br.Msg = "获取失败"
|