소스 검색

优化代码3

wangfeng 5 년 전
부모
커밋
b5b5eb8f7c
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      mrman-service/src/main/java/com/diagbot/facade/StdBehospitalInfoFacade.java

+ 4 - 0
mrman-service/src/main/java/com/diagbot/facade/StdBehospitalInfoFacade.java

@@ -144,9 +144,13 @@ public class StdBehospitalInfoFacade extends StdBehospitalInfoServiceImpl {
         StdBehospitalInfo stdData = stdBehospitalInfoService.getOne(stdBehospitalInfoQuery);
         if (stdData != null) {
             BeanUtil.copyProperties(medBehospitalInfo, stdDataDTO);
+            stdDataDTO.setDeptId(medBehospitalInfo.getBehDeptId());
+            stdDataDTO.setDeptName(medBehospitalInfo.getBehDeptName());
             stdDataDTO.setStatus(1);
         } else {
             BeanUtil.copyProperties(medBehospitalInfo, stdDataDTO);
+            stdDataDTO.setDeptId(medBehospitalInfo.getBehDeptId());
+            stdDataDTO.setDeptName(medBehospitalInfo.getBehDeptName());
             stdDataDTO.setStatus(0);
         }
         return stdDataDTO;