|
@@ -1,10 +1,21 @@
|
|
|
package com.diagbot.web;
|
|
|
|
|
|
|
|
|
+import com.diagbot.annotation.SysLogger;
|
|
|
+import com.diagbot.dto.DeptInfoDTO;
|
|
|
+import com.diagbot.dto.RespDTO;
|
|
|
+import com.diagbot.facade.DeptInfoFacade;
|
|
|
+import com.diagbot.vo.DeptInfoVO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* <p>
|
|
|
* 科室信息表 前端控制器
|
|
@@ -18,4 +29,15 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
@Api(value = "科室信息API", tags = { "科室信息API" })
|
|
|
public class DeptInfoController {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private DeptInfoFacade deptInfoFacade;
|
|
|
+
|
|
|
+ @ApiOperation(value = "科室信息——查询[by:wangyu]",
|
|
|
+ notes = "deptCode:科室编号,必填<br>" +
|
|
|
+ "hospitalCode:医院编号,必填<br>")
|
|
|
+ @PostMapping("/getPatientInfo")
|
|
|
+ @SysLogger("getPatientInfo")
|
|
|
+ public RespDTO<List<DeptInfoDTO>> getPatientInfo(@RequestBody DeptInfoVO deptInfoVO) {
|
|
|
+ return deptInfoFacade.getDeptInfo(deptInfoVO);
|
|
|
+ }
|
|
|
}
|