田源
2024-05-25 ba345976f0a6a67bcb20627e33251ded000a3d8f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.vci.ubcs.example.controller;
 
import com.vci.ubcs.example.service.ICalledIntegrationService;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
import java.net.MalformedURLException;
import java.rmi.RemoteException;
 
/**
 * 测试调用编码系统代码示例
 * @author ludc
 * @date 2024/2/27 20:34
 */
@AllArgsConstructor
@RestController
@RequestMapping("/callApplyCode")
public class TestCalledIntegrationController {
 
    @Autowired
    private ICalledIntegrationService calledIntegrationService;
 
    @GetMapping("/sendApplyCodeByWebService")
    public void sendApplyCodeByWebService() throws MalformedURLException, RemoteException {
        calledIntegrationService.sendApplyCodeByWebService();
    }
 
    @GetMapping("/sendApplyCodeByWebServicexml")
    public void sendApplyCodeByWebServicexml(@RequestParam("frequency") Integer frequency) throws MalformedURLException, RemoteException {
        calledIntegrationService.sendApplyCodeByWebServicexml(frequency);
    }
 
}