@@ -29,10 +32,12 @@ public class ArchiveInterfaceService {
...
@@ -29,10 +32,12 @@ public class ArchiveInterfaceService {
List<Record>list1=newArrayList<>();
List<Record>list1=newArrayList<>();
List<Record>list2=newArrayList<>();
List<Record>list2=newArrayList<>();
List<Record>list3=newArrayList<>();
List<Record>list3=newArrayList<>();
List<Record>list4=newArrayList<>();
List<Record>ls=Db.find("select id from sl_library where name IN ('一号库房', '二号库房','三号库房','智能库房','不动产库房')");
List<Record>ls=Db.find("select id from sl_library where name IN ('一号库房', '二号库房','智能库房','不动产库房')");
List<Record>le=Db.find("SELECT id FROM sl_equipment WHERE LIB_ID IN(select id from sl_library where name IN ('一号库房', '二号库房','三号库房','智能库房','不动产库房'))and name = '漏水感应模块'");
List<Record>loushui=Db.find("SELECT id FROM sl_equipment WHERE LIB_ID IN(select id from sl_library where name IN ('一号库房', '二号库房','智能库房','不动产库房'))and name = '漏水感应模块'");
List<Record>yunceyi=Db.find("SELECT id FROM sl_equipment WHERE LIB_ID IN(select id from sl_library where name IN ('一号库房', '二号库房','智能库房','不动产库房'))and name = '云测仪'");
List<Record>hengshiji=Db.find("SELECT id FROM sl_equipment WHERE LIB_ID IN(select id from sl_library where name IN ('一号库房', '二号库房','智能库房','不动产库房'))and name = '恒湿机'");
JSONObjectjsonObject=JSON.parseObject(result);
JSONObjectjsonObject=JSON.parseObject(result);
JSONArraydata=jsonObject.getJSONArray("data");
JSONArraydata=jsonObject.getJSONArray("data");
intcode=jsonObject.getInteger("code");
intcode=jsonObject.getInteger("code");
...
@@ -42,77 +47,42 @@ public class ArchiveInterfaceService {
...
@@ -42,77 +47,42 @@ public class ArchiveInterfaceService {
if(code==20029){
if(code==20029){
for(inti=0;i<data.size();i++){
for(inti=0;i<data.size();i++){
List<Record>tableinfo=Db.find("select * from sl_alert_log where WRITEBACK = "+data.getJSONObject(i).getInteger("ID"));
List<Record>tableinfo=Db.find("select * from sl_alert_log where WRITEBACK = "+data.getJSONObject(i).getInteger("ID"));
List<Record>hengshiji=Db.find("SELECT id FROM sl_equipment WHERE LIB_ID IN(select id from sl_library where name IN ('一号库房', '二号库房','智能库房','不动产库房'))and name = '恒湿机'");