|
|
@@ -1112,6 +1112,10 @@ func SelfSupportForSchoolOrdList(c *gin.Context) { |
|
|
|
"name": enum.SelfSupportForSchoolOrdOrderStatus.String(enum.SelfSupportForSchoolOrdOrderStatusForRefund), |
|
|
|
"value": enum.SelfSupportForSchoolOrdOrderStatusForRefund, |
|
|
|
}, |
|
|
|
{ |
|
|
|
"name": enum.SelfSupportForSchoolOrdOrderStatus.String(enum.SelfSupportForSchoolOrdOrderStatusForCancel), |
|
|
|
"value": enum.SelfSupportForSchoolOrdOrderStatusForCancel, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, nil) |
|
|
|
return |
|
|
@@ -1563,6 +1567,18 @@ func SelfSupportForSchoolArrearsOrdDebtCancel(c *gin.Context) { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
selfSupportForSchoolOrdDb := db.SelfSupportForSchoolOrd{} |
|
|
|
selfSupportForSchoolOrdDb.Set(req.OutOrderNo) |
|
|
|
ord, err := selfSupportForSchoolOrdDb.GetSelfSupportForSchoolOrd() |
|
|
|
if err != nil { |
|
|
|
e.OutErr(c, e.ERR_DB_ORM, err.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
if ord == nil { |
|
|
|
e.OutErr(c, e.ERR_NO_DATA, "未查询到对应订单记录") |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
err, resp := svc.CurlAlipayPlanetEcocampusApiDebtCancel(md2.CurlAlipayPlanetEcocampusApiDebtCancel{ |
|
|
|
OutOrderNo: req.OutOrderNo, |
|
|
|
MerchantCode: req.MerchantCode, |
|
|
@@ -1571,6 +1587,11 @@ func SelfSupportForSchoolArrearsOrdDebtCancel(c *gin.Context) { |
|
|
|
e.OutErr(c, e.ERR, err.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
//TODO::修改订单状态为“已撤销” |
|
|
|
ord.OrderStatus = enum.SelfSupportForSchoolOrdOrderStatusForRefund |
|
|
|
selfSupportForSchoolOrdDb.SelfSupportForSchoolOrdUpdate(ord, "order_status") |
|
|
|
|
|
|
|
e.OutSuc(c, resp, nil) |
|
|
|
return |
|
|
|
} |
|
|
|