新增监管端和机构端首页数据

dev
huwei 2026-07-31 15:41:58 +08:00
parent dec6a6d5af
commit f98bdee91f
5 changed files with 30 additions and 1 deletions

View File

@ -21,7 +21,7 @@ import org.qinan.safetyeval.domain.entity.InspNoticeEntity;
import org.qinan.safetyeval.domain.entity.OrgInfoEntity;
import org.qinan.safetyeval.domain.entity.OrgPersonnelEntity;
import org.qinan.safetyeval.domain.gateway.EvalProjectGateway;
import org.qinan.safetyeval.domain.gateway.EvalProjectProcessWaringGateway;
import org.qinan.safetyeval.domain.waring.gateway.EvalProjectProcessWaringGateway;
import org.qinan.safetyeval.domain.gateway.EvalRiskAnalysisGateway;
import org.qinan.safetyeval.domain.gateway.InspNoticeGateway;
import org.qinan.safetyeval.domain.gateway.OrgInfoGateway;

View File

@ -41,4 +41,12 @@ public interface EvalProjectProcessWaringGateway {
* @return
*/
Boolean deletedEvalProjectProcessWaringByIds(Long[] ids);
/**
*
*
* @param projectId ID
* @return
*/
Boolean checkProjectHasWaring(Long projectId);
}

View File

@ -45,4 +45,9 @@ public class EvalProjectProcessWaringGatewayImpl implements EvalProjectProcessWa
public Boolean deletedEvalProjectProcessWaringByIds(Long[] ids) {
return evalProjectProcessWaringRepository.deletedEvalProjectProcessWaringByIds(ids);
}
@Override
public Boolean checkProjectHasWaring(Long projectId) {
return evalProjectProcessWaringRepository.checkProjectHasWaring(projectId);
}
}

View File

@ -62,4 +62,12 @@ public interface EvalProjectProcessWaringRepository extends BaseRepository<EvalP
*/
Boolean deletedEvalProjectProcessWaringByIds(Long[] ids);
/**
*
*
* @param projectId ID
* @return
*/
Boolean checkProjectHasWaring(Long projectId);
}

View File

@ -78,4 +78,12 @@ public class EvalProjectProcessWaringRepositoryImpl extends BaseRepositoryImpl<E
public Boolean deletedEvalProjectProcessWaringByIds(Long[] ids) {
return super.removeBatchEnByIds(Arrays.asList(ids));
}
@Override
public Boolean checkProjectHasWaring(Long projectId) {
return super.lambdaQuery()
.eq(EvalProjectProcessWaringDO::getProjectId, projectId)
.eq(EvalProjectProcessWaringDO::getDeleteEnum, BooleanEnum.FALSE.getValue())
.count() > 0;
}
}