DengBiao преди 9 месеца
родител
ревизия
d384a67c37
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. +1
    -1
      app/customer/svc/order/svc_central_kitchen_for_school_order.go

+ 1
- 1
app/customer/svc/order/svc_central_kitchen_for_school_order.go Целия файл

@@ -14,7 +14,7 @@ import (
)

func OrderList(req md.CentralKitchenForSchoolOrderListReq, platform string) (m []model.CentralKitchenForSchoolPackageOrd, total int64, err error) {
sess := db.Db.Desc("id").Where("user_identity_id =?", req.UserIdentityId).Limit(req.Limit, (req.Page-1)*req.Limit)
sess := db.Db.Desc("id").Where("user_identity_id =?", req.UserIdentityId).And("state != 2").Limit(req.Limit, (req.Page-1)*req.Limit)
if req.StartDate != "" && req.EndDate != "" {
sess.And("create_at >= ? And create_at <= ?", req.StartDate, req.EndDate)
}


Зареждане…
Отказ
Запис