XMTT 6 年之前
父节点
当前提交
89299ebcaa
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/main/java/com/ekexiu/project/bridge/resource/service/BridgeService.java

+ 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