| | |
| | | } |
| | | List<String> tables = new ArrayList<>(); |
| | | for (DictRecord dr : dictList) { |
| | | tables.add(dr.getTableName()); |
| | | if(suYuanMapper.isTableExists(dr.getTableName())>0) { |
| | | tables.add(dr.getTableName()); |
| | | } |
| | | } |
| | | if (tables.size()==0){ |
| | | return list; |
| | | } |
| | | |
| | | for (String tab : tables) { |
| | |
| | | list.add(new WarningVo(s.getLocationName(), s.getSuYuanId(), 0.0, 0.0, s.getValue())); |
| | | } |
| | | } |
| | | |
| | | for (String tab : tables) { |
| | | List<WarningDetail> warnList = getWarnByTime(tab, ids); |
| | | for (WarningDetail s : warnList) { |
| | |
| | | <select id="selectByTime" resultMap="DictRecordResult"> |
| | | SELECT id, table_name, create_time |
| | | FROM dict_record |
| | | where str_to_date(create_time, '%Y-%m-%d-%H:%i:%S') between #{start} and #{end} |
| | | where str_to_date(create_time, '%Y%m%d%H') between #{start} and #{end} |
| | | order by create_time; |
| | | </select> |
| | | |