|
@@ -3,11 +3,16 @@ package com.fdkankan.manage.controller;
|
|
|
|
|
|
import com.fdkankan.manage.common.ResultData;
|
|
|
import com.fdkankan.manage.entity.JyPlatform;
|
|
|
+import com.fdkankan.manage.entity.JyUser;
|
|
|
import com.fdkankan.manage.service.IJyPlatformService;
|
|
|
+import com.fdkankan.manage.service.IJyUserService;
|
|
|
import com.fdkankan.manage.vo.request.JyPlatformParam;
|
|
|
+import com.fdkankan.manage.vo.request.UserParam;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* <p>
|
|
|
* 前端控制器
|
|
@@ -22,12 +27,23 @@ public class IndexController {
|
|
|
|
|
|
@Autowired
|
|
|
IJyPlatformService jyPlatformService;
|
|
|
+ @Autowired
|
|
|
+ IJyUserService jyUserService;
|
|
|
|
|
|
@GetMapping("/addressKey/{address}")
|
|
|
public ResultData getByAddress(@PathVariable String address){
|
|
|
return ResultData.ok(jyPlatformService.getByAddress(address));
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("test")
|
|
|
+ public ResultData test(){
|
|
|
+ UserParam userParam = new UserParam();
|
|
|
+ userParam.setRyId("11");
|
|
|
+ userParam.setRyNo("122");
|
|
|
+ List<JyUser> jyUserList = jyUserService.getByAddParam(userParam);
|
|
|
+
|
|
|
+ return ResultData.ok(jyUserList);
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|