Commit 1e42e6b5caa7e09355f53d8bd4cbb57220e4fa22

Authored by jiangjiazhi
1 parent f42a047ee9

座机号 替换的问题

Showing 1 changed file with 8 additions and 6 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java View file @ 1e42e6b
... ... @@ -1669,13 +1669,15 @@
1669 1669 }
1670 1670  
1671 1671 String doctorId = examinationModel.getCheckDoctor();
1672   - Users users = usersService.getUsers(Integer.valueOf(doctorId));
1673   - Map<String, String> map1 = new HashMap<>();
1674   - if (null != users) {
1675   - map1.put("id", users.getId() + "");
1676   - map1.put("name", users.getName());
  1672 + if(StringUtils.isNotEmpty(doctorId)) {
  1673 + Users users = usersService.getUsers(Integer.valueOf(doctorId));
  1674 + Map<String, String> map1 = new HashMap<>();
  1675 + if (null != users) {
  1676 + map1.put("id", users.getId() + "");
  1677 + map1.put("name", users.getName());
  1678 + }
  1679 + antenatalExaminationResult.setCheckDoctor(map1);
1677 1680 }
1678   - antenatalExaminationResult.setCheckDoctor(map1);
1679 1681 antenatalExaminationResult.setIsSieve(cap(data, examinationModel.getParentId()));
1680 1682 antenatalExaminationResult.setHasSieve(CollectionUtils.isEmpty(applyOrderService.querySieveApplyOrderWithQuery(applyOrderQuery)) ? 0 : 1);
1681 1683 object = antenatalExaminationResult;