Commit a08526d855b0abca491493766c2ad48f3164e06b

Authored by YunaiV
1 parent bf4e3663

fix(iot):修复 configLevel 传参不对

yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/controller/admin/alert/vo/recrod/IotAlertRecordPageReqVO.java
@@ -17,7 +17,7 @@ public class IotAlertRecordPageReqVO extends PageParam { @@ -17,7 +17,7 @@ public class IotAlertRecordPageReqVO extends PageParam {
17 private Long configId; 17 private Long configId;
18 18
19 @Schema(description = "告警级别", example = "1") 19 @Schema(description = "告警级别", example = "1")
20 - private Integer level; 20 + private Integer configLevel;
21 21
22 @Schema(description = "产品编号", example = "2050") 22 @Schema(description = "产品编号", example = "2050")
23 private Long productId; 23 private Long productId;
yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/dal/mysql/alert/IotAlertRecordMapper.java
@@ -22,7 +22,7 @@ public interface IotAlertRecordMapper extends BaseMapperX<IotAlertRecordDO> { @@ -22,7 +22,7 @@ public interface IotAlertRecordMapper extends BaseMapperX<IotAlertRecordDO> {
22 default PageResult<IotAlertRecordDO> selectPage(IotAlertRecordPageReqVO reqVO) { 22 default PageResult<IotAlertRecordDO> selectPage(IotAlertRecordPageReqVO reqVO) {
23 return selectPage(reqVO, new LambdaQueryWrapperX<IotAlertRecordDO>() 23 return selectPage(reqVO, new LambdaQueryWrapperX<IotAlertRecordDO>()
24 .eqIfPresent(IotAlertRecordDO::getConfigId, reqVO.getConfigId()) 24 .eqIfPresent(IotAlertRecordDO::getConfigId, reqVO.getConfigId())
25 - .eqIfPresent(IotAlertRecordDO::getConfigLevel, reqVO.getLevel()) 25 + .eqIfPresent(IotAlertRecordDO::getConfigLevel, reqVO.getConfigLevel())
26 .eqIfPresent(IotAlertRecordDO::getProductId, reqVO.getProductId()) 26 .eqIfPresent(IotAlertRecordDO::getProductId, reqVO.getProductId())
27 .eqIfPresent(IotAlertRecordDO::getDeviceId, reqVO.getDeviceId()) 27 .eqIfPresent(IotAlertRecordDO::getDeviceId, reqVO.getDeviceId())
28 .eqIfPresent(IotAlertRecordDO::getProcessStatus, reqVO.getProcessStatus()) 28 .eqIfPresent(IotAlertRecordDO::getProcessStatus, reqVO.getProcessStatus())