38 lines
856 B
Java
38 lines
856 B
Java
package com.ruoyi.api.controller;
|
|
|
|
import com.ruoyi.api.service.ITestService;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
@RestController
|
|
@RequestMapping("/test")
|
|
public class TestController {
|
|
|
|
@Resource
|
|
private ITestService testService;
|
|
|
|
@GetMapping("/sendSsjData")
|
|
public String sendSsjData(Integer id) {
|
|
boolean b = testService.sendSsjData(id);
|
|
if (!b) {
|
|
return "error";
|
|
}
|
|
return "success";
|
|
}
|
|
|
|
|
|
@GetMapping("/sendDdjData")
|
|
public String sendDdjData(Integer id) {
|
|
boolean b = testService.sendDdjData(id);
|
|
if (!b) {
|
|
return "error";
|
|
}
|
|
return "success";
|
|
}
|
|
|
|
|
|
}
|