修改退还用户优惠卷

This commit is contained in:
2024-06-14 17:21:47 +08:00
parent 81d90bbe5e
commit fec6306b3c
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -409,13 +409,13 @@ func (r *OrderService) PdfToImg() (bool, error) {
}
// ReturnOrderCoupon 退还用户优惠卷
func (r *OrderService) ReturnOrderCoupon(orderNo string, tx *gorm.DB) (bool, error) {
func (r *OrderService) ReturnOrderCoupon(orderId int64, tx *gorm.DB) (bool, error) {
orderCouponDao := dao.OrderCouponDao{}
userCouponDao := dao.UserCouponDao{}
// 获取该订单全部优惠卷数据
maps := make(map[string]interface{})
maps["order_no"] = orderNo
maps["order_id"] = orderId
orderCoupons, err := orderCouponDao.GetOrderCouponList(maps)
if err != nil {
return false, err