|
@@ -87,12 +87,14 @@ func (c *ExcelInfoController) GetSystemDate() {
|
|
|
} else {
|
|
|
date = req.DataTime //选择表格中的日期
|
|
|
}
|
|
|
- // 开始做日期变换
|
|
|
- date, err = excel2.HandleMixTableDateChange(date, req.Value)
|
|
|
- if err != nil {
|
|
|
- br.Msg = "日期变换失败!"
|
|
|
- br.ErrMsg = "日期变换失败,Err:" + err.Error()
|
|
|
- return
|
|
|
+ if date != "" {
|
|
|
+ // 开始做日期变换
|
|
|
+ date, err = excel2.HandleMixTableDateChange(date, req.Value)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "日期变换失败!"
|
|
|
+ br.ErrMsg = "日期变换失败,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -304,10 +306,9 @@ func (c *ExcelInfoController) CalculateData() {
|
|
|
}
|
|
|
}
|
|
|
resp := data_manage.BeforeAndAfterDateDataResp{
|
|
|
- List: dataListResp,
|
|
|
- Date: newDate,
|
|
|
- //ShowValue: utils.FormatTableDataShowValue(finalVal),
|
|
|
- ShowValue: finalVal,
|
|
|
+ List: dataListResp,
|
|
|
+ Date: newDate,
|
|
|
+ ShowValue: utils.FormatTableDataShowValue(finalVal),
|
|
|
}
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|