|
@ -11,6 +11,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
@ -44,6 +45,7 @@ public class OnlineContactService extends BaseJpaService<BasePatientDO, BasePati
|
|
|
List<Map<String,Object>> fwzList = jdbcTemplate.queryForList(fwzSql);
|
|
|
if (zlyList.size() > 0){
|
|
|
for (int i=0;i<zlyList.size();i++){
|
|
|
List list = new ArrayList();
|
|
|
JSONObject helperObj = new JSONObject();
|
|
|
helperObj.put("id",zlyList.get(i).get("id"));
|
|
|
helperObj.put("name",zlyList.get(i).get("name"));
|
|
@ -57,13 +59,15 @@ public class OnlineContactService extends BaseJpaService<BasePatientDO, BasePati
|
|
|
}
|
|
|
}
|
|
|
helperObj.put("onLineFlag", onLineFlag);
|
|
|
obj.put("helperObj",helperObj);
|
|
|
list.add(helperObj);
|
|
|
obj.put("helperObj",list);///助老员
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (jsList.size() > 0){
|
|
|
for (int i=0;i<jsList.size();i++){
|
|
|
JSONObject familyObj = new JSONObject();
|
|
|
List list = new ArrayList();
|
|
|
familyObj.put("id",jsList.get(i).get("id"));
|
|
|
familyObj.put("name",jsList.get(i).get("name"));
|
|
|
familyObj.put("photo",jsList.get(i).get("photo"));
|
|
@ -88,19 +92,22 @@ public class OnlineContactService extends BaseJpaService<BasePatientDO, BasePati
|
|
|
}
|
|
|
}
|
|
|
familyObj.put("onLineFlag", onLineFlag);
|
|
|
obj.put("familyObj",familyObj);
|
|
|
list.add(familyObj);
|
|
|
obj.put("familyObj",list);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (fwzList.size() > 0){
|
|
|
for (int i=0;i<fwzList.size();i++){
|
|
|
JSONObject serStationObj = new JSONObject();
|
|
|
List list = new ArrayList();
|
|
|
serStationObj.put("code",fwzList.get(i).get("code"));
|
|
|
serStationObj.put("name",fwzList.get(i).get("name"));
|
|
|
serStationObj.put("photo",fwzList.get(i).get("photo"));
|
|
|
serStationObj.put("mobile",fwzList.get(i).get("mobile"));
|
|
|
serStationObj.put("address",fwzList.get(i).get("address"));
|
|
|
obj.put("serStationObj",serStationObj);
|
|
|
list.add(serStationObj);
|
|
|
obj.put("serStationObj",list);
|
|
|
}
|
|
|
}
|
|
|
return obj;
|