|
@@ -10,6 +10,7 @@ import com.ruoyi.web.work.service.IBindUserService;
|
|
|
import com.ruoyi.web.work.service.IUserService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import io.swagger.annotations.ApiParam;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -44,15 +45,16 @@ public class Api_UserController extends BaseController {
|
|
|
return bindUserService.remove(id);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "切换就诊人")
|
|
|
@GetMapping(value = "/bind/change/{id}")
|
|
|
- public AjaxResult change(@PathVariable("id") Long id) throws ServerException {
|
|
|
+ public AjaxResult change(@ApiParam(value = "就诊人ID", required = true) @PathVariable("id") Long id) throws ServerException {
|
|
|
return bindUserService.change(id);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "就诊人列表")
|
|
|
@GetMapping("/bind/list")
|
|
|
- public AjaxResult list(BindUser bindUser) {
|
|
|
- bindUser.setUserId(getUser().getId());
|
|
|
- List<BindUser> list = bindUserService.selectList(bindUser);
|
|
|
+ public AjaxResult list() {
|
|
|
+ List<BindUser> list = bindUserService.selectList(new BindUser().setUserId(getUser().getId()));
|
|
|
return AjaxResult.success(list);
|
|
|
}
|
|
|
|