|
@ -83,9 +83,10 @@ public class AdminTeamService extends BaseService {
|
|
|
|
|
|
public Map<String, Object> getPatientSigningTeam(String patientCode, String currentDoctor){
|
|
|
|
|
|
Object result[] = (Object[]) teamDao.findTop1AdminTeamByPatientSignTeam(patientCode);
|
|
|
if (result == null) return null;
|
|
|
List<Object> results = teamDao.findAdminTeamByPatientSignTeam(patientCode, new PageRequest(0, 1));
|
|
|
if (results == null || results.size() == 0) return null;
|
|
|
|
|
|
Object[] result = (Object[]) results.get(0);
|
|
|
Map<String, Object> team = new HashMap<>();
|
|
|
team.put("teamId", result[0]);
|
|
|
team.put("teamName", result[1]);
|