|
@@ -500,8 +500,8 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
|
return R.ok();
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
@ApiOperation("批量修改")
|
|
|
- @PostMapping("updateBatch")
|
|
|
public R updateBatch(@RequestBody List<DeviceInfoDto.Update> updates) {
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
List<DeviceInfo> deviceInfos = new ArrayList<>(updates.size());
|
|
@@ -778,6 +778,7 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
|
@Override
|
|
|
public R<List<DeviceInfoDto.Vo>> list(DeviceInfoDto.ListDto dto) {
|
|
|
List<DeviceInfo> list = list(new LambdaQueryWrapper<DeviceInfo>()
|
|
|
+ .eq(DeviceInfo::getFreezeStatus, dto.getFreezeStatus())
|
|
|
.in(CollUtil.isNotEmpty(dto.getDeviceIds()), DeviceInfo::getDeviceId, dto.getDeviceIds())
|
|
|
.eq(Emptys.check(dto.getMercId()), DeviceInfo::getMercId, dto.getMercId())
|
|
|
);
|