Commit c14875d122f3a1030dc51547a3ca0963d88531dd
1 parent
e1a3a1e7c4
Exists in
master
and in
6 other branches
查询号bug修改
Showing 2 changed files with 7 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/ViewController.java
View file @
c14875d
... | ... | @@ -61,12 +61,14 @@ |
61 | 61 | public void downExChuData(@RequestParam("id") String id, HttpServletRequest request, HttpServletResponse response) { |
62 | 62 | LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); |
63 | 63 | if(loginState == null){ |
64 | + System.out.println("用户未登录!"); | |
64 | 65 | return; |
65 | 66 | } |
66 | 67 | // Map<String, Object> map = viewFacade.exChuData(id, loginState.getId()); |
67 | 68 | Map<String, Object> map = viewFacade.exChuData(id, loginState.getId()); |
68 | 69 | |
69 | 70 | if (map == null) { |
71 | + System.out.println("没有查到数据!"); | |
70 | 72 | return; |
71 | 73 | } |
72 | 74 | try { |
73 | 75 | |
... | ... | @@ -102,12 +104,14 @@ |
102 | 104 | public void downExFuData(@RequestParam("id") String id, @RequestParam("num") int num, HttpServletRequest request, HttpServletResponse response) { |
103 | 105 | LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); |
104 | 106 | if(loginState == null){ |
107 | + System.out.println("用户未登录!"); | |
105 | 108 | return; |
106 | 109 | } |
107 | 110 | |
108 | 111 | Map<String, Object> map = viewFacade.exFuData(id, num,loginState.getId()); |
109 | 112 | |
110 | 113 | if (map == null) { |
114 | + System.out.println("没有查到数据!"); | |
111 | 115 | return; |
112 | 116 | } |
113 | 117 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java
View file @
c14875d
... | ... | @@ -385,12 +385,10 @@ |
385 | 385 | } else { |
386 | 386 | map.put(numStr + "isZhuan", "1"); |
387 | 387 | } |
388 | - | |
389 | 388 | if (data.getNextCheckTime() != null) { |
390 | 389 | map.put(numStr + "nextCheckTime", DateUtil.getyyyy_MM_dd(data.getNextCheckTime())); |
391 | 390 | } |
392 | 391 | String checkDoctor = ""; |
393 | - | |
394 | 392 | if (org.apache.commons.lang.StringUtils.isNotEmpty(data.getCheckDoctor())) { |
395 | 393 | Users users = usersService.getUsers(Integer.parseInt(data.getCheckDoctor())); |
396 | 394 | if (users != null && users.getYn() == YnEnums.YES.getId()) { |
... | ... | @@ -1043,6 +1041,9 @@ |
1043 | 1041 | } catch (Exception e) { |
1044 | 1042 | e.printStackTrace(); |
1045 | 1043 | } |
1044 | + }else{ | |
1045 | + // map.put("zhuancl", hospital); | |
1046 | + map.put("isZhuan", 1); | |
1046 | 1047 | } |
1047 | 1048 | } else { |
1048 | 1049 | map.put("isZhuan", "1"); |