Selaa lähdekoodia

update

add_mode
DengBiao 1 vuosi sitten
vanhempi
commit
7db8a7c6be
3 muutettua tiedostoa jossa 54 lisäystä ja 26 poistoa
  1. +26
    -0
      app/admin/hdl/hdl_audit_center.go
  2. +14
    -13
      app/admin/md/md_central_kitchen_for_school_order.go
  3. +14
    -13
      app/admin/svc/order/svc_central_kitchen_for_school_order.go

+ 26
- 0
app/admin/hdl/hdl_audit_center.go Näytä tiedosto

@@ -68,6 +68,32 @@ func CentralKitchenForSchoolOrderRefundList(c *gin.Context) {
"value": enum.CentralKitchenForSchoolUserRefundDayStateForAuditComplete,
},
},
"user_identity_kind_list": []map[string]interface{}{
{
"name": enum.UserIdentity.String(enum.UserIdentityForCentralKitchenForStudent),
"value": enum.UserIdentityForCentralKitchenForStudent,
},
{
"name": enum.UserIdentity.String(enum.UserIdentityForCentralKitchenForTeacher),
"value": enum.UserIdentityForCentralKitchenForTeacher,
},
{
"name": enum.UserIdentity.String(enum.UserIdentityForCentralKitchenForWorker),
"value": enum.UserIdentityForCentralKitchenForWorker,
},
{
"name": enum.UserIdentity.String(enum.UserIdentityForSelfSupportForStudent),
"value": enum.UserIdentityForSelfSupportForStudent,
},
{
"name": enum.UserIdentity.String(enum.UserIdentityForSelfSupportForTeacher),
"value": enum.UserIdentityForSelfSupportForTeacher,
},
{
"name": enum.UserIdentity.String(enum.UserIdentityForSelfSupportForWorker),
"value": enum.UserIdentityForSelfSupportForWorker,
},
},
}, nil)
return
}


+ 14
- 13
app/admin/md/md_central_kitchen_for_school_order.go Näytä tiedosto

@@ -1,19 +1,20 @@
package md

type CentralKitchenForSchoolOrderRefundListResp struct {
Id int `json:"id" label:"退款id"`
OutTradeNo string `json:"out_trade_no" label:"订单号"`
OutRequestNo string `json:"out_request_no" label:"退款请求号"`
Name string `json:"name" label:"姓名"`
Phone string `json:"phone" label:"用户电话"`
EnterpriseName string `json:"enterprise_name" label:"学校名称"`
ClassName string `json:"class_name" label:"班级名称"`
GradeName string `json:"grade_name" label:"年纪名称"`
Kind int `json:"kind" label:"订餐类型"`
Amount string `json:"amount" label:"退款金额"`
State int `json:"state" label:"退款订单状态"`
CreateAt string `json:"create_at" label:"申请时间"`
Memo string `json:"memo" label:"备注"`
Id int `json:"id" label:"退款id"`
OutTradeNo string `json:"out_trade_no" label:"订单号"`
OutRequestNo string `json:"out_request_no" label:"退款请求号"`
Name string `json:"name" label:"姓名"`
Phone string `json:"phone" label:"用户电话"`
EnterpriseName string `json:"enterprise_name" label:"学校名称"`
ClassName string `json:"class_name" label:"班级名称"`
GradeName string `json:"grade_name" label:"年纪名称"`
Kind int `json:"kind" label:"订餐类型"`
UserIdentityKind int `json:"user_identity_kind" label:"用户类型"`
Amount string `json:"amount" label:"退款金额"`
State int `json:"state" label:"退款订单状态"`
CreateAt string `json:"create_at" label:"申请时间"`
Memo string `json:"memo" label:"备注"`
}

type CentralKitchenForSchoolOrderRefundListReq struct {


+ 14
- 13
app/admin/svc/order/svc_central_kitchen_for_school_order.go Näytä tiedosto

@@ -126,19 +126,20 @@ func CentralKitchenForSchoolOrderRefundList(req md.CentralKitchenForSchoolOrderR

for _, v := range m {
resp = append(resp, md.CentralKitchenForSchoolOrderRefundListResp{
Id: v.CentralKitchenForSchoolUserRefundDay.Id,
OutTradeNo: v.CentralKitchenForSchoolUserRefundDay.OutTradeNo,
OutRequestNo: v.CentralKitchenForSchoolUserRefundDay.OutRequestNo,
Name: v.UserIdentity.Name,
Phone: v.User.Phone,
EnterpriseName: v.Enterprise.Name,
ClassName: v.Class.Name,
GradeName: v.Grade.Name,
Kind: v.CentralKitchenForSchoolUserWithDay.Kind,
Amount: v.CentralKitchenForSchoolUserRefundDay.Amount,
State: v.CentralKitchenForSchoolUserRefundDay.State,
CreateAt: v.CentralKitchenForSchoolUserRefundDay.CreateAt,
Memo: v.CentralKitchenForSchoolUserRefundDay.Memo,
Id: v.CentralKitchenForSchoolUserRefundDay.Id,
OutTradeNo: v.CentralKitchenForSchoolUserRefundDay.OutTradeNo,
OutRequestNo: v.CentralKitchenForSchoolUserRefundDay.OutRequestNo,
Name: v.UserIdentity.Name,
Phone: v.User.Phone,
EnterpriseName: v.Enterprise.Name,
ClassName: v.Class.Name,
GradeName: v.Grade.Name,
Kind: v.CentralKitchenForSchoolUserWithDay.Kind,
UserIdentityKind: v.UserIdentity.Kind,
Amount: v.CentralKitchenForSchoolUserRefundDay.Amount,
State: v.CentralKitchenForSchoolUserRefundDay.State,
CreateAt: v.CentralKitchenForSchoolUserRefundDay.CreateAt,
Memo: v.CentralKitchenForSchoolUserRefundDay.Memo,
})
}
return


Ladataan…
Peruuta
Tallenna