|
@@ -2057,6 +2057,41 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
|
|
return resVos;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<StatisticalChartsResVo> countByTaskAttr(PmDemandReqVo pmDemandReqVo) {
|
|
|
+ //是-1就是查询自己及子孙级以下,否则只查询指定部门
|
|
|
+ if (pmDemandReqVo.getPurchaseDeptId().equals(-1)) {
|
|
|
+ pmDemandReqVo.setDeptList(isQueryAll(pmDemandReqVo.getPurchaseDeptId()));
|
|
|
+ } else {
|
|
|
+ pmDemandReqVo.setDemandIdAll(isQueryZD(pmDemandReqVo.getPurchaseDeptId()));
|
|
|
+ }
|
|
|
+ //状态为“任务待下达”以后的数据
|
|
|
+ pmDemandReqVo.setProjectStatus(Long.valueOf(PmProjectStatus.TASK_WAIT_RELEASE.getCode()));
|
|
|
+ List<StatisticalChartsResVo> resVos = new ArrayList<>();
|
|
|
+ //重点采购项目
|
|
|
+ pmDemandReqVo.setProjectAttr(ProjectAttribute.emergency.getCode());
|
|
|
+ StatisticalChartsResVo vo1 = pmDemandMapper.countByTaskAttr(pmDemandReqVo);
|
|
|
+ vo1.setColumnName("重点采购项目");
|
|
|
+ resVos.add(vo1);
|
|
|
+ //重大规划任务项目
|
|
|
+ pmDemandReqVo.setProjectAttr(ProjectAttribute.majorPlan.getCode());
|
|
|
+ StatisticalChartsResVo vo2 = pmDemandMapper.countByTaskAttr(pmDemandReqVo);
|
|
|
+ vo2.setColumnName("重大规划任务项目");
|
|
|
+ resVos.add(vo2);
|
|
|
+ //规划任务项目
|
|
|
+ pmDemandReqVo.setProjectAttr(ProjectAttribute.plan.getCode());
|
|
|
+ StatisticalChartsResVo vo3 = pmDemandMapper.countByTaskAttr(pmDemandReqVo);
|
|
|
+ vo3.setColumnName("规划任务项目");
|
|
|
+ resVos.add(vo3);
|
|
|
+ //一般采购项目
|
|
|
+ pmDemandReqVo.setProjectAttr(ProjectAttribute.commonly.getCode());
|
|
|
+ StatisticalChartsResVo vo4 = pmDemandMapper.countByTaskAttr(pmDemandReqVo);
|
|
|
+ vo4.setColumnName("一般采购项目");
|
|
|
+ resVos.add(vo4);
|
|
|
+
|
|
|
+ return resVos;
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public List<StatisticalChartsResVo> countByPurchaseMode(PmDemandReqVo pmDemandReqVo) {
|
|
|
//是-1就是查询自己及子孙级以下,否则只查询指定部门
|
|
@@ -2065,6 +2100,8 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
|
|
} else {
|
|
|
pmDemandReqVo.setDemandIdAll(isQueryZD(pmDemandReqVo.getPurchaseDeptId()));
|
|
|
}
|
|
|
+ //状态为“任务待下达”以后的数据
|
|
|
+ pmDemandReqVo.setProjectStatus(Long.valueOf(PmProjectStatus.TASK_WAIT_RELEASE.getCode()));
|
|
|
List<StatisticalChartsResVo> resVos = new ArrayList<>();
|
|
|
//公开招标
|
|
|
pmDemandReqVo.setPurchaseMode(ProcurementMethodSuggest.OPEN_BIDDING.getCode());
|
|
@@ -2103,6 +2140,8 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
|
|
} else {
|
|
|
pmDemandReqVo.setDemandIdAll(isQueryZD(pmDemandReqVo.getPurchaseDeptId()));
|
|
|
}
|
|
|
+ //状态为“任务待下达”以后的数据
|
|
|
+ pmDemandReqVo.setProjectStatus(Long.valueOf(PmProjectStatus.TASK_WAIT_RELEASE.getCode()));
|
|
|
List<StatisticalChartsResVo> resVos = new ArrayList<>();
|
|
|
//概算金额包括:100万以下采购任务、100至500万元采购任务、500至1000万元采购任务、1000至5000万元采购任务、5000至1亿元采购任务、1亿元及以上采购任务
|
|
|
pmDemandReqVo.setEvaluation(100);
|
|
@@ -3949,6 +3988,7 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
|
|
}
|
|
|
|
|
|
//数据转换
|
|
|
+ @Override
|
|
|
public List<PmDemandResVo> listToVoList(List<PmDemand> demandList) {
|
|
|
List<PmDemandResVo> pmDemandResponseVoList = new ArrayList<>();
|
|
|
if (!ObjectUtils.isEmpty(demandList) && demandList.size() > 0) {
|
|
@@ -3958,6 +3998,7 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
|
|
}
|
|
|
|
|
|
//查询不同状态下的项目数据的数量
|
|
|
+ @Override
|
|
|
public Integer getNumByStatus(String projectStatus) {
|
|
|
LambdaQueryWrapper<PmDemand> lw = new LambdaQueryWrapper<PmDemand>();
|
|
|
// 4 (合同信息管理)、 0(需求单位管理) 、 5(项目建设管理) 需求单位
|