Browse Source

优化代码3

wangfeng 5 years ago
parent
commit
b5b5eb8f7c

+ 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;