|
@@ -55,11 +55,10 @@ func (this *ExcelInfoController) GetTableDetail() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- key := utils.HZ_CHART_LIB_EXCEL_TABLE_DETAIL + ":" + uniqueCode
|
|
|
resp := new(response.ExcelTableDetailResp)
|
|
|
excelInfo, err := models.GetExcelInfoByUniqueCode(uniqueCode)
|
|
|
if err != nil {
|
|
|
- if err.Error() == utils.ErrNoRow() {
|
|
|
+ if utils.IsErrNoRow(err) {
|
|
|
br.Msg = "该表格已被删除,请刷新页面"
|
|
|
br.ErrMsg = "该表格已被删除,请刷新页面,Err:" + err.Error()
|
|
|
return
|
|
@@ -312,7 +311,6 @@ func (this *ExcelInfoController) GetTableDetail() {
|
|
|
}
|
|
|
|
|
|
resp.IsAuth = true
|
|
|
-
|
|
|
resp.TableInfo = tableData
|
|
|
resp.Source = excelInfo.Source
|
|
|
resp.ExcelType = excelInfo.ExcelType
|