|
@@ -6,6 +6,7 @@ import ( |
|
|
"applet/app/bigData/md" |
|
|
"applet/app/bigData/md" |
|
|
"applet/app/db" |
|
|
"applet/app/db" |
|
|
"applet/app/db/model" |
|
|
"applet/app/db/model" |
|
|
|
|
|
"applet/app/utils" |
|
|
"encoding/json" |
|
|
"encoding/json" |
|
|
"time" |
|
|
"time" |
|
|
) |
|
|
) |
|
@@ -213,8 +214,9 @@ func LeftDataForSorting() (resp []md.LeftDataForMakeResp, err error) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//1、查找不等于4 5 |
|
|
//1、查找不等于4 5 |
|
|
|
|
|
today := utils.GetTimeRange("today") |
|
|
var orders []model.Order |
|
|
var orders []model.Order |
|
|
err = engine.Where(" state != 4 and state != 5").Find(&orders) |
|
|
|
|
|
|
|
|
err = engine.Where(" state != 4 and state != 5 and create_at>=?", time.Unix(today["start"], 0).Format("2006-01-02 15:04:05")).Find(&orders) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|