From 531050d659f23b7dcb00d269bdf7bef86ab66c09 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期日, 03 十一月 2024 18:37:55 +0800
Subject: [PATCH] bug修改
---
ruoyi-service/ruoyi-integration/src/main/java/com/ruoyi/integration/barrierGate/controller/CouponController.java | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ruoyi-service/ruoyi-integration/src/main/java/com/ruoyi/integration/barrierGate/controller/CouponController.java b/ruoyi-service/ruoyi-integration/src/main/java/com/ruoyi/integration/barrierGate/controller/CouponController.java
index f98d54e..30b9ded 100644
--- a/ruoyi-service/ruoyi-integration/src/main/java/com/ruoyi/integration/barrierGate/controller/CouponController.java
+++ b/ruoyi-service/ruoyi-integration/src/main/java/com/ruoyi/integration/barrierGate/controller/CouponController.java
@@ -1,10 +1,12 @@
package com.ruoyi.integration.barrierGate.controller;
+import com.alibaba.fastjson.JSON;
import com.ruoyi.integration.barrierGate.model.BaseResponse;
import com.ruoyi.integration.barrierGate.model.GetCouponReq;
import com.ruoyi.integration.barrierGate.model.GetCouponResp;
import com.ruoyi.integration.barrierGate.model.UsedCoupon;
import com.ruoyi.integration.barrierGate.server.CouponService;
+import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@@ -14,6 +16,7 @@
* @author zhibing.pu
* @Date 2024/9/5 11:10
*/
+@Slf4j
@RestController
@RequestMapping("/coupon")
public class CouponController {
@@ -30,7 +33,8 @@
*/
@ResponseBody
@PostMapping("/getCoupon")
- public BaseResponse<GetCouponResp> getCoupon(@RequestBody GetCouponReq req){
+ public BaseResponse<GetCouponResp> getCoupon(GetCouponReq req){
+ log.warn("停车获取优惠券请求参数:{}", JSON.toJSONString(req));
GetCouponResp coupon = couponService.getCoupon(req);
return BaseResponse.ok(coupon);
}
@@ -43,7 +47,8 @@
*/
@ResponseBody
@PostMapping("/usedCoupon")
- public BaseResponse usedCoupon(@RequestBody UsedCoupon req){
+ public BaseResponse usedCoupon(UsedCoupon req){
+ log.warn("停车使用优惠券请求参数:{}", JSON.toJSONString(req));
couponService.usedCoupon(req);
return BaseResponse.ok();
}
--
Gitblit v1.7.1