|
@@ -336,11 +336,11 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
|
|
|
|
|
//专家意见反馈
|
|
|
LambdaQueryWrapper<PmExpertFeedback> pmExpertFeedbackLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
- pmExpertFeedbackLambdaQueryWrapper.eq(PmExpertFeedback::getDemandId,demandId);
|
|
|
+ pmExpertFeedbackLambdaQueryWrapper.eq(PmExpertFeedback::getDemandId, demandId);
|
|
|
PmExpertFeedback pmExpertFeedback = pmExpertFeedbackService.getOne(pmExpertFeedbackLambdaQueryWrapper);
|
|
|
- if(!ObjectUtils.isEmpty(pmExpertFeedback)){
|
|
|
+ if (!ObjectUtils.isEmpty(pmExpertFeedback)) {
|
|
|
PmExpertFeedbackResVo pmExpertFeedbackResVo = new PmExpertFeedbackResVo();
|
|
|
- BeanUtils.copyProperties(pmExpertFeedback,pmExpertFeedbackResVo);
|
|
|
+ BeanUtils.copyProperties(pmExpertFeedback, pmExpertFeedbackResVo);
|
|
|
|
|
|
List<SysFileInfo> fileInfos = getSysFileInfoList(pmExpertFeedbackResVo.getId(), SysFileRefEnum.PM_EXPERT_FEEDBACK.getType());
|
|
|
if (!ObjectUtils.isEmpty(fileInfos)) {
|
|
@@ -351,11 +351,11 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
|
|
|
|
|
//采购文件编制审核
|
|
|
LambdaQueryWrapper<PmProcurementDocumentsReview> pmProcurementDocumentsReviewLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
- pmProcurementDocumentsReviewLambdaQueryWrapper.eq(PmProcurementDocumentsReview::getDemandId,demandId);
|
|
|
+ pmProcurementDocumentsReviewLambdaQueryWrapper.eq(PmProcurementDocumentsReview::getDemandId, demandId);
|
|
|
PmProcurementDocumentsReview pmProcurementDocumentsReview = pmProcurementDocumentsReviewService.getOne(pmProcurementDocumentsReviewLambdaQueryWrapper);
|
|
|
- if(!ObjectUtils.isEmpty(pmProcurementDocumentsReview)){
|
|
|
+ if (!ObjectUtils.isEmpty(pmProcurementDocumentsReview)) {
|
|
|
PmProcurementDocumentsReviewResVo pmProcurementDocumentsReviewResVo = new PmProcurementDocumentsReviewResVo();
|
|
|
- BeanUtils.copyProperties(pmProcurementDocumentsReview,pmProcurementDocumentsReviewResVo);
|
|
|
+ BeanUtils.copyProperties(pmProcurementDocumentsReview, pmProcurementDocumentsReviewResVo);
|
|
|
|
|
|
List<SysFileInfo> fileInfos = getSysFileInfoList(pmProcurementDocumentsReviewResVo.getId(), SysFileRefEnum.PM_BID_FILE.getType());
|
|
|
if (!ObjectUtils.isEmpty(fileInfos)) {
|
|
@@ -387,15 +387,15 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
|
|
|
|
|
//标前质疑投诉
|
|
|
LambdaQueryWrapper<PmCallQuestion> pmCallQuestionLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
- pmCallQuestionLambdaQueryWrapper.eq(PmCallQuestion::getDemandId,demandId)
|
|
|
- .eq(PmCallQuestion::getType,'0').orderByDesc(PmCallQuestion::getCallQuestionTime);
|
|
|
- List<PmCallQuestion> pmCallQuestionList = pmCallQuestionService.list(pmCallQuestionLambdaQueryWrapper);
|
|
|
- if(!ObjectUtils.isEmpty(pmCallQuestionList)){
|
|
|
+ pmCallQuestionLambdaQueryWrapper.eq(PmCallQuestion::getDemandId, demandId)
|
|
|
+ .eq(PmCallQuestion::getType, '0').orderByDesc(PmCallQuestion::getCallQuestionTime);
|
|
|
+ List<PmCallQuestion> pmCallQuestionList = pmCallQuestionService.list(pmCallQuestionLambdaQueryWrapper);
|
|
|
+ if (!ObjectUtils.isEmpty(pmCallQuestionList)) {
|
|
|
List<PmCallQuestionResVo> pmCallQuestionResVoList = new ArrayList<>();
|
|
|
List<SysFileInfo> fileInfosAll = new ArrayList<>();
|
|
|
- for(PmCallQuestion pmCallQuestion : pmCallQuestionList){
|
|
|
+ for (PmCallQuestion pmCallQuestion : pmCallQuestionList) {
|
|
|
PmCallQuestionResVo pmCallQuestionResVo = new PmCallQuestionResVo();
|
|
|
- BeanUtils.copyProperties(pmCallQuestion,pmCallQuestionResVo);
|
|
|
+ BeanUtils.copyProperties(pmCallQuestion, pmCallQuestionResVo);
|
|
|
List<SysFileInfo> fileInfos = getSysFileInfoList(pmCallQuestionResVo.getId(), SysFileRefEnum.PM_PRE_BID_CALL_QUESTION.getType());
|
|
|
if (!ObjectUtils.isEmpty(fileInfos)) {
|
|
|
fileInfosAll.addAll(fileInfos);
|
|
@@ -439,15 +439,15 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
|
|
|
|
|
//标后质疑
|
|
|
LambdaQueryWrapper<PmCallQuestion> pmCallQuestionLambdaQueryWrapper2 = new LambdaQueryWrapper<>();
|
|
|
- pmCallQuestionLambdaQueryWrapper2.eq(PmCallQuestion::getDemandId,demandId)
|
|
|
- .eq(PmCallQuestion::getType,'1').orderByDesc(PmCallQuestion::getCallQuestionTime);
|
|
|
- List<PmCallQuestion> pmCallQuestionList2 = pmCallQuestionService.list(pmCallQuestionLambdaQueryWrapper2);
|
|
|
- if(!ObjectUtils.isEmpty(pmCallQuestionList2)){
|
|
|
+ pmCallQuestionLambdaQueryWrapper2.eq(PmCallQuestion::getDemandId, demandId)
|
|
|
+ .eq(PmCallQuestion::getType, '1').orderByDesc(PmCallQuestion::getCallQuestionTime);
|
|
|
+ List<PmCallQuestion> pmCallQuestionList2 = pmCallQuestionService.list(pmCallQuestionLambdaQueryWrapper2);
|
|
|
+ if (!ObjectUtils.isEmpty(pmCallQuestionList2)) {
|
|
|
List<PmCallQuestionResVo> pmCallQuestionResVoList = new ArrayList<>();
|
|
|
List<SysFileInfo> fileInfosAll = new ArrayList<>();
|
|
|
- for(PmCallQuestion pmCallQuestion : pmCallQuestionList2){
|
|
|
+ for (PmCallQuestion pmCallQuestion : pmCallQuestionList2) {
|
|
|
PmCallQuestionResVo pmCallQuestionResVo = new PmCallQuestionResVo();
|
|
|
- BeanUtils.copyProperties(pmCallQuestion,pmCallQuestionResVo);
|
|
|
+ BeanUtils.copyProperties(pmCallQuestion, pmCallQuestionResVo);
|
|
|
List<SysFileInfo> fileInfos = getSysFileInfoList(pmCallQuestionResVo.getId(), SysFileRefEnum.PM_BID_CALL_QEUSTION_FILE.getType());
|
|
|
if (!ObjectUtils.isEmpty(fileInfos)) {
|
|
|
fileInfosAll.addAll(fileInfos);
|
|
@@ -479,7 +479,7 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
|
|
}
|
|
|
|
|
|
|
|
|
- if("1".equals(pmBidFailure.getCallQuestion())){ //有质疑
|
|
|
+ if ("1".equals(pmBidFailure.getCallQuestion())) { //有质疑
|
|
|
PmCallQuestionResVo pmCallQuestionResVo = new PmCallQuestionResVo();
|
|
|
pmCallQuestionResVo.setCallQuestion(pmBidFailure.getCallQuestion());
|
|
|
pmCallQuestionResVo.setCallQuestionTime(pmBidFailure.getCallQuestionTime());
|
|
@@ -650,39 +650,39 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
|
|
}
|
|
|
|
|
|
LambdaQueryWrapper<PmExpertFeedback> pmExpertFeedbackLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
- pmExpertFeedbackLambdaQueryWrapper.eq(PmExpertFeedback::getDemandId,vo.getDemandId());
|
|
|
+ pmExpertFeedbackLambdaQueryWrapper.eq(PmExpertFeedback::getDemandId, vo.getDemandId());
|
|
|
PmExpertFeedback pmExpertFeedback = this.pmExpertFeedbackService.getOne(pmExpertFeedbackLambdaQueryWrapper);
|
|
|
- if(pmExpertFeedback != null){
|
|
|
+ if (pmExpertFeedback != null) {
|
|
|
vo.setProjectNumber(pmExpertFeedback.getProjectNumber());
|
|
|
vo.setDocumentReviewTime(pmExpertFeedback.getDocumentReviewTime());
|
|
|
}
|
|
|
|
|
|
LambdaQueryWrapper<PmProcurementDocumentsReview> pmProcurementDocumentsReviewLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
- pmProcurementDocumentsReviewLambdaQueryWrapper.eq(PmProcurementDocumentsReview::getDemandId,vo.getDemandId());
|
|
|
+ pmProcurementDocumentsReviewLambdaQueryWrapper.eq(PmProcurementDocumentsReview::getDemandId, vo.getDemandId());
|
|
|
PmProcurementDocumentsReview pmProcurementDocumentsReview = this.pmProcurementDocumentsReviewService.getOne(pmProcurementDocumentsReviewLambdaQueryWrapper);
|
|
|
- if(pmProcurementDocumentsReview != null){
|
|
|
+ if (pmProcurementDocumentsReview != null) {
|
|
|
vo.setProcurementOfficeApprovalTime(pmProcurementDocumentsReview.getProcurementOfficeApprovalTime());
|
|
|
}
|
|
|
|
|
|
- if(Integer.parseInt(vo.getProjectStatus()) > 12 && Integer.parseInt(vo.getProjectStatus()) != 18){
|
|
|
+ if (Integer.parseInt(vo.getProjectStatus()) > 12 && Integer.parseInt(vo.getProjectStatus()) != 18) {
|
|
|
LambdaQueryWrapper<PmReleaseAnnouncement> pmReleaseAnnouncementLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
- pmReleaseAnnouncementLambdaQueryWrapper.eq(PmReleaseAnnouncement::getDemandId,vo.getDemandId())
|
|
|
+ pmReleaseAnnouncementLambdaQueryWrapper.eq(PmReleaseAnnouncement::getDemandId, vo.getDemandId())
|
|
|
.orderByDesc(PmReleaseAnnouncement::getReleaseTime)
|
|
|
- .last(" limit 1");
|
|
|
+ .last(" limit 1");
|
|
|
PmReleaseAnnouncement pmReleaseAnnouncement = this.pmReleaseAnnouncementService.getOne(pmReleaseAnnouncementLambdaQueryWrapper);
|
|
|
- if(pmReleaseAnnouncement != null){
|
|
|
+ if (pmReleaseAnnouncement != null) {
|
|
|
vo.setAnnouncementReleaseTime(pmReleaseAnnouncement.getReleaseTime());
|
|
|
vo.setTenderOpenTime(pmReleaseAnnouncement.getTenderOpenTime());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if(Integer.parseInt(vo.getProjectStatus()) > 15 && Integer.parseInt(vo.getProjectStatus()) != 16 && Integer.parseInt(vo.getProjectStatus()) != 18){
|
|
|
+ if (Integer.parseInt(vo.getProjectStatus()) > 15 && Integer.parseInt(vo.getProjectStatus()) != 16 && Integer.parseInt(vo.getProjectStatus()) != 18) {
|
|
|
LambdaQueryWrapper<PmBidWinning> pmBidWinningLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
- pmBidWinningLambdaQueryWrapper.eq(PmBidWinning::getDemandId,vo.getDemandId()).eq(PmBidWinning::getStatus,BidWinningStatus.NORMAL.getCode())
|
|
|
+ pmBidWinningLambdaQueryWrapper.eq(PmBidWinning::getDemandId, vo.getDemandId()).eq(PmBidWinning::getStatus, BidWinningStatus.NORMAL.getCode())
|
|
|
.orderByDesc(PmBidWinning::getBidAnnouncementTime)
|
|
|
.last(" limit 1");
|
|
|
PmBidWinning pmBidWinning = this.pmBidWinningService.getOne(pmBidWinningLambdaQueryWrapper);
|
|
|
- if(pmBidWinning != null){
|
|
|
+ if (pmBidWinning != null) {
|
|
|
vo.setBidAnnouncementTime(pmBidWinning.getBidAnnouncementTime());
|
|
|
}
|
|
|
}
|
|
@@ -947,11 +947,11 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
|
|
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public boolean uploadFile(Long redId, Integer fileType, List<SysFileRef> sysFileRefs, String upateBy,boolean delOld) {
|
|
|
+ public boolean uploadFile(Long redId, Integer fileType, List<SysFileRef> sysFileRefs, String upateBy, boolean delOld) {
|
|
|
|
|
|
if (!ObjectUtils.isEmpty(sysFileRefs)) {
|
|
|
//删除老的
|
|
|
- if(delOld){
|
|
|
+ if (delOld) {
|
|
|
QueryWrapper<SysFileRef> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.lambda().eq(SysFileRef::getRedId, redId)
|
|
|
.eq(SysFileRef::getType, fileType);
|
|
@@ -983,7 +983,7 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public boolean uploadFile(Long redId, Integer fileType, List<SysFileRef> sysFileRefs, String upateBy) {
|
|
|
- return uploadFile(redId, fileType, sysFileRefs, upateBy,false);
|
|
|
+ return uploadFile(redId, fileType, sysFileRefs, upateBy, false);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -1974,16 +1974,22 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
|
|
public AjaxResult countProjectExceed(PmDemandReqVo pmDemandReqVo) {
|
|
|
//是-1就是查询自己及子孙级以下,否则只查询指定部门
|
|
|
pmDemandReqVo.setDeptList(isQueryAll(pmDemandReqVo.getPurchaseDeptId()));
|
|
|
- HashMap<String, String> resMap = new HashMap<>();
|
|
|
+ List<StatisticalChartsResVo> resVos = new ArrayList<>();
|
|
|
//执行滞后采购项目:本年度所有的逾期项目数
|
|
|
//预算金额:本年度所有逾期项目累加的预算金额
|
|
|
- StatisticalChartsResVo resVo = pmDemandMapper.countProjectExceed(pmDemandReqVo);
|
|
|
- resMap.put("执行滞后采购项目", resVo.getNum() + "");
|
|
|
- resMap.put("预算金额", resVo.getEvaluationTotal() + "");
|
|
|
- //滞后项目数量占比:指本年度逾期项目数量/本年度所有项目数量
|
|
|
- Integer thisYear = pmDemandMapper.countThisYear(pmDemandReqVo);
|
|
|
- resMap.put("滞后项目数量占比", getPercent(resVo.getNum(), thisYear));
|
|
|
- return AjaxResult.success(resMap);
|
|
|
+ StatisticalChartsResVo resVo = pmDemandMapper.countProjectExceedThisYear(pmDemandReqVo);
|
|
|
+ resVo.setColumnName("本年度执行滞后任务新增数量");
|
|
|
+ resVos.add(resVo);
|
|
|
+ StatisticalChartsResVo resVo2 = pmDemandMapper.countProjectExceedThisQua(pmDemandReqVo);
|
|
|
+ resVo2.setColumnName("本季度执行滞后任务新增数量");
|
|
|
+ resVos.add(resVo2);
|
|
|
+ StatisticalChartsResVo resVo3 = pmDemandMapper.countProjectExceedThisMonth(pmDemandReqVo);
|
|
|
+ resVo3.setColumnName("本月执行滞后任务新增数量");
|
|
|
+ resVos.add(resVo3);
|
|
|
+ StatisticalChartsResVo resVo4 = pmDemandMapper.countProjectExceedAllNum(pmDemandReqVo);
|
|
|
+ resVo4.setColumnName("累计积压的执行滞后采购任务数");
|
|
|
+ resVos.add(resVo4);
|
|
|
+ return AjaxResult.success(resVos);
|
|
|
}
|
|
|
|
|
|
/**
|