| | |
| | | Integer APPLYTYPE = spFinancialExpensesIn.getAPPLYTYPE(); |
| | | Integer pageNum = spFinancialExpensesIn.getPageNum(); |
| | | Integer pageSize = spFinancialExpensesIn.getPageSize(); |
| | | Integer checkstatus = spFinancialExpensesIn.getCheckstatus(); |
| | | |
| | | if (pageNum == null) { |
| | | pageNum = 1; |
| | |
| | | } |
| | | |
| | | //startPage(); |
| | | List<SpFinancialExpensesFundOut> list = serviceFundService.getListBypower(loginUser.getUsername(), 2, APPLICANT, APPLICATIONBEGTIME, APPLICATIONENDTIME, loginUser.getDeptId().toString(), CHECKFLAG, APPLYTYPE); |
| | | List<SpFinancialExpensesFundOut> list = serviceFundService.getListBypower(loginUser.getUsername(), 2, APPLICANT, APPLICATIONBEGTIME, APPLICATIONENDTIME, loginUser.getDeptId().toString(), CHECKFLAG, APPLYTYPE,checkstatus); |
| | | //通过捐献者过滤 |
| | | if (StringUtils.isNotEmpty(spFinancialExpensesIn.getDonorname())) { |
| | | list = list.stream().filter(obj -> obj.getDonorname().contains(spFinancialExpensesIn.getDonorname())).collect(Collectors.toList()); |
| | |
| | | //001审批通过之后,就需要把“办公室主任”的名字填上 |
| | | if (checkFundVO.getFlowconclusion() == 1 && user.getUserName().equals("001")) { |
| | | serviceFund.setOfficedirector(user.getNickName()); |
| | | String bh = baseOnlyvalueService.getOnlyCode("fund"); |
| | | serviceFund.setBh(bh); |
| | | } |
| | | serviceFundService.updateById(serviceFund); |
| | | |
| | |
| | | Template t = null; |
| | | try { |
| | | //捐献表.ftl为要装载的模板 |
| | | //专家劳务费申请 1 伦理评估劳务费申请 2 医学成本费用申请 3 办公费用报销申请 4 |
| | | //专家劳务费申请 1 伦理评估劳务费申请 2 医学成本费用申请 3 办公费用报销申请 4 绩效费用报销申请 5 |
| | | if (dataYX.equals("3")) { |
| | | t = configuration.getTemplate("医学成本费用申请单.ftl"); |
| | | } else if (dataYX.equals("4")) { |
| | | t = configuration.getTemplate("办公费用申请单.ftl"); |
| | | }else if (dataYX.equals("5")) { |
| | | t = configuration.getTemplate("绩效费用申请单.ftl"); |
| | | } |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 绩效计算 |
| | | */ |
| | | @ApiOperation("绩效计算") |
| | | @Log(title = "绩效计算", businessType = BusinessType.INSERT) |
| | | @PostMapping("/performance") |
| | | @RepeatSubmit |
| | | public AjaxResult performance(@RequestBody ServiceFundVO serviceFundVO) { |
| | | |
| | | return AjaxResult.success(serviceFundService.performance(serviceFundVO)); |
| | | } |
| | | |
| | | } |