|
@@ -108,11 +108,101 @@ public class AsyncTask {
|
|
|
private void addBigTable(TXinyiIndustry tXinyiIndustry, TXinyiCalculate xinyiCalculate) {
|
|
|
TXinyiBigTableHour xinyiBigTableHour = TXinyiBigTableHour.builder().build();
|
|
|
|
|
|
- //todo 数据处理
|
|
|
+ //处理工业库的在线数据
|
|
|
+ this.addIndustry2BigTable(xinyiBigTableHour, tXinyiIndustry);
|
|
|
|
|
|
+ //处理计算的数据
|
|
|
+ this.addCalculate2BigTable(xinyiBigTableHour, xinyiCalculate);
|
|
|
+
|
|
|
+ //插入
|
|
|
this.xinyiBigTableHourMapper.insertTXinyiBigTableHour(xinyiBigTableHour);
|
|
|
}
|
|
|
|
|
|
+ private void addIndustry2BigTable(TXinyiBigTableHour xinyiBigTableHour, TXinyiIndustry tXinyiIndustry) {
|
|
|
+ xinyiBigTableHour.setGyJsCod(tXinyiIndustry.getJsCod());
|
|
|
+ xinyiBigTableHour.setGyJsPh(tXinyiIndustry.getJsPh());
|
|
|
+ xinyiBigTableHour.setGyJsSs(tXinyiIndustry.getJsSs());
|
|
|
+ xinyiBigTableHour.setGyJsTp(tXinyiIndustry.getJsTp());
|
|
|
+ xinyiBigTableHour.setGyJsTn(tXinyiIndustry.getJsTn());
|
|
|
+ xinyiBigTableHour.setGyJsNh3(tXinyiIndustry.getJsNh3());
|
|
|
+ xinyiBigTableHour.setGyJsSwPh(tXinyiIndustry.getJsSwPh());
|
|
|
+ xinyiBigTableHour.setGyJsBfyw(tXinyiIndustry.getJsBfyw());
|
|
|
+ xinyiBigTableHour.setGyCsSlqc(tXinyiIndustry.getCsSlqc());
|
|
|
+ xinyiBigTableHour.setGyCsCod(tXinyiIndustry.getCsCod());
|
|
|
+ xinyiBigTableHour.setGyCsPh(tXinyiIndustry.getCsPh());
|
|
|
+ xinyiBigTableHour.setGyCsSs(tXinyiIndustry.getCsSs());
|
|
|
+ xinyiBigTableHour.setGyCsTn(tXinyiIndustry.getCsTn());
|
|
|
+ xinyiBigTableHour.setGyCsTp(tXinyiIndustry.getCsTp());
|
|
|
+ xinyiBigTableHour.setGyCsNh3(tXinyiIndustry.getCsNh3());
|
|
|
+ xinyiBigTableHour.setGyOneHyzdDo(tXinyiIndustry.getOneHyzdDo());
|
|
|
+ xinyiBigTableHour.setGyOneHymdDo(tXinyiIndustry.getOneHymdDo());
|
|
|
+ xinyiBigTableHour.setGyTwoHyzdDo(tXinyiIndustry.getTwoHyzdDo());
|
|
|
+ xinyiBigTableHour.setGyTwoHymdDo(tXinyiIndustry.getTwoHymdDo());
|
|
|
+ xinyiBigTableHour.setGyOneMlss(tXinyiIndustry.getOneMlss());
|
|
|
+ xinyiBigTableHour.setGyTwoMlss(tXinyiIndustry.getTwoMlss());
|
|
|
+ xinyiBigTableHour.setGyJsTds(tXinyiIndustry.getJsTds());
|
|
|
+ xinyiBigTableHour.setGyJsSlq(tXinyiIndustry.getJsSlq());
|
|
|
+ xinyiBigTableHour.setGyNHlbOneGp(tXinyiIndustry.getNHlbOneGp());
|
|
|
+ xinyiBigTableHour.setGyNHlbTwoGp(tXinyiIndustry.getNHlbTwoGp());
|
|
|
+ xinyiBigTableHour.setGyNHlbThreeGp(tXinyiIndustry.getNHlbThreeGp());
|
|
|
+ xinyiBigTableHour.setGyNHlbFourGp(tXinyiIndustry.getNHlbFourGp());
|
|
|
+ xinyiBigTableHour.setGyNhlBFiveGp(tXinyiIndustry.getNhlBFiveGp());
|
|
|
+ xinyiBigTableHour.setGyNHlbSixGp(tXinyiIndustry.getNHlbSixGp());
|
|
|
+ xinyiBigTableHour.setGyWHlbOneGp(tXinyiIndustry.getWHlbOneGp());
|
|
|
+ xinyiBigTableHour.setGyWHlbTwoGp(tXinyiIndustry.getWHlbTwoGp());
|
|
|
+ xinyiBigTableHour.setGyWHlbThreeGp(tXinyiIndustry.getWHlbThreeGp());
|
|
|
+ xinyiBigTableHour.setGyWHlbFourGp(tXinyiIndustry.getWHlbFourGp());
|
|
|
+ xinyiBigTableHour.setGyWHlbFiveGp(tXinyiIndustry.getWHlbFiveGp());
|
|
|
+ xinyiBigTableHour.setGyFjOne(tXinyiIndustry.getFjOne());
|
|
|
+ xinyiBigTableHour.setGyFjTwo(tXinyiIndustry.getFjTwo());
|
|
|
+ xinyiBigTableHour.setGyFjThree(tXinyiIndustry.getFjThree());
|
|
|
+ xinyiBigTableHour.setGyFjFour(tXinyiIndustry.getFjFour());
|
|
|
+ xinyiBigTableHour.setGyFjFive(tXinyiIndustry.getFjFive());
|
|
|
+ xinyiBigTableHour.setGyFjSix(tXinyiIndustry.getFjSix());
|
|
|
+ xinyiBigTableHour.setGyKqllOne(tXinyiIndustry.getKqllOne());
|
|
|
+ xinyiBigTableHour.setGyKqllTwo(tXinyiIndustry.getKqllTwo());
|
|
|
+ xinyiBigTableHour.setGyKqllThree(tXinyiIndustry.getKqllThree());
|
|
|
+ xinyiBigTableHour.setGyKqllFour(tXinyiIndustry.getKqllFour());
|
|
|
+ xinyiBigTableHour.setGyKqllFive(tXinyiIndustry.getKqllFive());
|
|
|
+ xinyiBigTableHour.setGyKqllSix(tXinyiIndustry.getKqllSix());
|
|
|
+ xinyiBigTableHour.setGySjtyjly(tXinyiIndustry.getSJTYJLY());
|
|
|
+ xinyiBigTableHour.setGyCljyssll(tXinyiIndustry.getCLJYSSLL());
|
|
|
+ xinyiBigTableHour.setGyHycRjyAll(tXinyiIndustry.getHycRjyAll());
|
|
|
+ xinyiBigTableHour.setGyHycRjyZdAll(tXinyiIndustry.getHycRjyZdAll());
|
|
|
+ xinyiBigTableHour.setGyHycWnndAll(tXinyiIndustry.getHycWnndAll());
|
|
|
+ xinyiBigTableHour.setGyClP04Ycz(tXinyiIndustry.getCLP04YCZ());
|
|
|
+ }
|
|
|
+
|
|
|
+ private void addCalculate2BigTable(TXinyiBigTableHour xinyiBigTableHour, TXinyiCalculate xinyiCalculate) {
|
|
|
+ xinyiBigTableHour.setJsJsTdb(xinyiCalculate.getJsTdb());
|
|
|
+ xinyiBigTableHour.setJsJsTlb(xinyiCalculate.getJsTlb());
|
|
|
+ xinyiBigTableHour.setJsJsBodBCod(xinyiCalculate.getJsBodBCod());
|
|
|
+ xinyiBigTableHour.setJsYyqHrt(xinyiCalculate.getYyqHrt());
|
|
|
+ xinyiBigTableHour.setJsQyqHrt(xinyiCalculate.getQyqHrt());
|
|
|
+ xinyiBigTableHour.setJsHyqHrt(xinyiCalculate.getHyqHrt());
|
|
|
+ xinyiBigTableHour.setJsHfxwnndzb(xinyiCalculate.getHFXWNNDZB());
|
|
|
+ xinyiBigTableHour.setJsFM(xinyiCalculate.getFM());
|
|
|
+ xinyiBigTableHour.setJsGsls(xinyiCalculate.getGSLS());
|
|
|
+ xinyiBigTableHour.setJsGslsOne(xinyiCalculate.getGslsOne());
|
|
|
+ xinyiBigTableHour.setJsGslsTwo(xinyiCalculate.getGslsTwo());
|
|
|
+ xinyiBigTableHour.setJsXgsGsls(xinyiCalculate.getXgsGsls());
|
|
|
+ xinyiBigTableHour.setJsXlcscBmfh(xinyiCalculate.getXlcscBmfh());
|
|
|
+ xinyiBigTableHour.setJsXlcscHrt(xinyiCalculate.getXlcscHrt());
|
|
|
+ xinyiBigTableHour.setJsCccdcBmfh(xinyiCalculate.getCccdcBmfh());
|
|
|
+ xinyiBigTableHour.setJsCccdcHrt(xinyiCalculate.getCccdcHrt());
|
|
|
+ xinyiBigTableHour.setJsEccBmfh(xinyiCalculate.getEccBmfh());
|
|
|
+ xinyiBigTableHour.setJsEccHrt(xinyiCalculate.getEccHrt());
|
|
|
+ xinyiBigTableHour.setJsEccGtfh(xinyiCalculate.getEccGtfh());
|
|
|
+ xinyiBigTableHour.setJsClsnJcsj(xinyiCalculate.getClsnJcsj());
|
|
|
+ xinyiBigTableHour.setJsXgcdcQsqSsls(xinyiCalculate.getXgcdcQsqSsls());
|
|
|
+ xinyiBigTableHour.setJsWhlb(xinyiCalculate.getWHLB());
|
|
|
+ xinyiBigTableHour.setJsNhlb(xinyiCalculate.getNHLB());
|
|
|
+ xinyiBigTableHour.setJsWdscnl(xinyiCalculate.getWDSCNL());
|
|
|
+ xinyiBigTableHour.setJsQsb(xinyiCalculate.getQSB());
|
|
|
+ xinyiBigTableHour.setJsFcxsl(xinyiCalculate.getFCXSL());
|
|
|
+ xinyiBigTableHour.setJsFcxslbl(xinyiCalculate.getFCXSLBL());
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 额外计算一下预测的准确度
|
|
|
* @param tXinyiIndustry
|