瀏覽代碼

update

tmp
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+"%")
}


Loading…
取消
儲存