| 123456789101112131415161718192021222324252627 |
- package com.hr.controller;
- import com.alibaba.fastjson.JSONObject;
- import com.hr.externelSystem.BizHandlerFactory;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.RequestBody;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- @RestController
- @RequestMapping("/callback")
- public class TestCallBackController {
- @Autowired
- private BizHandlerFactory bizHandlerFactory;
- @RequestMapping("/test")
- public Boolean test(@RequestBody JSONObject json) {
- // 根据序列号查询到对应的业务id
- String businessNo = "aabbccddee";
- String interfaceNo = "aiwen";
- Boolean result = bizHandlerFactory.doCallBack(interfaceNo,businessNo,json);
- return result;
- }
- }
|