Browse Source

RTR 业务计提

lfx 4 days ago
parent
commit
8af2bb3a38

+ 3 - 3
mjava-ts/src/main/java/com/malk/taisen/controller/RtrController.java

@@ -7,6 +7,7 @@ import com.malk.utils.UtilServlet;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
@@ -22,9 +23,8 @@ public class RtrController {
     private RtrServer rtrServer;
 
     @PostMapping("/rtr")
-    McR notice(HttpServletRequest request) {
-
-        Map data = UtilServlet.getParamMap(request);
+    McR notice(@RequestBody Map<String, Object> data) {
+        log.info("RtrController:notice {}", data);
         String instanceId = UtilMap.getString(data, "instanceId");
         String type = UtilMap.getString(data, "type");
         if (type.equals("YWJT")) {