|
@ -81,17 +81,18 @@ public class AdminTeamService extends BaseService {
|
|
|
return team;
|
|
|
}
|
|
|
|
|
|
public Map<String, Object> getPatientSigningTeam(String patientCode){
|
|
|
public Map<String, Object> getPatientSigningTeam(String patientCode, String currentDoctor){
|
|
|
Object result[] = (Object[]) teamDao.getPatientSigningTeam(patientCode);
|
|
|
if (result == null) return null;
|
|
|
|
|
|
Map<String, Object> team = new HashMap<>();
|
|
|
team.put("teamId", result[0]);
|
|
|
team.put("teamName", result[1]);
|
|
|
team.put("doctorCode", result[2]);
|
|
|
team.put("doctorName", result[3]);
|
|
|
team.put("healthDoctorCode", result[4]);
|
|
|
team.put("healthDoctorName", result[5]);
|
|
|
team.put("isLeader", currentDoctor != null && result[2].equals(currentDoctor));
|
|
|
team.put("doctorCode", result[3]);
|
|
|
team.put("doctorName", result[4]);
|
|
|
team.put("healthDoctorCode", result[5]);
|
|
|
team.put("healthDoctorName", result[6]);
|
|
|
|
|
|
return team;
|
|
|
}
|