|
|
@@ -18,7 +18,7 @@ import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.Collection;
|
|
|
-
|
|
|
+import java.util.*;
|
|
|
/**
|
|
|
* 科室控制器
|
|
|
*
|
|
|
@@ -29,16 +29,14 @@ import java.util.Collection;
|
|
|
@RestController
|
|
|
@RequestMapping("/wx/dept")
|
|
|
@AllArgsConstructor
|
|
|
-//@SaCheckLogin(type = LoginTypeConstant.WX_APPLET)
|
|
|
public class BizWxAppletDeptController extends BaseController{
|
|
|
|
|
|
private final IBizDeptService bizDeptService;
|
|
|
|
|
|
- @ApiOperationSupport(author = "lf",order = 2)
|
|
|
- @ApiOperation(value = "根据id查询科室",notes = "权限: biz:dept:query")
|
|
|
- @GetMapping("/detail/{id}")
|
|
|
- @SaCheckPermission("biz:dept:query")
|
|
|
- public CommonResult<BizDeptDTO> findById(@PathVariable("id") String id){
|
|
|
- return CommonResult.success(bizDeptService.selectBizDeptById(id));
|
|
|
+ @ApiOperationSupport(author = "lf",order = 1)
|
|
|
+ @ApiOperation(value="根据条件查询科室",notes = "权限: 无")
|
|
|
+ @PostMapping("/query/list")
|
|
|
+ public CommonResult<List<BizDeptDTO>> selectList(@RequestBody BizDeptQueryDTO query) {
|
|
|
+ return CommonResult.success(bizDeptService.selectBizDeptList(query));
|
|
|
}
|
|
|
-}
|
|
|
+}
|