DengBiao há 10 meses
ascendente
cometimento
8426a90cd4
2 ficheiros alterados com 8 adições e 0 eliminações
  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 Ver ficheiro

@@ -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 Ver ficheiro

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


Carregando…
Cancelar
Guardar