|
@ -95,7 +95,7 @@ public class MonitorPlatformService {
|
|
total = json.getInteger("total");
|
|
total = json.getInteger("total");
|
|
JSONArray list = json.getJSONArray("list");
|
|
JSONArray list = json.getJSONArray("list");
|
|
for(int i=0;i<list.size();i++){
|
|
for(int i=0;i<list.size();i++){
|
|
String sql ="select idcard idCard,category_code categoryCode,device_sn deviceSn,location,device_time deviceTime,disease_condition diseaseCondition,\n" +
|
|
|
|
|
|
String sql ="select id, idcard idCard,category_code categoryCode,device_sn deviceSn,location,device_time deviceTime,disease_condition diseaseCondition,\n" +
|
|
"create_time createTime,device_name equimentName from device.wlyy_patient_device_location where del=0 and device_sn='"+list.getString(i)+"'";
|
|
"create_time createTime,device_name equimentName from device.wlyy_patient_device_location where del=0 and device_sn='"+list.getString(i)+"'";
|
|
List<Map<String,Object>> result = jdbcTemplate.queryForList(sql.toString());
|
|
List<Map<String,Object>> result = jdbcTemplate.queryForList(sql.toString());
|
|
List<LocationDataVO> locationDataVOList = new ArrayList<>();
|
|
List<LocationDataVO> locationDataVOList = new ArrayList<>();
|
|
@ -1729,7 +1729,8 @@ public class MonitorPlatformService {
|
|
"from wlyy.wlyy_patient_device pd \n" +
|
|
"from wlyy.wlyy_patient_device pd \n" +
|
|
"INNER JOIN wlyy.wlyy_sign_family sf on pd.`user` = sf.patient and sf.`status`>0 \n" +
|
|
"INNER JOIN wlyy.wlyy_sign_family sf on pd.`user` = sf.patient and sf.`status`>0 \n" +
|
|
"INNER JOIN wlyy.wlyy_patient p on p.idcard = sf.idcard and p.`status`=1\n" +
|
|
"INNER JOIN wlyy.wlyy_patient p on p.idcard = sf.idcard and p.`status`=1\n" +
|
|
"where pd.del=0 and pd.category_code in (1,2);";
|
|
|
|
|
|
"where pd.del=0 and pd.category_code in (1,2)";
|
|
|
|
// sql="select * from device.wlyy_patient_device_location_tmp";
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
|
|
list.forEach(map->{
|
|
list.forEach(map->{
|
|
try {
|
|
try {
|