| | |
| | | String table = devId + "_" + ThreadLocalUtil.format(startTime,2); |
| | | //System.err.println("finalII:" + finalII + ",table:" + table); |
| | | //判断表是否存在 |
| | | int tableNum = mapper.judgeTable(table); |
| | | //int tableNum = mapper.judgeTable(table); |
| | | int tableNum = subService.judgeTable_pwr(table); |
| | | List<PwrdevHistorydataGw> list = new ArrayList(); |
| | | if (tableNum > 0) { |
| | | //List<Integer> calcNumList = mapper.searchMaxNum2(startTime, stopTime, table); |
| | |
| | | roteN = maxNum / endN + 1; |
| | | } |
| | | } |
| | | list = mapper.serchByCondition(startTime, stopTime, table, roteN); |
| | | //list = mapper.serchByCondition(startTime, stopTime, table, roteN); |
| | | list = subService.serchByCondition(startTime, stopTime, table, roteN); |
| | | } |
| | | dataList.addAll(list); |
| | | latch.countDown(); |