|
|
@@ -63,7 +63,7 @@ public interface IotRdDailyReportMapper extends BaseMapperX<IotRdDailyReportDO>
|
|
|
|
|
|
default PageResult<IotRdDailyReportDO> selectPage(IotRdDailyReportPageReqVO reqVO) {
|
|
|
LambdaQueryWrapperX<IotRdDailyReportDO> wrapper = buildCommonQuery(reqVO)
|
|
|
- .eqIfPresent(IotRdDailyReportDO::getDeptId, reqVO.getDeptId());
|
|
|
+ .eqIfPresent(IotRdDailyReportDO::getProjectId, reqVO.getProjectId());
|
|
|
|
|
|
wrapper.and(wq -> wq.eq(IotRdDailyReportDO::getPlatformWell, 0)
|
|
|
.or()
|
|
|
@@ -73,7 +73,7 @@ public interface IotRdDailyReportMapper extends BaseMapperX<IotRdDailyReportDO>
|
|
|
|
|
|
default List<IotRdDailyReportDO> dailyReports(IotRdDailyReportPageReqVO reqVO) {
|
|
|
return selectList(new LambdaQueryWrapperX<IotRdDailyReportDO>()
|
|
|
- .eqIfPresent(IotRdDailyReportDO::getDeptId, reqVO.getDeptId())
|
|
|
+ .inIfPresent(IotRdDailyReportDO::getDeptId, reqVO.getDeptIds())
|
|
|
.eqIfPresent(IotRdDailyReportDO::getProjectId, reqVO.getProjectId())
|
|
|
.inIfPresent(IotRdDailyReportDO::getProjectId, reqVO.getProjectIds())
|
|
|
.eqIfPresent(IotRdDailyReportDO::getPlatformGroup, reqVO.getPlatformGroup())
|
|
|
@@ -124,7 +124,6 @@ public interface IotRdDailyReportMapper extends BaseMapperX<IotRdDailyReportDO>
|
|
|
default LambdaQueryWrapperX<IotRdDailyReportDO> buildCommonQuery(IotRdDailyReportPageReqVO reqVO) {
|
|
|
return new LambdaQueryWrapperX<IotRdDailyReportDO>()
|
|
|
.inIfPresent(IotRdDailyReportDO::getDeptId, reqVO.getDeptIds())
|
|
|
- .eqIfPresent(IotRdDailyReportDO::getProjectId, reqVO.getProjectId())
|
|
|
.inIfPresent(IotRdDailyReportDO::getProjectId, reqVO.getProjectIds())
|
|
|
.eqIfPresent(IotRdDailyReportDO::getTaskId, reqVO.getTaskId())
|
|
|
.inIfPresent(IotRdDailyReportDO::getTaskId, reqVO.getTaskIds())
|