|
|
@@ -18,6 +18,7 @@ public interface IotDevicePersonLogMapper extends BaseMapperX<IotDevicePersonLog
|
|
|
default PageResult<IotDevicePersonLogDO> selectPage(IotDevicePersonLogPageReqVO reqVO) {
|
|
|
return selectPage(reqVO, new LambdaQueryWrapperX<IotDevicePersonLogDO>()
|
|
|
.eqIfPresent(IotDevicePersonLogDO::getDeviceId, reqVO.getDeviceId())
|
|
|
+ .inIfPresent(IotDevicePersonLogDO::getDeviceId, reqVO.getDeviceIds())
|
|
|
.eqIfPresent(IotDevicePersonLogDO::getOldPersonId, reqVO.getOldPersonId())
|
|
|
.eqIfPresent(IotDevicePersonLogDO::getOldPersonIds, reqVO.getOldPersonIds())
|
|
|
.eqIfPresent(IotDevicePersonLogDO::getNewPersonId, reqVO.getNewPersonId())
|
|
|
@@ -25,7 +26,7 @@ public interface IotDevicePersonLogMapper extends BaseMapperX<IotDevicePersonLog
|
|
|
.eqIfPresent(IotDevicePersonLogDO::getReason, reqVO.getReason())
|
|
|
.eqIfPresent(IotDevicePersonLogDO::getRemark, reqVO.getRemark())
|
|
|
.betweenIfPresent(IotDevicePersonLogDO::getCreateTime, reqVO.getCreateTime())
|
|
|
- .orderByDesc(IotDevicePersonLogDO::getId));
|
|
|
+ .orderByDesc(IotDevicePersonLogDO::getDeviceId));
|
|
|
}
|
|
|
|
|
|
}
|