|
@ -36,6 +36,8 @@ public class OnlineContactService extends BaseJpaService<BasePatientDO, BasePati
|
|
|
private PatientFamilyMemberService familyMemberService;
|
|
|
@Autowired
|
|
|
private ServicePackageService servicePackageService;
|
|
|
@Autowired
|
|
|
private BasePatientDao patientDao;
|
|
|
|
|
|
public JSONObject getOnLineObj(String patient){
|
|
|
JSONObject obj = new JSONObject();
|
|
@ -140,7 +142,8 @@ public class OnlineContactService extends BaseJpaService<BasePatientDO, BasePati
|
|
|
tmpObj.put("avatar",tmp.get("photo"));
|
|
|
tmpObj.put("userType","1");
|
|
|
tmpObj.put("doctorId",tmp.get("doctor"));
|
|
|
tmpObj.put("relationName","助老员");
|
|
|
tmpObj.put("doctorLevel",tmp.get("doctorLevel"));
|
|
|
tmpObj.put("relationName",null==tmp.get("doctorLevel")?"":"1".equals(tmp.get("doctorLevel").toString())?"社区医生":"助老员");
|
|
|
doctorResult.add(tmpObj);
|
|
|
}
|
|
|
}else {
|
|
@ -167,6 +170,10 @@ public class OnlineContactService extends BaseJpaService<BasePatientDO, BasePati
|
|
|
for (int i=0;i<participantsTimeArray.size();i++){
|
|
|
JSONObject tmpObj = participantsTimeArray.getJSONObject(i);
|
|
|
String id = tmpObj.getString("id");
|
|
|
BasePatientDO patientDO = patientDao.findById(id);
|
|
|
if (patientDO.getArchiveType()==3){
|
|
|
continue;
|
|
|
}
|
|
|
if (!id.equals(patient)&&familyIds.contains(id)){
|
|
|
tmp.put("avatar",tmp.getString("photo"));
|
|
|
tmp.put("patientId",id);
|