diff --git a/hdl/hdl_upgrade.go b/hdl/hdl_upgrade.go index c3494c6..d2b5a55 100644 --- a/hdl/hdl_upgrade.go +++ b/hdl/hdl_upgrade.go @@ -394,7 +394,7 @@ func GetFinishCount(params map[string]string, blockStarChain string, engine *xor where1 := "" if task.WithinDays > 0 { sqlStr4 := fmt.Sprintf(" %s >'%s' AND %s < '%s'", "create_at", stime.Format("2006-01-02 15:04:05"), "create_at", etime.Format("2006-01-02 15:04:05")) - where1 = fmt.Sprintf("AND %s >'%d' AND %s < '%d'", "create_at", stime.Unix(), "create_at", etime.Unix()) + where1 = fmt.Sprintf("AND %s >'%d' AND %s < '%d'", "ol.create_at", stime.Unix(), "ol.create_at", etime.Unix()) sess = sess.And(sqlStr4) } withdrawingSuccess, _ := sess.Sum(&model.FinWithdrawApply{}, "amount")