Skip to content
Snippets Groups Projects

Feature/wxj/develop

Merged 王星君 requested to merge feature/wxj/develop into develop
Compare and
1 file
+ 18
0
Compare changes
  • Side-by-side
  • Inline
@@ -132,6 +132,10 @@ public class ProjectPlanSvrImpl implements ProjectPlanSvr {
@Resource
private ProjectLibraryDomainSvr projectLibraryDomainSvr;
@Resource
private PlanBookSubjectMapper planBookSubjectMapper;
@Resource
private FundMapper fundMapper;
@Resource
private IPredictionApi iPredictionApi;
/**
* 保存项目经费申报书
@@ -645,6 +649,20 @@ public class ProjectPlanSvrImpl implements ProjectPlanSvr {
//获取 该申报书的 ProcessId 以及 planBookType(申报书类型(1:项目,2:日常,3:人员))
ProjectPlanBaseAgg projectPlanBaseAgg = infoRepository.queryPlanBookProcessId(cmd.getId());
ProjectPlanBookPo projectPlanBookPo = projectPlanBookMapper.selectById(cmd.getId());
//校验经济科目是否存在
LambdaQueryWrapper<PlanBookSubjectPo> planBookSubjectPoLambdaQueryWrapper = new LambdaQueryWrapper<>();
planBookSubjectPoLambdaQueryWrapper.select(PlanBookSubjectPo::getSubjectCode, PlanBookSubjectPo::getSubjectName);
planBookSubjectPoLambdaQueryWrapper.eq(PlanBookSubjectPo::getPlanBookId, projectPlanBookPo.getId());
List<PlanBookSubjectPo> planBookSubjectPoList = planBookSubjectMapper.selectList(planBookSubjectPoLambdaQueryWrapper);
for (PlanBookSubjectPo planBookSubjectPo : planBookSubjectPoList) {
LambdaQueryWrapper<FundPo> fundPoLambdaQueryWrapper = new LambdaQueryWrapper<>();
fundPoLambdaQueryWrapper.select(FundPo::getId);
fundPoLambdaQueryWrapper.eq(FundPo::getYear, projectPlanBookPo.getYear());
fundPoLambdaQueryWrapper.eq(FundPo::getFundCode, planBookSubjectPo.getSubjectCode());
fundPoLambdaQueryWrapper.eq(FundPo::getFundName, planBookSubjectPo.getSubjectName());
FundPo fundPo = fundMapper.selectOne(fundPoLambdaQueryWrapper);
ExceptionUtil.isNull(fundPo, planBookSubjectPo.getSubjectCode() + "与" + planBookSubjectPo.getSubjectName() + "不匹配");
}
// 申报时间控制
planTimeJudgment(projectPlanBookPo);
// todo 健康无需定额校验,上大需要,日常公用经费一上校验