Commit 94e78fe43aec22e49238ff00bda8e7f12e4287f4
1 parent
3bd148de0d
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 16 additions and 11 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java
View file @
94e78fe
... | ... | @@ -2505,14 +2505,17 @@ |
2505 | 2505 | map.put("wcNt",data.getWcNt()); |
2506 | 2506 | |
2507 | 2507 | //医生所在团队 |
2508 | - DoctorTeam doctorTeam=new DoctorTeam(); | |
2509 | - doctorTeam.setId(Integer.parseInt(data.getTeamId())); | |
2510 | - FrontEndResult frontEndResult=teamService.queryListDoctorTeam(doctorTeam); | |
2511 | - if(null!=frontEndResult.getData()){ | |
2512 | - doctorTeam=(DoctorTeam) frontEndResult.getData().get(0); | |
2513 | - map.put("teamName",doctorTeam.getTeamName()); | |
2508 | + if(StringUtils.isNotEmpty(data.getTeamId())){ | |
2509 | + DoctorTeam doctorTeam=new DoctorTeam(); | |
2510 | + doctorTeam.setId(Integer.parseInt(data.getTeamId())); | |
2511 | + FrontEndResult frontEndResult=teamService.queryListDoctorTeam(doctorTeam); | |
2512 | + if(null!=frontEndResult.getData()){ | |
2513 | + doctorTeam=(DoctorTeam) frontEndResult.getData().get(0); | |
2514 | + map.put("teamName",doctorTeam.getTeamName()); | |
2515 | + } | |
2514 | 2516 | } |
2515 | 2517 | |
2518 | + | |
2516 | 2519 | br.setErrorcode(ErrorCodeConstants.SUCCESS); |
2517 | 2520 | br.setErrormsg("成功"); |
2518 | 2521 | br.setData(map); |
... | ... | @@ -3121,11 +3124,13 @@ |
3121 | 3124 | } |
3122 | 3125 | |
3123 | 3126 | //医生所在团队 |
3124 | - DoctorTeam doctorTeam=new DoctorTeam(); | |
3125 | - doctorTeam.setId(Integer.parseInt(data.getTeamId())); | |
3126 | - FrontEndResult frontEndResult=teamService.queryListDoctorTeam(doctorTeam); | |
3127 | - if(null!=frontEndResult.getData()){ | |
3128 | - teamName=((DoctorTeam)(frontEndResult.getData().get(0))).getTeamName(); | |
3127 | + if(StringUtils.isNotEmpty(data.getTeamId())){ | |
3128 | + DoctorTeam doctorTeam=new DoctorTeam(); | |
3129 | + doctorTeam.setId(Integer.parseInt(data.getTeamId())); | |
3130 | + FrontEndResult frontEndResult=teamService.queryListDoctorTeam(doctorTeam); | |
3131 | + if(null!=frontEndResult.getData()){ | |
3132 | + teamName=((DoctorTeam)(frontEndResult.getData().get(0))).getTeamName(); | |
3133 | + } | |
3129 | 3134 | } |
3130 | 3135 | } |
3131 | 3136 | map.put("checkDoctor", checkDoctor); |