Browse Source

1数据大屏端

master
huangjiajun 6 months ago
parent
commit
6fece39017
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      app/bigData/svc/svc_data.go

+ 3
- 0
app/bigData/svc/svc_data.go View File

@@ -215,6 +215,9 @@ func LeftDataForSorting() (resp []md.LeftDataForMakeResp, err error) {

//1、查找不等于4 5
today := utils.GetTimeRange("today")
if time.Now().Hour() < 2 {
today = utils.GetTimeRange("yesterday")
}
var orders []model.Order
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 {


Loading…
Cancel
Save