|
@ -82,7 +82,8 @@ public class AdminTeamService extends BaseService {
|
|
}
|
|
}
|
|
|
|
|
|
public Map<String, Object> getPatientSigningTeam(String patientCode, String currentDoctor){
|
|
public Map<String, Object> getPatientSigningTeam(String patientCode, String currentDoctor){
|
|
Object result[] = (Object[]) teamDao.getPatientSigningTeam(patientCode);
|
|
|
|
|
|
|
|
|
|
Object result[] = (Object[]) teamDao.findTop1AdminTeamByPatientSignTeam(patientCode);
|
|
if (result == null) return null;
|
|
if (result == null) return null;
|
|
|
|
|
|
Map<String, Object> team = new HashMap<>();
|
|
Map<String, Object> team = new HashMap<>();
|
|
@ -91,8 +92,8 @@ public class AdminTeamService extends BaseService {
|
|
team.put("isLeader", currentDoctor != null && result[2].equals(currentDoctor));
|
|
team.put("isLeader", currentDoctor != null && result[2].equals(currentDoctor));
|
|
team.put("doctorCode", result[3]);
|
|
team.put("doctorCode", result[3]);
|
|
team.put("doctorName", result[4]);
|
|
team.put("doctorName", result[4]);
|
|
team.put("healthDoctorCode", result[5]);
|
|
|
|
team.put("healthDoctorName", result[6]);
|
|
|
|
|
|
team.put("healthDoctorCode", result[5] == null ? "" : result[5]);
|
|
|
|
team.put("healthDoctorName", result[6] == null ? "" : result[6]);
|
|
|
|
|
|
return team;
|
|
return team;
|
|
}
|
|
}
|