|
@@ -110,6 +110,15 @@ func (c *ChartInfo) TableName() string {
|
|
|
return "chart_info"
|
|
|
}
|
|
|
|
|
|
+func (e *ChartInfo) AfterFind(db *gorm.DB) (err error) {
|
|
|
+ e.StartDate = utils.GormDateStrToDateTimeStr(e.StartDate)
|
|
|
+ e.EndDate = utils.GormDateStrToDateTimeStr(e.EndDate)
|
|
|
+ e.SeasonStartDate = utils.GormDateStrToDateTimeStr(e.SeasonStartDate)
|
|
|
+ e.SeasonEndDate = utils.GormDateStrToDateTimeStr(e.SeasonEndDate)
|
|
|
+
|
|
|
+ return
|
|
|
+}
|
|
|
+
|
|
|
func GetChartInfoByUniqueCode(uniqueCode string) (item *ChartInfo, err error) {
|
|
|
o := global.DmSQL["data"]
|
|
|
sql := ` SELECT * FROM chart_info WHERE unique_code=? `
|