|
@@ -4,6 +4,7 @@ import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
import cn.iocoder.yudao.framework.common.pojo.SortablePageParam;
|
|
import cn.iocoder.yudao.framework.common.pojo.SortablePageParam;
|
|
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
|
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
|
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
|
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
|
|
|
+import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore;
|
|
import cn.iocoder.yudao.module.pms.controller.admin.vo.IotDevicePageReqVO;
|
|
import cn.iocoder.yudao.module.pms.controller.admin.vo.IotDevicePageReqVO;
|
|
import cn.iocoder.yudao.module.pms.controller.admin.vo.IotDeviceRespVO;
|
|
import cn.iocoder.yudao.module.pms.controller.admin.vo.IotDeviceRespVO;
|
|
import cn.iocoder.yudao.module.pms.dal.dataobject.IotDeviceDO;
|
|
import cn.iocoder.yudao.module.pms.dal.dataobject.IotDeviceDO;
|
|
@@ -64,9 +65,9 @@ public interface IotDeviceMapper extends BaseMapperX<IotDeviceDO> {
|
|
.inIfPresent(IotDeviceDO::getDeptId, deptIds));
|
|
.inIfPresent(IotDeviceDO::getDeptId, deptIds));
|
|
}
|
|
}
|
|
|
|
|
|
- default PageResult<IotDeviceDO> selectTdPage(IotDevicePageReqVO reqVO, Collection<Long> deptIds, Collection<String> codes) {
|
|
|
|
|
|
+ default PageResult<IotDeviceDO> selectTdPage(IotDevicePageReqVO reqVO, Collection<Long> deptIds) {
|
|
return selectPage(reqVO, new LambdaQueryWrapperX<IotDeviceDO>()
|
|
return selectPage(reqVO, new LambdaQueryWrapperX<IotDeviceDO>()
|
|
- .inIfPresent(IotDeviceDO::getDeviceCode, codes)
|
|
|
|
|
|
+// .inIfPresent(IotDeviceDO::getDeviceCode, codes)
|
|
.likeIfPresent(IotDeviceDO::getDeviceName, reqVO.getDeviceName())
|
|
.likeIfPresent(IotDeviceDO::getDeviceName, reqVO.getDeviceName())
|
|
.eqIfPresent(IotDeviceDO::getBrand, reqVO.getBrand())
|
|
.eqIfPresent(IotDeviceDO::getBrand, reqVO.getBrand())
|
|
.eqIfPresent(IotDeviceDO::getModel, reqVO.getModel())
|
|
.eqIfPresent(IotDeviceDO::getModel, reqVO.getModel())
|
|
@@ -97,7 +98,13 @@ public interface IotDeviceMapper extends BaseMapperX<IotDeviceDO> {
|
|
.eqIfPresent(IotDeviceDO::getTemplateJson, reqVO.getTemplateJson())
|
|
.eqIfPresent(IotDeviceDO::getTemplateJson, reqVO.getTemplateJson())
|
|
.eqIfPresent(IotDeviceDO::getDeviceCode, reqVO.getDeviceCode())
|
|
.eqIfPresent(IotDeviceDO::getDeviceCode, reqVO.getDeviceCode())
|
|
.eqIfPresent(IotDeviceDO::getBomSyncStatus, reqVO.getBomSyncStatus())
|
|
.eqIfPresent(IotDeviceDO::getBomSyncStatus, reqVO.getBomSyncStatus())
|
|
- .orderByDesc(IotDeviceDO::getId));
|
|
|
|
|
|
+ .isNotNull(IotDeviceDO::getIfInline)
|
|
|
|
+ .orderByAsc(IotDeviceDO::getIfInline).orderByDesc(IotDeviceDO::getLastInlineTime));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ default List<IotDeviceDO> selectByCodeIn(Collection<String> codes) {
|
|
|
|
+ return selectList(new LambdaQueryWrapperX<IotDeviceDO>()
|
|
|
|
+ .in(IotDeviceDO::getDeviceCode, codes));
|
|
}
|
|
}
|
|
|
|
|
|
/* default PageResult<IotDeviceDO> deviceAssociateBomPage(IotDevicePageReqVO reqVO, Collection<Long> deptIds) {
|
|
/* default PageResult<IotDeviceDO> deviceAssociateBomPage(IotDevicePageReqVO reqVO, Collection<Long> deptIds) {
|