|
|
@ -3,7 +3,6 @@ package com.shxy.i2.serviceimpl;
|
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
|
import cn.hutool.core.date.DatePattern;
|
|
|
|
import cn.hutool.core.date.DatePattern;
|
|
|
|
import cn.hutool.core.date.DateTime;
|
|
|
|
import cn.hutool.core.date.DateTime;
|
|
|
|
import cn.hutool.core.date.DateUnit;
|
|
|
|
|
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
|
import cn.hutool.core.util.NumberUtil;
|
|
|
|
import cn.hutool.core.util.NumberUtil;
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
@ -16,10 +15,8 @@ import com.shxy.i2.dto.Data_YxlDto;
|
|
|
|
import com.shxy.i2.entity.*;
|
|
|
|
import com.shxy.i2.entity.*;
|
|
|
|
import com.shxy.i2.service.XydlI2Service;
|
|
|
|
import com.shxy.i2.service.XydlI2Service;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import org.apache.cxf.endpoint.Client;
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.util.Assert;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
import java.math.BigInteger;
|
|
|
|
import java.math.BigInteger;
|
|
|
@ -75,13 +72,15 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private Data_MicroclimateDao data_microclimateDao;
|
|
|
|
private Data_MicroclimateDao data_microclimateDao;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private Upload_checkDao upload_checkDao;
|
|
|
|
private Upload_checkDao upload_checkDao;
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private Data_YxDao data_yxDao;
|
|
|
|
private Data_YxDao data_yxDao;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private Upload_StaticsDao upload_staticsDao;
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
AsyncMethod asyncMethod;
|
|
|
|
AsyncMethod asyncMethod;
|
|
|
|
|
|
|
|
|
|
|
@ -91,7 +90,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
public static int sendlimit = 1000;
|
|
|
|
public static int sendlimit = 1000;
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void upload_byq_jbfd(Client client, HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
public void upload_byq_jbfd(HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
//查询目前上传的变压器局部放电的id 记录变压器局部放电上传的id大小
|
|
|
|
//查询目前上传的变压器局部放电的id 记录变压器局部放电上传的id大小
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.BYQJBFDID);
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.BYQJBFDID);
|
|
|
|
BigInteger value = null;
|
|
|
|
BigInteger value = null;
|
|
|
@ -176,7 +175,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
sendDataBean.setMaxid(id);
|
|
|
|
sendDataBean.setMaxid(id);
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (data_byq_jbfdlist.size() - 1)) {
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (data_byq_jbfdlist.size() - 1)) {
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
asyncMethod.sendData2(client, xml);
|
|
|
|
asyncMethod.sendData2(xml);
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
@ -191,7 +190,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void upload_cnj(Client client, HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
public void upload_cnj(HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.CNJID);
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.CNJID);
|
|
|
|
BigInteger value = null;
|
|
|
|
BigInteger value = null;
|
|
|
|
if (upload_check == null) {
|
|
|
|
if (upload_check == null) {
|
|
|
@ -249,7 +248,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
cacdatalist.add(cacdata);
|
|
|
|
cacdatalist.add(cacdata);
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
asyncMethod.sendData2(client, xml);
|
|
|
|
asyncMethod.sendData2(xml);
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
@ -264,7 +263,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void upload_dcyw(Client client, HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
public void upload_dcyw(HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.DCYWID);
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.DCYWID);
|
|
|
|
BigInteger value = null;
|
|
|
|
BigInteger value = null;
|
|
|
|
if (upload_check == null) {
|
|
|
|
if (upload_check == null) {
|
|
|
@ -321,7 +320,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
cacdatalist.add(cacdata);
|
|
|
|
cacdatalist.add(cacdata);
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
asyncMethod.sendData2(client, xml);
|
|
|
|
asyncMethod.sendData2(xml);
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
@ -336,7 +335,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void upload_dlq_jbfd(Client client, HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
public void upload_dlq_jbfd(HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.DLQJBFDID);
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.DLQJBFDID);
|
|
|
|
BigInteger value = null;
|
|
|
|
BigInteger value = null;
|
|
|
|
if (upload_check == null) {
|
|
|
|
if (upload_check == null) {
|
|
|
@ -415,7 +414,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
cacdatalist.add(cacdata);
|
|
|
|
cacdatalist.add(cacdata);
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
asyncMethod.sendData2(client, xml);
|
|
|
|
asyncMethod.sendData2(xml);
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
@ -430,7 +429,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void upload_dr_jyjc(Client client, HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
public void upload_dr_jyjc(HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.DRJYJCID);
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.DRJYJCID);
|
|
|
|
BigInteger value = null;
|
|
|
|
BigInteger value = null;
|
|
|
|
if (upload_check == null) {
|
|
|
|
if (upload_check == null) {
|
|
|
@ -524,7 +523,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
cacdatalist.add(cacdata);
|
|
|
|
cacdatalist.add(cacdata);
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
asyncMethod.sendData2(client, xml);
|
|
|
|
asyncMethod.sendData2(xml);
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
@ -539,7 +538,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void upload_fhdlbx(Client client, HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
public void upload_fhdlbx(HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.FHDLBXID);
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.FHDLBXID);
|
|
|
|
BigInteger value = null;
|
|
|
|
BigInteger value = null;
|
|
|
|
if (upload_check == null) {
|
|
|
|
if (upload_check == null) {
|
|
|
@ -603,7 +602,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
cacdatalist.add(cacdata);
|
|
|
|
cacdatalist.add(cacdata);
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
asyncMethod.sendData2(client, xml);
|
|
|
|
asyncMethod.sendData2(xml);
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
@ -618,7 +617,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void upload_fhzxq(Client client, HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
public void upload_fhzxq(HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.FHZXQID);
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.FHZXQID);
|
|
|
|
BigInteger value = null;
|
|
|
|
BigInteger value = null;
|
|
|
|
if (upload_check == null) {
|
|
|
|
if (upload_check == null) {
|
|
|
@ -682,7 +681,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
cacdatalist.add(cacdata);
|
|
|
|
cacdatalist.add(cacdata);
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
asyncMethod.sendData2(client, xml);
|
|
|
|
asyncMethod.sendData2(xml);
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
@ -697,7 +696,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void upload_jsyhw_jyjc(Client client, HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
public void upload_jsyhw_jyjc(HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.JSYHWJYJCID);
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.JSYHWJYJCID);
|
|
|
|
BigInteger value = null;
|
|
|
|
BigInteger value = null;
|
|
|
|
if (upload_check == null) {
|
|
|
|
if (upload_check == null) {
|
|
|
@ -783,7 +782,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
cacdatalist.add(cacdata);
|
|
|
|
cacdatalist.add(cacdata);
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
asyncMethod.sendData2(client, xml);
|
|
|
|
asyncMethod.sendData2(xml);
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
@ -798,7 +797,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void upload_sf6_qtsf(Client client, HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
public void upload_sf6_qtsf(HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.SF6QTSFID);
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.SF6QTSFID);
|
|
|
|
BigInteger value = null;
|
|
|
|
BigInteger value = null;
|
|
|
|
if (upload_check == null) {
|
|
|
|
if (upload_check == null) {
|
|
|
@ -862,7 +861,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
cacdatalist.add(cacdata);
|
|
|
|
cacdatalist.add(cacdata);
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
asyncMethod.sendData2(client, xml);
|
|
|
|
asyncMethod.sendData2(xml);
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
@ -877,7 +876,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void upload_sf6_qtyl(Client client, HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
public void upload_sf6_qtyl(HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.SF6QTYLID);
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.SF6QTYLID);
|
|
|
|
BigInteger value = null;
|
|
|
|
BigInteger value = null;
|
|
|
|
if (upload_check == null) {
|
|
|
|
if (upload_check == null) {
|
|
|
@ -956,7 +955,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
log.info("开始传输");
|
|
|
|
log.info("开始传输");
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
asyncMethod.sendData2(client, xml);
|
|
|
|
asyncMethod.sendData2(xml);
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
@ -971,7 +970,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void upload_tx(Client client, HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
public void upload_tx(HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.TXID);
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.TXID);
|
|
|
|
BigInteger value = null;
|
|
|
|
BigInteger value = null;
|
|
|
|
if (upload_check == null) {
|
|
|
|
if (upload_check == null) {
|
|
|
@ -1028,7 +1027,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
cacdatalist.add(cacdata);
|
|
|
|
cacdatalist.add(cacdata);
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
asyncMethod.sendData2(client, xml);
|
|
|
|
asyncMethod.sendData2(xml);
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
@ -1045,7 +1044,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void upload_ws(Client client, HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
public void upload_ws(HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.WSID);
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.WSID);
|
|
|
|
BigInteger value = null;
|
|
|
|
BigInteger value = null;
|
|
|
|
if (upload_check == null) {
|
|
|
|
if (upload_check == null) {
|
|
|
@ -1102,7 +1101,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
cacdatalist.add(cacdata);
|
|
|
|
cacdatalist.add(cacdata);
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
asyncMethod.sendData2(client, xml);
|
|
|
|
asyncMethod.sendData2(xml);
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
@ -1117,7 +1116,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void upload_ysp(Client client, HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
public void upload_ysp(HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
//查询目前上传的油色谱的id 记录油色谱上传的id大小
|
|
|
|
//查询目前上传的油色谱的id 记录油色谱上传的id大小
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.YSPID);
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.YSPID);
|
|
|
|
BigInteger value = null;
|
|
|
|
BigInteger value = null;
|
|
|
@ -1241,7 +1240,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
log.info("测试断点4");
|
|
|
|
log.info("测试断点4");
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
log.info("ysp组装完成,开始上传");
|
|
|
|
log.info("ysp组装完成,开始上传");
|
|
|
|
asyncMethod.sendData2(client, xml);
|
|
|
|
asyncMethod.sendData2(xml);
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
@ -1253,11 +1252,10 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
log.info("没有查询到ysp的数据");
|
|
|
|
log.info("没有查询到ysp的数据");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void upload_microclimate(Client client, HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
public void upload_microclimate(HashMap<Integer, Niec_Sensors> equipMap) {
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.MICROCLIMATEID);
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.MICROCLIMATEID);
|
|
|
|
BigInteger value = null;
|
|
|
|
BigInteger value = null;
|
|
|
|
if (upload_check == null) {
|
|
|
|
if (upload_check == null) {
|
|
|
@ -1349,7 +1347,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
cacdatalist.add(cacdata);
|
|
|
|
cacdatalist.add(cacdata);
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
if ((index != 0 && index % sendlimit == 0) || index == (list.size() - 1)) {
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
String xml = GenerateI2Xml.generateEndCacXml(cacdatalist);
|
|
|
|
asyncMethod.sendData2(client, xml);
|
|
|
|
asyncMethod.sendData2(xml);
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
cacdatalist = new ArrayList<>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
@ -1364,9 +1362,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void upload_yx(Client client) {
|
|
|
|
public void upload_yx() {
|
|
|
|
// Boolean iscontiue = true;
|
|
|
|
|
|
|
|
// while (iscontiue) {
|
|
|
|
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.YXID);
|
|
|
|
Upload_check upload_check = upload_checkDao.selectByPrimaryKey(Constant.YXID);
|
|
|
|
BigInteger value = null;
|
|
|
|
BigInteger value = null;
|
|
|
|
if (upload_check == null) {
|
|
|
|
if (upload_check == null) {
|
|
|
@ -1442,12 +1438,11 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
String xml = GenerateI2Xml.generateYxCacXml(attr);
|
|
|
|
String xml = GenerateI2Xml.generateYxCacXml(attr);
|
|
|
|
if (xml != null && !xml.equals("")) {
|
|
|
|
if (xml != null && !xml.equals("")) {
|
|
|
|
asyncMethod.sendData2(client, xml);
|
|
|
|
asyncMethod.sendData2(xml);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
asyncMethod.updateRecordId(maxid, Constant.YXID);
|
|
|
|
asyncMethod.updateRecordId(maxid, Constant.YXID);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -1458,7 +1453,7 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void clear_history() {
|
|
|
|
public void clear_history() {
|
|
|
|
log.info("开启定时删除");
|
|
|
|
log.info("开启定时删除");
|
|
|
|
DateTime dateTime = DateUtil.offsetDay(new Date(), -3);
|
|
|
|
DateTime dateTime = DateUtil.offsetDay(new Date(), -7);
|
|
|
|
data_byq_jbfdDao.deleteData(dateTime);
|
|
|
|
data_byq_jbfdDao.deleteData(dateTime);
|
|
|
|
data_cnjDao.deleteData(dateTime);
|
|
|
|
data_cnjDao.deleteData(dateTime);
|
|
|
|
data_dcywDao.deleteData(dateTime);
|
|
|
|
data_dcywDao.deleteData(dateTime);
|
|
|
@ -1479,14 +1474,14 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public ServiceBody<ListModel> list() {
|
|
|
|
public ServiceBody<ListModel> list() {
|
|
|
|
ListModel listModel = new ListModel();
|
|
|
|
ListModel listModel = new ListModel();
|
|
|
|
HashMap<String,BigInteger> map = new HashMap();
|
|
|
|
HashMap<String, BigInteger> map = new HashMap();
|
|
|
|
List<Upload_check> upload_checks = upload_checkDao.selectAll();
|
|
|
|
List<Upload_check> upload_checks = upload_checkDao.selectAll();
|
|
|
|
for (Upload_check item:upload_checks) {
|
|
|
|
for (Upload_check item : upload_checks) {
|
|
|
|
map.put(item.getCheckType(), item.getValue());
|
|
|
|
map.put(item.getCheckType(), item.getValue());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// String today = DateUtil.today();
|
|
|
|
String today = DateUtil.today();
|
|
|
|
String today = "2024-02-01";
|
|
|
|
// String today = "2024-02-01";
|
|
|
|
|
|
|
|
|
|
|
|
ListModel.Beans yspbeans = new ListModel.Beans();
|
|
|
|
ListModel.Beans yspbeans = new ListModel.Beans();
|
|
|
|
yspbeans.setName("油色谱");
|
|
|
|
yspbeans.setName("油色谱");
|
|
|
@ -1504,7 +1499,6 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
yspbeans.setNowuploadnum(BigInteger.valueOf(ysptodayupload.longValue()));
|
|
|
|
yspbeans.setNowuploadnum(BigInteger.valueOf(ysptodayupload.longValue()));
|
|
|
|
listModel.getList().add(yspbeans);
|
|
|
|
listModel.getList().add(yspbeans);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ListModel.Beans txbeans = new ListModel.Beans();
|
|
|
|
ListModel.Beans txbeans = new ListModel.Beans();
|
|
|
|
txbeans.setName("铁芯夹件");
|
|
|
|
txbeans.setName("铁芯夹件");
|
|
|
|
Data_Tx data_tx1 = data_txDao.selectMaxId();
|
|
|
|
Data_Tx data_tx1 = data_txDao.selectMaxId();
|
|
|
@ -1521,7 +1515,6 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
txbeans.setNowuploadnum(BigInteger.valueOf(txtodayupload.longValue()));
|
|
|
|
txbeans.setNowuploadnum(BigInteger.valueOf(txtodayupload.longValue()));
|
|
|
|
listModel.getList().add(txbeans);
|
|
|
|
listModel.getList().add(txbeans);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ListModel.Beans dlqbeans = new ListModel.Beans();
|
|
|
|
ListModel.Beans dlqbeans = new ListModel.Beans();
|
|
|
|
dlqbeans.setName("断路器局放");
|
|
|
|
dlqbeans.setName("断路器局放");
|
|
|
|
Data_Dlq_Jbfd data_dlq_jbfd1 = data_dlq_jbfdDao.selectMaxId();
|
|
|
|
Data_Dlq_Jbfd data_dlq_jbfd1 = data_dlq_jbfdDao.selectMaxId();
|
|
|
@ -1539,7 +1532,6 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
listModel.getList().add(dlqbeans);
|
|
|
|
listModel.getList().add(dlqbeans);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ListModel.Beans sf6beans = new ListModel.Beans();
|
|
|
|
ListModel.Beans sf6beans = new ListModel.Beans();
|
|
|
|
sf6beans.setName("SF6气体压力");
|
|
|
|
sf6beans.setName("SF6气体压力");
|
|
|
|
Data_SF6_Qtyl data_sf6_qtyl1 = data_sf6_qtylDao.selectMaxId();
|
|
|
|
Data_SF6_Qtyl data_sf6_qtyl1 = data_sf6_qtylDao.selectMaxId();
|
|
|
@ -1593,6 +1585,188 @@ public class XydlI2ServiceImpl implements XydlI2Service {
|
|
|
|
serviceBody.setCode(ServiceStatus.SUCCESS);
|
|
|
|
serviceBody.setCode(ServiceStatus.SUCCESS);
|
|
|
|
serviceBody.setData(listModel);
|
|
|
|
serviceBody.setData(listModel);
|
|
|
|
return serviceBody;
|
|
|
|
return serviceBody;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 统计每日上传量
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void statics() {
|
|
|
|
|
|
|
|
// Date updateTime = new Date();
|
|
|
|
|
|
|
|
// DateTime uploadTime = DateUtil.beginOfDay(updateTime);
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Data_Byq_Jbfd data_byq_jbfd = data_byq_jbfdDao.selectMaxId();
|
|
|
|
|
|
|
|
// BigInteger jbfdid = data_byq_jbfd.getMaxid();
|
|
|
|
|
|
|
|
// if (jbfdid!=null) {
|
|
|
|
|
|
|
|
// Upload_Statics jbfdrecord = new Upload_Statics();
|
|
|
|
|
|
|
|
// jbfdrecord.setCheckType(Constant.BYQJBFDID);
|
|
|
|
|
|
|
|
// jbfdrecord.setFirstValue(jbfdid);
|
|
|
|
|
|
|
|
// jbfdrecord.setUploadTime(uploadTime);
|
|
|
|
|
|
|
|
// jbfdrecord.setUpdateTime(updateTime);
|
|
|
|
|
|
|
|
// upload_staticsDao.insertSelective(jbfdrecord);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Data_Cnj data_cnj = data_cnjDao.selectMaxId();
|
|
|
|
|
|
|
|
// BigInteger cnjId = data_cnj.getMaxid();
|
|
|
|
|
|
|
|
// if (cnjId != null) {
|
|
|
|
|
|
|
|
// Upload_Statics cnjrecord = new Upload_Statics();
|
|
|
|
|
|
|
|
// cnjrecord.setCheckType(Constant.CNJID);
|
|
|
|
|
|
|
|
// cnjrecord.setFirstValue(cnjId);
|
|
|
|
|
|
|
|
// cnjrecord.setUploadTime(uploadTime);
|
|
|
|
|
|
|
|
// cnjrecord.setUpdateTime(updateTime);
|
|
|
|
|
|
|
|
// upload_staticsDao.insertSelective(cnjrecord);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Data_Dcyw data_dcyw = data_dcywDao.selectMaxId();
|
|
|
|
|
|
|
|
// BigInteger dcywId = data_dcyw.getId();
|
|
|
|
|
|
|
|
// if (dcywId != null) {
|
|
|
|
|
|
|
|
// Upload_Statics dcywrecord = new Upload_Statics();
|
|
|
|
|
|
|
|
// dcywrecord.setCheckType(Constant.DCYWID);
|
|
|
|
|
|
|
|
// dcywrecord.setFirstValue(dcywId);
|
|
|
|
|
|
|
|
// dcywrecord.setUploadTime(uploadTime);
|
|
|
|
|
|
|
|
// dcywrecord.setUpdateTime(updateTime);
|
|
|
|
|
|
|
|
// upload_staticsDao.insertSelective(dcywrecord);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Data_Dlq_Jbfd data_dlq_jbfd = data_dlq_jbfdDao.selectMaxId();
|
|
|
|
|
|
|
|
// BigInteger dlq_jbfdId = data_dlq_jbfd.getId();
|
|
|
|
|
|
|
|
// if (dlq_jbfdId!=null) {
|
|
|
|
|
|
|
|
// Upload_Statics dlq_jbfdrecord = new Upload_Statics();
|
|
|
|
|
|
|
|
// dlq_jbfdrecord.setCheckType(Constant.DLQJBFDID);
|
|
|
|
|
|
|
|
// dlq_jbfdrecord.setFirstValue(dlq_jbfdId);
|
|
|
|
|
|
|
|
// dlq_jbfdrecord.setUploadTime(uploadTime);
|
|
|
|
|
|
|
|
// dlq_jbfdrecord.setUpdateTime(updateTime);
|
|
|
|
|
|
|
|
// upload_staticsDao.insertSelective(dlq_jbfdrecord);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Data_Dr_Jyjc data_dr_jyjc = data_dr_jyjcDao.selectMaxId();
|
|
|
|
|
|
|
|
// BigInteger dr_jyjcId = data_dr_jyjc.getId();
|
|
|
|
|
|
|
|
// if (dr_jyjcId !=null) {
|
|
|
|
|
|
|
|
// Upload_Statics dr_jyjcrecord = new Upload_Statics();
|
|
|
|
|
|
|
|
// dr_jyjcrecord.setCheckType(Constant.DRJYJCID);
|
|
|
|
|
|
|
|
// dr_jyjcrecord.setFirstValue(dr_jyjcId);
|
|
|
|
|
|
|
|
// dr_jyjcrecord.setUploadTime(uploadTime);
|
|
|
|
|
|
|
|
// dr_jyjcrecord.setUpdateTime(updateTime);
|
|
|
|
|
|
|
|
// upload_staticsDao.insertSelective(dr_jyjcrecord);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Data_Fhdlbx data_fhdlbx = data_fhdlbxDao.selectMaxId();
|
|
|
|
|
|
|
|
// BigInteger fhdlbxId = data_fhdlbx.getId();
|
|
|
|
|
|
|
|
// if (fhdlbxId!=null) {
|
|
|
|
|
|
|
|
// Upload_Statics fhdlbxIdrecord = new Upload_Statics();
|
|
|
|
|
|
|
|
// fhdlbxIdrecord.setCheckType(Constant.FHDLBXID);
|
|
|
|
|
|
|
|
// fhdlbxIdrecord.setFirstValue(fhdlbxId);
|
|
|
|
|
|
|
|
// fhdlbxIdrecord.setUploadTime(uploadTime);
|
|
|
|
|
|
|
|
// fhdlbxIdrecord.setUpdateTime(updateTime);
|
|
|
|
|
|
|
|
// upload_staticsDao.insertSelective(fhdlbxIdrecord);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Data_Fhzxq data_fhzxq = data_fhzxqDao.selectMaxId();
|
|
|
|
|
|
|
|
// BigInteger fhzxqId = data_fhzxq.getId();
|
|
|
|
|
|
|
|
// if (fhzxqId!=null) {
|
|
|
|
|
|
|
|
// Upload_Statics fhzxqrecord = new Upload_Statics();
|
|
|
|
|
|
|
|
// fhzxqrecord.setCheckType(Constant.FHZXQID);
|
|
|
|
|
|
|
|
// fhzxqrecord.setFirstValue(fhzxqId);
|
|
|
|
|
|
|
|
// fhzxqrecord.setUploadTime(uploadTime);
|
|
|
|
|
|
|
|
// fhzxqrecord.setUpdateTime(updateTime);
|
|
|
|
|
|
|
|
// upload_staticsDao.insertSelective(fhzxqrecord);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Data_Jsyhw_Jyjc data_jsyhw_jyjc = data_jsyhw_jyjcDao.selectMaxId();
|
|
|
|
|
|
|
|
// BigInteger jsyhw_jyjcId = data_jsyhw_jyjc.getId();
|
|
|
|
|
|
|
|
// if (jsyhw_jyjcId !=null) {
|
|
|
|
|
|
|
|
// Upload_Statics jsyhw_jyjcrecord = new Upload_Statics();
|
|
|
|
|
|
|
|
// jsyhw_jyjcrecord.setCheckType(Constant.JSYHWJYJCID);
|
|
|
|
|
|
|
|
// jsyhw_jyjcrecord.setFirstValue(jsyhw_jyjcId);
|
|
|
|
|
|
|
|
// jsyhw_jyjcrecord.setUploadTime(uploadTime);
|
|
|
|
|
|
|
|
// jsyhw_jyjcrecord.setUpdateTime(updateTime);
|
|
|
|
|
|
|
|
// upload_staticsDao.insertSelective(jsyhw_jyjcrecord);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Data_SF6_Qtsf data_sf6_qtsf = data_sf6_qtsfDao.selectMaxId();
|
|
|
|
|
|
|
|
// BigInteger sf6_qtsfId = data_sf6_qtsf.getId();
|
|
|
|
|
|
|
|
// if (sf6_qtsfId != null) {
|
|
|
|
|
|
|
|
// Upload_Statics sf6_qtsfrecord = new Upload_Statics();
|
|
|
|
|
|
|
|
// sf6_qtsfrecord.setCheckType(Constant.SF6QTSFID);
|
|
|
|
|
|
|
|
// sf6_qtsfrecord.setFirstValue(sf6_qtsfId);
|
|
|
|
|
|
|
|
// sf6_qtsfrecord.setUploadTime(uploadTime);
|
|
|
|
|
|
|
|
// sf6_qtsfrecord.setUpdateTime(updateTime);
|
|
|
|
|
|
|
|
// upload_staticsDao.insertSelective(sf6_qtsfrecord);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Data_SF6_Qtyl data_sf6_qtyl = data_sf6_qtylDao.selectMaxId();
|
|
|
|
|
|
|
|
// BigInteger sf6_qtylId = data_sf6_qtyl.getId();
|
|
|
|
|
|
|
|
// if (sf6_qtylId !=null) {
|
|
|
|
|
|
|
|
// Upload_Statics sf6_qtylIdrecord = new Upload_Statics();
|
|
|
|
|
|
|
|
// sf6_qtylIdrecord.setCheckType(Constant.SF6QTYLID);
|
|
|
|
|
|
|
|
// sf6_qtylIdrecord.setFirstValue(sf6_qtylId);
|
|
|
|
|
|
|
|
// sf6_qtylIdrecord.setUploadTime(uploadTime);
|
|
|
|
|
|
|
|
// sf6_qtylIdrecord.setUpdateTime(updateTime);
|
|
|
|
|
|
|
|
// upload_staticsDao.insertSelective(sf6_qtylIdrecord);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Data_Tx data_tx = data_txDao.selectMaxId();
|
|
|
|
|
|
|
|
// BigInteger txId = data_tx.getId();
|
|
|
|
|
|
|
|
// if (txId != null) {
|
|
|
|
|
|
|
|
// Upload_Statics txrecord = new Upload_Statics();
|
|
|
|
|
|
|
|
// txrecord.setCheckType(Constant.TXID);
|
|
|
|
|
|
|
|
// txrecord.setFirstValue(txId);
|
|
|
|
|
|
|
|
// txrecord.setUploadTime(uploadTime);
|
|
|
|
|
|
|
|
// txrecord.setUpdateTime(updateTime);
|
|
|
|
|
|
|
|
// upload_staticsDao.insertSelective(txrecord);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Data_Ws data_ws = data_wsDao.selectMaxId();
|
|
|
|
|
|
|
|
// BigInteger wsId = data_ws.getId();
|
|
|
|
|
|
|
|
// if (wsId!=null) {
|
|
|
|
|
|
|
|
// Upload_Statics wsrecord = new Upload_Statics();
|
|
|
|
|
|
|
|
// wsrecord.setCheckType(Constant.WSID);
|
|
|
|
|
|
|
|
// wsrecord.setFirstValue(wsId);
|
|
|
|
|
|
|
|
// wsrecord.setUploadTime(uploadTime);
|
|
|
|
|
|
|
|
// wsrecord.setUpdateTime(updateTime);
|
|
|
|
|
|
|
|
// upload_staticsDao.insertSelective(wsrecord);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Data_Ysp data_ysp = data_yspDao.selectMaxId();
|
|
|
|
|
|
|
|
// BigInteger yspId = data_ysp.getId();
|
|
|
|
|
|
|
|
// if (yspId!=null) {
|
|
|
|
|
|
|
|
// Upload_Statics ysprecord = new Upload_Statics();
|
|
|
|
|
|
|
|
// ysprecord.setCheckType(Constant.YSPID);
|
|
|
|
|
|
|
|
// ysprecord.setFirstValue(yspId);
|
|
|
|
|
|
|
|
// ysprecord.setUploadTime(uploadTime);
|
|
|
|
|
|
|
|
// ysprecord.setUpdateTime(updateTime);
|
|
|
|
|
|
|
|
// upload_staticsDao.insertSelective(ysprecord);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Data_Microclimate data_microclimate = data_microclimateDao.selectMaxId();
|
|
|
|
|
|
|
|
// BigInteger microclimateId = data_microclimate.getId();
|
|
|
|
|
|
|
|
// if (microclimateId !=null) {
|
|
|
|
|
|
|
|
// Upload_Statics microclimaterecord = new Upload_Statics();
|
|
|
|
|
|
|
|
// microclimaterecord.setCheckType(Constant.MICROCLIMATEID);
|
|
|
|
|
|
|
|
// microclimaterecord.setFirstValue(microclimateId);
|
|
|
|
|
|
|
|
// microclimaterecord.setUploadTime(uploadTime);
|
|
|
|
|
|
|
|
// microclimaterecord.setUpdateTime(updateTime);
|
|
|
|
|
|
|
|
// upload_staticsDao.insertSelective(microclimaterecord);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Data_YxlDto data_yxlDto = data_yxDao.selectMaxId();
|
|
|
|
|
|
|
|
// BigInteger yxId = data_yxlDto.getId();
|
|
|
|
|
|
|
|
// if (yxId!=null) {
|
|
|
|
|
|
|
|
// Upload_Statics yxrecord = new Upload_Statics();
|
|
|
|
|
|
|
|
// yxrecord.setCheckType(Constant.YXID);
|
|
|
|
|
|
|
|
// yxrecord.setFirstValue(yxId);
|
|
|
|
|
|
|
|
// yxrecord.setUploadTime(uploadTime);
|
|
|
|
|
|
|
|
// yxrecord.setUpdateTime(updateTime);
|
|
|
|
|
|
|
|
// upload_staticsDao.insertSelective(yxrecord);
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|