|
@@ -10,12 +10,13 @@ import (
|
|
etaTrialService "eta/eta_api/services/eta_trial"
|
|
etaTrialService "eta/eta_api/services/eta_trial"
|
|
"eta/eta_api/utils"
|
|
"eta/eta_api/utils"
|
|
"fmt"
|
|
"fmt"
|
|
- "github.com/rdlucklib/rdluck_tools/paging"
|
|
|
|
- "github.com/shopspring/decimal"
|
|
|
|
"os"
|
|
"os"
|
|
"strconv"
|
|
"strconv"
|
|
"strings"
|
|
"strings"
|
|
"time"
|
|
"time"
|
|
|
|
+
|
|
|
|
+ "github.com/rdlucklib/rdluck_tools/paging"
|
|
|
|
+ "github.com/shopspring/decimal"
|
|
)
|
|
)
|
|
|
|
|
|
// ManualEdbController 手工指标服务(鉴权)
|
|
// ManualEdbController 手工指标服务(鉴权)
|
|
@@ -585,6 +586,11 @@ func (c *ManualEdbController) EditExcelData() {
|
|
dateValueMap := make(map[string]string)
|
|
dateValueMap := make(map[string]string)
|
|
//取到所有数据
|
|
//取到所有数据
|
|
for _, dateValue := range req.Data {
|
|
for _, dateValue := range req.Data {
|
|
|
|
+ // 检验时间格式
|
|
|
|
+ _, err := time.Parse(utils.FormatDate, dateValue.Date)
|
|
|
|
+ if err != nil {
|
|
|
|
+ continue
|
|
|
|
+ }
|
|
dateValueMap[dateValue.Date] = strconv.FormatFloat(dateValue.Value, 'f', -1, 64)
|
|
dateValueMap[dateValue.Date] = strconv.FormatFloat(dateValue.Value, 'f', -1, 64)
|
|
}
|
|
}
|
|
|
|
|