XMTT 6 ans auparavant
Parent
commit
89299ebcaa

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

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