XMTT 6 gadi atpakaļ
vecāks
revīzija
89299ebcaa

+ 2 - 0
src/main/java/com/ekexiu/project/bridge/resource/service/BridgeService.java

366
    @Path("/transducer/update")
366
    @Path("/transducer/update")
367
    public void updateTransducer(@JdbcConn(true) Connection con, @LoginUser SessionUser sessionUser, Transducer transducer) throws SQLException {
367
    public void updateTransducer(@JdbcConn(true) Connection con, @LoginUser SessionUser sessionUser, Transducer transducer) throws SQLException {
368
        transducer.setModifier(sessionUser.getId());
368
        transducer.setModifier(sessionUser.getId());
369
        CollectDevice device = this.collectDeviceDao.query(con, transducer.getDeviceId());
370
        transducer.setServerId(device.getServerId());
369
        this.transducerDao.update(con, transducer);
371
        this.transducerDao.update(con, transducer);
370
    }
372
    }
371
373