Commit 2fe651e33282e263e689d10bc3489398ca0bb63e

Authored by liquanyu
1 parent 9cdf065852

update

Showing 1 changed file with 4 additions and 2 deletions

platform-operate-api/src/main/java/com/lyms/hospitalapi/hs/HsfyFmService.java View file @ 2fe651e
... ... @@ -234,7 +234,10 @@
234 234 usersQuery.setName(allFm.getDELIVER_DOCTOR());
235 235 users = usersService.queryUsers(usersQuery);
236 236  
237   - if (CollectionUtils.isNotEmpty(users) && users.get(0).getId() != null) {
  237 + if (!CollectionUtils.isNotEmpty(users)) {
  238 + usersQuery.setName("产房");
  239 + users = usersService.queryUsers(usersQuery);
  240 + }
238 241  
239 242 Date dateTime = fmt.parse(allFm.getBABY_DELIVERY_TIME());
240 243 if(dateTime!=null){
... ... @@ -395,7 +398,6 @@
395 398 baby.setDueTime(fmt.format(dueDate));//分娩时间
396 399 babies.add(baby);
397 400  
398   - }
399 401 }else{
400 402 a=1;
401 403 //服务器有分娩记录,但是在这边系统没有对应孕妇 取分娩信息建档儿童数据