Ver Fonte

pms 责任人调整日志 搜索条件

zhangcl há 4 dias atrás
pai
commit
0a448c9ea1

+ 2 - 1
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/mysql/iotdevicepersonlog/IotDevicePersonLogMapper.java

@@ -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));
     }
 
 }