DengBiao 10ヶ月前
コミット
8426a90cd4
2個のファイルの変更8行の追加0行の削除
  1. +2
    -0
      app/admin/md/md_central_kitchen_for_school_order.go
  2. +6
    -0
      app/admin/svc/order/svc_central_kitchen_for_school_order.go

+ 2
- 0
app/admin/md/md_central_kitchen_for_school_order.go ファイルの表示

@@ -31,6 +31,8 @@ type CentralKitchenForSchoolOrderRefundListReq struct {
EndDate string `json:"end_date" label:"截止时间"`
StartRefundTime string `json:"start_refund_time" label:"开始-退订时间"`
EndRefundTime string `json:"end_refund_time" label:"截止-退订时间"`
StartRefundDate string `json:"start_refund_date" label:"开始-退款时间"`
EndRefundDate string `json:"end_refund_date" label:"截止-退款时间"`
OutTradeNo string `json:"out_trade_no" label:"订单号"`
OutRequestNo string `json:"out_request_no" label:"退款请求号"`
GradeId int `json:"grade_id" label:"年级"`


+ 6
- 0
app/admin/svc/order/svc_central_kitchen_for_school_order.go ファイルの表示

@@ -56,6 +56,12 @@ func CentralKitchenForSchoolOrderRefundList(req md.CentralKitchenForSchoolOrderR
if req.EndRefundTime != "" {
sess.And("central_kitchen_for_school_user_with_day.date <= ?", req.EndRefundTime)
}
if req.StartRefundDate != "" {
sess.And("central_kitchen_for_school_user_refund_day.refund_date >= ?", req.StartRefundDate)
}
if req.EndRefundDate != "" {
sess.And("central_kitchen_for_school_user_refund_day.refund_date <= ?", req.EndRefundDate)
}
if req.OutTradeNo != "" {
sess.And("central_kitchen_for_school_user_refund_day.out_trade_no like ?", "%"+req.OutTradeNo+"%")
}


読み込み中…
キャンセル
保存