|
@@ -13,8 +13,8 @@ import (
|
|
|
//钢联
|
|
|
|
|
|
type GlData struct {
|
|
|
- InputValue string `orm:"column(DATA_VALUE)" description:"日期"`
|
|
|
- DataTime string `orm:"column(DATA_DATE)" description:"值"`
|
|
|
+ InputValue float64 `orm:"column(DATA_VALUE)" description:"日期"`
|
|
|
+ DataTime string `orm:"column(DATA_DATE)" description:"值"`
|
|
|
}
|
|
|
|
|
|
func GetGlDataByCondition(condition string, pars []interface{}) (item []*GlData, err error) {
|
|
@@ -55,7 +55,7 @@ func AddEdbDataFromMysteel(edbCode string) (err error) {
|
|
|
for i := 0; i < dataLen; i++ {
|
|
|
item := glDataList[i]
|
|
|
eDate := item.DataTime
|
|
|
- sValue := item.InputValue
|
|
|
+ sValue := utils.SubFloatToString(item.InputValue, 30)
|
|
|
if sValue != "" {
|
|
|
if _, ok := existMap[eDate]; !ok {
|
|
|
dataTime, err := time.Parse(utils.FormatDate, eDate)
|
|
@@ -131,7 +131,7 @@ func RefreshEdbDataFromMysteel(edbInfoId int, edbCode, startDate string) (err er
|
|
|
for _, v := range glDataList {
|
|
|
item := v
|
|
|
eDate := item.DataTime
|
|
|
- sValue := item.InputValue
|
|
|
+ sValue :=utils.SubFloatToString(item.InputValue, 30)
|
|
|
|
|
|
if findItem, ok := existMap[v.DataTime]; !ok {
|
|
|
if sValue != "" {
|