|  |  |  | 
|---|
|  |  |  | 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); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 绩效计算 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiOperation("绩效计算") | 
|---|
|  |  |  | @Log(title = "绩效计算", businessType = BusinessType.INSERT) | 
|---|
|  |  |  | @PostMapping("/performance") | 
|---|
|  |  |  | @RepeatSubmit | 
|---|
|  |  |  | public AjaxResult performance(@RequestBody ServiceFundVO serviceFundVO) { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return AjaxResult.success(serviceFundService.performance(serviceFundVO)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|