|
@ -96,7 +96,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 id, AES_DECRYPT(from_base64(idcard),'jkzl2021ZJXL*#%a') 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<>();
|
|
@ -159,7 +159,7 @@ public class MonitorPlatformService {
|
|
envelop.getDetailModelList().addAll(euipmentList);
|
|
envelop.getDetailModelList().addAll(euipmentList);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
StringBuffer sql = new StringBuffer("select id,AES_DECRYPT(from_base64(idcard),'jkzl2021ZJXL*#%a') idCard,category_code categoryCode,device_sn deviceSn,location,device_time deviceTime,disease_condition diseaseCondition,\n" +
|
|
|
|
|
|
StringBuffer sql = new StringBuffer("select id,idcard idCard,category_code categoryCode,device_sn deviceSn,location,device_time deviceTime,disease_condition diseaseCondition,\n" +
|
|
"create_time createTime,device_name equimentName\n" +
|
|
"create_time createTime,device_name equimentName\n" +
|
|
"from device.wlyy_patient_device_location ");
|
|
"from device.wlyy_patient_device_location ");
|
|
StringBuffer sqlCounts = new StringBuffer("select count(*) from device.wlyy_patient_device_location ");
|
|
StringBuffer sqlCounts = new StringBuffer("select count(*) from device.wlyy_patient_device_location ");
|
|
@ -1130,7 +1130,7 @@ public class MonitorPlatformService {
|
|
jsonObject.put("filter",jsonArray1);
|
|
jsonObject.put("filter",jsonArray1);
|
|
jsonObject.put("page",1);
|
|
jsonObject.put("page",1);
|
|
jsonObject.put("size",5);
|
|
jsonObject.put("size",5);
|
|
String sqlLocation = "select AES_DECRYPT(from_base64(idcard),'jkzl2021ZJXL*#%a') idCard,category_code categoryCode,device_sn deviceSn,location,device_time deviceTime,disease_condition diseaseCondition,\n" +
|
|
|
|
|
|
String sqlLocation = "select idcard idCard,category_code categoryCode,device_sn deviceSn,location,device_time deviceTime,disease_condition diseaseCondition,\n" +
|
|
"create_time createTime,device_name equimentName\n" +
|
|
"create_time createTime,device_name equimentName\n" +
|
|
"from device.wlyy_patient_device_location where del=0 and device_sn='"+deviceSn+"' limit 0,5 ";
|
|
"from device.wlyy_patient_device_location where del=0 and device_sn='"+deviceSn+"' limit 0,5 ";
|
|
try {
|
|
try {
|
|
@ -1759,7 +1759,7 @@ public class MonitorPlatformService {
|
|
location.put("lon", Double.valueOf(json.get("lng")));
|
|
location.put("lon", Double.valueOf(json.get("lng")));
|
|
String insertSql = "INSERT INTO device.wlyy_patient_device_location(patient,idcard,disease_condition,device_sn,\n" +
|
|
String insertSql = "INSERT INTO device.wlyy_patient_device_location(patient,idcard,disease_condition,device_sn,\n" +
|
|
"device_name,category_code,device_time,create_time,location)\n" +
|
|
"device_name,category_code,device_time,create_time,location)\n" +
|
|
"VALUES('" + map.get("code").toString() + "','" + AesEncryptUtils.jiamiMysql(map.get("idcard").toString()) + "','" + map.get("disease_condition").toString() + "','" + map.get("device_sn").toString() + "','" + map.get("device_name") + "',\n" +
|
|
|
|
|
|
"VALUES('" + map.get("code").toString() + "','" + map.get("idcard").toString() + "','" + map.get("disease_condition").toString() + "','" + map.get("device_sn").toString() + "','" + map.get("device_name") + "',\n" +
|
|
"'" + map.get("category_code").toString() + "','" + map.get("create_time") + "','" + map.get("create_time").toString() + "','" + location.toJSONString() + "')\n";
|
|
"'" + map.get("category_code").toString() + "','" + map.get("create_time") + "','" + map.get("create_time").toString() + "','" + location.toJSONString() + "')\n";
|
|
jdbcTemplate.execute(insertSql);
|
|
jdbcTemplate.execute(insertSql);
|
|
}
|
|
}
|