| | |
| | | String[] strs = names.split(","); |
| | | int count = countCsv(bigPath, hours); |
| | | if (0 == count) { |
| | | list.add(strs[0] + "近" + hours + "小时存在文件缺失,"); |
| | | list.add(strs[0]); |
| | | } |
| | | count = countCsv(filePath, hours); |
| | | if (0 == count) { |
| | | list.add(strs[1] + "近" + hours + "小时存在文件缺失,"); |
| | | list.add(strs[1]); |
| | | } |
| | | count = countCsv(vocPath, hours); |
| | | if (0 == count) { |
| | | list.add(strs[2] + "近" + hours + "小时存在文件缺失,"); |
| | | list.add(strs[2]); |
| | | } |
| | | |
| | | Calendar calendar = getCalendar(0); |
| | |
| | | |
| | | count = qxshMapper.countGcsjByTime(iStart, iEnd); |
| | | if (0 == count) { |
| | | list.add(strs[3] + "近" + hours + "小时存在数据缺失"); |
| | | list.add(strs[3]); |
| | | } |
| | | count = qxshMapper.countQxshByTime(iStart, iEnd); |
| | | if (0 == count) { |
| | | list.add(strs[4] + "近" + hours + "小时存在数据缺失"); |
| | | list.add(strs[4]); |
| | | } |
| | | count = qxshMapper.countSuYuan46ByTime(sStart, sEnd); |
| | | if (0 == count) { |
| | | list.add(strs[5] + "近" + hours + "小时存在数据缺失"); |
| | | list.add(strs[5]); |
| | | } |
| | | count = qxshMapper.countSuYuan70ByTime(sStart, sEnd); |
| | | if (0 == count) { |
| | | list.add(strs[6] + "近" + hours + "小时存在数据缺失"); |
| | | list.add(strs[6]); |
| | | } |
| | | count = qxshMapper.countSuYuanFastByTime(sStart, sEnd); |
| | | if (0 == count) { |
| | | list.add(strs[7] + "近" + hours + "小时存在数据缺失"); |
| | | list.add(strs[7]); |
| | | } |
| | | |
| | | int size = list.size(); |
| | | if (size > 0) { |
| | | String text = String.join(",", list.toArray(new String[list.size()])) + "。"; |
| | | String text = String.join("、", list.toArray(new String[list.size()])) + ",近" + hours + "小时内存在数据缺失。"; |
| | | send(title, text); |
| | | } |
| | | |