Browse Source

除湿系统信息导出excel

XMTT 6 years ago
parent
commit
df0977dcdd

+ 1 - 1
src/main/java/com/ekexiu/project/bridge/envdata/EnvDataService.java

205
            List<EnvTranLastValue> transducers = envDataDao.queryByServer(con, active, serverIds);
205
            List<EnvTranLastValue> transducers = envDataDao.queryByServer(con, active, serverIds);
206
            for (EnvTranLastValue transducer : transducers) {
206
            for (EnvTranLastValue transducer : transducers) {
207
                final int id = transducer.getSeq();
207
                final int id = transducer.getSeq();
208
                transducer.setLastValue(JdbcUtil.queryDouble(con, "select * from env_data WHERE item_id = ? ORDER BY create_time desc limit 1", new PreparedStatementConfig() {
208
                transducer.setLastValue(JdbcUtil.queryDouble(con, "select item_value from env_data WHERE item_id = ? ORDER BY create_time desc limit 1", new PreparedStatementConfig() {
209
                    @Override
209
                    @Override
210
                    public void config(PreparedStatement preparedStatement) throws SQLException {
210
                    public void config(PreparedStatement preparedStatement) throws SQLException {
211
                        preparedStatement.setInt(1,id);
211
                        preparedStatement.setInt(1,id);