瀏覽代碼

优化代码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;