|
@@ -4,12 +4,15 @@ package com.diagbot.web;
|
|
import com.diagbot.annotation.SysLogger;
|
|
import com.diagbot.annotation.SysLogger;
|
|
import com.diagbot.dto.HospitalInfoDTO;
|
|
import com.diagbot.dto.HospitalInfoDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
|
|
+import com.diagbot.entity.HospitalInfo;
|
|
import com.diagbot.facade.HospitalInfoFacade;
|
|
import com.diagbot.facade.HospitalInfoFacade;
|
|
import com.diagbot.vo.HospitalCheckVO;
|
|
import com.diagbot.vo.HospitalCheckVO;
|
|
import com.diagbot.vo.HospitalInfoVO;
|
|
import com.diagbot.vo.HospitalInfoVO;
|
|
|
|
+import com.diagbot.vo.HospitalSaveVO;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -27,11 +30,9 @@ import javax.validation.Valid;
|
|
* @since 2020-07-29
|
|
* @since 2020-07-29
|
|
*/
|
|
*/
|
|
@RestController
|
|
@RestController
|
|
-@RequestMapping("/sys/hospitalInfo")
|
|
|
|
|
|
+@RequestMapping("/tran/hospitalInfo")
|
|
@Api(value = "医院信息API", tags = { "医院信息API" })
|
|
@Api(value = "医院信息API", tags = { "医院信息API" })
|
|
@SuppressWarnings("unchecked")
|
|
@SuppressWarnings("unchecked")
|
|
-@ApiIgnore
|
|
|
|
-@Deprecated
|
|
|
|
public class HospitalInfoController {
|
|
public class HospitalInfoController {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
@@ -42,6 +43,7 @@ public class HospitalInfoController {
|
|
"code:医院编码<br>")
|
|
"code:医院编码<br>")
|
|
@PostMapping("/getHospitalInfo")
|
|
@PostMapping("/getHospitalInfo")
|
|
@SysLogger("getHospitalInfo")
|
|
@SysLogger("getHospitalInfo")
|
|
|
|
+ @ApiIgnore
|
|
public RespDTO<HospitalInfoDTO> getHospitalInfo(@RequestBody @Valid HospitalInfoVO hospitalInfoVO) {
|
|
public RespDTO<HospitalInfoDTO> getHospitalInfo(@RequestBody @Valid HospitalInfoVO hospitalInfoVO) {
|
|
HospitalInfoDTO data = hospitalInfoFacade.getHospitalInfo(hospitalInfoVO);
|
|
HospitalInfoDTO data = hospitalInfoFacade.getHospitalInfo(hospitalInfoVO);
|
|
return RespDTO.onSuc(data);
|
|
return RespDTO.onSuc(data);
|
|
@@ -52,7 +54,25 @@ public class HospitalInfoController {
|
|
notes = "hospitalCode:医院编码<br>")
|
|
notes = "hospitalCode:医院编码<br>")
|
|
@PostMapping("/checkHospital")
|
|
@PostMapping("/checkHospital")
|
|
@SysLogger("checkHospital")
|
|
@SysLogger("checkHospital")
|
|
|
|
+ @ApiIgnore
|
|
public RespDTO<Boolean> checkHospital(@RequestBody @Valid HospitalCheckVO hospitalCheckVO) {
|
|
public RespDTO<Boolean> checkHospital(@RequestBody @Valid HospitalCheckVO hospitalCheckVO) {
|
|
return RespDTO.onSuc(hospitalInfoFacade.checkHospital(hospitalCheckVO));
|
|
return RespDTO.onSuc(hospitalInfoFacade.checkHospital(hospitalCheckVO));
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "医院信息——修改医院信息[by:zhaops]",
|
|
|
|
+ notes = "id:医院id<br>" +
|
|
|
|
+ "connect:是否对接(0-不对接,1-对接)<br>")
|
|
|
|
+ @PostMapping("/saveRecord")
|
|
|
|
+ @SysLogger("saveRecord")
|
|
|
|
+ public RespDTO<Boolean> saveRecord(@RequestBody @Valid HospitalSaveVO hospitalSaveVO) {
|
|
|
|
+ return RespDTO.onSuc(hospitalInfoFacade.saveRecord(hospitalSaveVO));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "医院信息——获取医院信息[by:zhaops]",
|
|
|
|
+ notes = "")
|
|
|
|
+ @GetMapping("/getHospitalInfo")
|
|
|
|
+ @SysLogger("getHospitalInfo")
|
|
|
|
+ public RespDTO<HospitalInfo> getHospitalInfo() {
|
|
|
|
+ return RespDTO.onSuc(hospitalInfoFacade.getHospitalInfo());
|
|
|
|
+ }
|
|
}
|
|
}
|