lyhzzz 10 月之前
父节点
当前提交
4fb7ea31f2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/fdkankan/manage/service/impl/RtkDeviceServiceImpl.java

+ 2 - 2
src/main/java/com/fdkankan/manage/service/impl/RtkDeviceServiceImpl.java

@@ -171,8 +171,8 @@ public class RtkDeviceServiceImpl extends ServiceImpl<IRtkDeviceMapper, RtkDevic
     @Override
     public void updateTypeById(Integer id, Integer rtkType) {
         LambdaUpdateWrapper<RtkDevice> wrapper = new LambdaUpdateWrapper<>();
-        wrapper.eq(RtkDevice::getRtkType,rtkType);
-        wrapper.set(RtkDevice::getId,id);
+        wrapper.eq(RtkDevice::getId,id);
+        wrapper.set(RtkDevice::getRtkType,rtkType);
         this.update(wrapper);
     }