feat(biz): 添加电力环境设备更新功能
- 在 LcPowerEnvDeviceServiceImpl 中实现 updateById 方法 - 移除测试类中不必要的 ID 设置逻辑
This commit is contained in:
@@ -25,7 +25,6 @@ public class LcBuildingMapperTest extends BaseDbUnitTest {
|
|||||||
public void testInsert() {
|
public void testInsert() {
|
||||||
// 准备数据
|
// 准备数据
|
||||||
LcBuildingEntity entity = new LcBuildingEntity();
|
LcBuildingEntity entity = new LcBuildingEntity();
|
||||||
entity.setId(IdUtil.getSnowflakeNextId());
|
|
||||||
entity.setBuildingId("BUILDING_001");
|
entity.setBuildingId("BUILDING_001");
|
||||||
entity.setBuildingName("测试楼宇");
|
entity.setBuildingName("测试楼宇");
|
||||||
entity.setCampusId("CAMPUS_001");
|
entity.setCampusId("CAMPUS_001");
|
||||||
|
|||||||
@@ -27,4 +27,9 @@ public class LcPowerEnvDeviceServiceImpl implements ILcPowerEnvDeviceService {
|
|||||||
return baseMapper.selectList(new LambdaQueryWrapperX<>());
|
return baseMapper.selectList(new LambdaQueryWrapperX<>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int updateById(LcPowerEnvDeviceEntity entity) {
|
||||||
|
return baseMapper.updateById(entity);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user