diff --git a/app/task/svc/svc_elm_order.go b/app/task/svc/svc_elm_order.go index 21e9265..9815878 100644 --- a/app/task/svc/svc_elm_order.go +++ b/app/task/svc/svc_elm_order.go @@ -108,6 +108,9 @@ func OrdersElmGet(p int, pageSize int, sTime, eTime int64, timeType string, pvd } for _, v := range order.Result { + if v.Sid == nil { + continue + } if *v.OrderState == 1 { continue } @@ -134,6 +137,9 @@ func OrdersElmGet(p int, pageSize int, sTime, eTime int64, timeType string, pvd orderType = 1 } res.Uid = utils.StrToInt(ex[2]) + if res.Uid == 0 { + continue + } res.StationUid = utils.StrToInt(ex[3]) res.Oid = utils.StrToInt64(utils.OrderUUID(utils.StrToInt(ex[2]))) res.PvdOid = utils.Int64ToStr(*v.BizOrderId)