sql=fmt.Sprintf("SELECT id, `name` AS tit,type,`desc` AS content, tags ,examples,codes,base_model,model,api_path,version,category,form,access_status FROM task_type WHERE deleted = 0 and publish_status = 1 %s LIMIT %d,%d;",where,offset,size)
sql=fmt.Sprintf("SELECT id, `name` AS tit,type,`desc` AS content, tags ,examples,codes,base_model,model,api_path,version,category,form,access_status FROM task_type WHERE deleted = 0 and access_status = 1 %s LIMIT %d,%d;",where,offset,size)
// Make sure to close the sender on exit to release resources.
defersender.Close()
// Make sure to close the sender on exit to release resources.
currentTime:=time.Now()
temp:=fmt.Sprintf("-%dh",2)
...
...
@@ -137,7 +138,7 @@ func startDebit() {
logs.Debug("startDebit before sql = %s",dayTime)
sql:=fmt.Sprintf("SELECT time, uid,sum(fee) AS amount FROM bills WHERE time >= '%s' and time <= '%s' SAMPLE BY 1d ALIGN TO CALENDAR GROUP BY uid,time;",start,end)
sql:=fmt.Sprintf("SELECT time, uid,sum(fee) AS amount FROM bills WHERE uid != '0' and time >= '%s' and time <= '%s' SAMPLE BY 1d ALIGN TO CALENDAR GROUP BY uid,time;",start,end)