Эх сурвалжийг харах

Merge branch 'bug/5023' into debug

Roc 8 сар өмнө
parent
commit
f91bd5ab55

+ 2 - 0
models/edb_info.go

@@ -1392,8 +1392,10 @@ func EdbInfoAdd(req *AddEdbInfoParams, serverUrl string, sysUserId int, sysUserR
 	edbInfo.EdbCode = req.EdbCode
 	edbInfo.EdbName = req.EdbName
 	edbInfo.EdbNameSource = req.EdbName
+	edbInfo.EdbNameEn = req.EdbName
 	edbInfo.Frequency = req.Frequency
 	edbInfo.Unit = req.Unit
+	edbInfo.UnitEn = req.Unit
 	edbInfo.ClassifyId = req.ClassifyId
 	edbInfo.SysUserId = sysUserId
 	edbInfo.SysUserRealName = sysUserRealName

+ 1 - 1
utils/constants.go

@@ -198,7 +198,7 @@ const (
 
 // 基础数据初始化日期
 var (
-	BASE_START_DATE         = time.Now().AddDate(-30, 0, 0).Format(FormatDate)        //基础数据开始日期
+	BASE_START_DATE         = `1900-01-01`                                            //基础数据开始日期
 	BASE_END_DATE           = time.Now().AddDate(4, 0, 0).Format(FormatDate)          //基础数据结束日期
 	BASE_START_DATE_UnSpace = time.Now().AddDate(-30, 0, 0).Format(FormatDateUnSpace) //基础数据开始日期
 	BASE_END_DATE_UnSpace   = time.Now().AddDate(4, 0, 0).Format(FormatDateUnSpace)   //基础数据结束日期