|
@@ -4,10 +4,7 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.jeecg.modules.largeScreen.service.impl.ASecondScreenServiceImpl;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -24,9 +21,10 @@ public class ASecondScreenChushihuaController {
|
|
|
/**
|
|
|
* 初始化数据(连接建立成功时调用)
|
|
|
* */
|
|
|
- @GetMapping("/chushihua/{id}")
|
|
|
+ @GetMapping("/chushihua")
|
|
|
@ApiOperation("初始化数据")
|
|
|
- public Map<String,Object> getList(@PathVariable("id")String id){
|
|
|
+ public Map<String,Object> getList(@RequestParam("id") String id){
|
|
|
+ System.out.println("==================================初始化数据===========================id="+id);
|
|
|
return secondScreenService.getList(id);
|
|
|
}
|
|
|
|