|
@@ -1,6 +1,7 @@
|
|
|
package com.zjugis.business.mapper;
|
|
|
|
|
|
import com.zjugis.business.bean.entity.ProjectReport;
|
|
|
+import com.zjugis.business.bean.request.ProjectReportPassListRequest;
|
|
|
import com.zjugis.business.enums.ProjectReportStatusEnum;
|
|
|
import com.zjugis.framework.mybatis.core.mapper.BaseMapperX;
|
|
|
import com.zjugis.framework.mybatis.core.query.LambdaQueryWrapperX;
|
|
@@ -29,58 +30,66 @@ public interface ProjectReportMapper extends BaseMapperX<ProjectReport> {
|
|
|
|
|
|
/**
|
|
|
* 通过期号和项目ID查询填报记录
|
|
|
+ *
|
|
|
* @param projectId
|
|
|
* @param periodId
|
|
|
* @return
|
|
|
*/
|
|
|
- default ProjectReport selectByProjectIdAndPeriodId(String projectId, String periodId){
|
|
|
- return selectOne(new LambdaQueryWrapperX<ProjectReport>().eq(ProjectReport::getProjectId,projectId).eq(ProjectReport::getPeriodId,periodId));
|
|
|
+ default ProjectReport selectByProjectIdAndPeriodId(String projectId, String periodId) {
|
|
|
+ return selectOne(new LambdaQueryWrapperX<ProjectReport>().eq(ProjectReport::getProjectId, projectId).eq(ProjectReport::getPeriodId, periodId));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取审核列表
|
|
|
+ *
|
|
|
* @param loginUserId
|
|
|
* @param periodId
|
|
|
* @return
|
|
|
*/
|
|
|
- default List<ProjectReport> getCheckList(String loginUserId, String periodId){
|
|
|
+ default List<ProjectReport> getCheckList(String loginUserId, String periodId) {
|
|
|
return selectList(new LambdaQueryWrapperX<ProjectReport>()
|
|
|
.eq(ProjectReport::getReportStatus, ProjectReportStatusEnum.AUDIT.getValue())
|
|
|
- .eq(ProjectReport::getReportAuditorId,loginUserId)
|
|
|
- .eq(ProjectReport::getPeriodId,periodId));
|
|
|
+ .eq(ProjectReport::getReportAuditorId, loginUserId)
|
|
|
+ .eq(ProjectReport::getPeriodId, periodId));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取审核通过列表
|
|
|
+ *
|
|
|
* @param projectIds
|
|
|
* @param periodId
|
|
|
* @return
|
|
|
*/
|
|
|
- default List<ProjectReport> getPassList(Set<String> projectIds, String periodId){
|
|
|
+ default List<ProjectReport> getPassList(Set<String> projectIds, String periodId, ProjectReportPassListRequest reqVO) {
|
|
|
return selectList(new LambdaQueryWrapperX<ProjectReport>()
|
|
|
- .inIfPresent(ProjectReport::getProjectId,projectIds)
|
|
|
- .eq(ProjectReport::getPeriodId,periodId)
|
|
|
+ .inIfPresent(ProjectReport::getProjectId, projectIds)
|
|
|
+ .likeIfPresent(ProjectReport::getXmbh, reqVO.getXmbh())
|
|
|
+ .likeIfPresent(ProjectReport::getXmmc, reqVO.getXmmc())
|
|
|
+ .likeIfPresent(ProjectReport::getXmjl, reqVO.getXmjl())
|
|
|
+ .eq(ProjectReport::getPeriodId, periodId)
|
|
|
.isNotNull(ProjectReport::getPassProgress));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取全部审核通过列表
|
|
|
+ *
|
|
|
* @param periodId
|
|
|
* @return
|
|
|
*/
|
|
|
- default List<ProjectReport> getAllPassList(String periodId){
|
|
|
+ default List<ProjectReport> getAllPassList(String periodId) {
|
|
|
return selectList(new LambdaQueryWrapperX<ProjectReport>()
|
|
|
.isNotNull(ProjectReport::getPassProgress)
|
|
|
- .eq(ProjectReport::getPeriodId,periodId));
|
|
|
+ .eq(ProjectReport::getPeriodId, periodId));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 通过ID列表寻找记录
|
|
|
+ *
|
|
|
* @param reportIds
|
|
|
* @return
|
|
|
*/
|
|
|
- default List<ProjectReport> getListByIds(Set<String> reportIds){
|
|
|
+ default List<ProjectReport> getListByIds(Set<String> reportIds) {
|
|
|
return selectList(new LambdaQueryWrapperX<ProjectReport>()
|
|
|
- .in(ProjectReport::getId,reportIds));
|
|
|
+ .in(ProjectReport::getId, reportIds));
|
|
|
}
|
|
|
}
|