| | |
| | | * 查询报销申请列表 |
| | | */ |
| | | @ApiOperation("查询报销申请列表") |
| | | //@PreAuthorize("@ss.hasPermi('project:reimbursement:list')") |
| | | //// @PreAuthorize("@ss.hasPermi('project:reimbursement:list')") |
| | | @Log(title = "查询报销申请列表", businessType = BusinessType.OTHER) |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceReimbursement serviceReimbursement) { |
| | |
| | | Collections.sort(list, new Comparator<SpFinancialExpensesReimbursementOut>() { |
| | | @Override |
| | | public int compare(SpFinancialExpensesReimbursementOut o1, SpFinancialExpensesReimbursementOut o2) { |
| | | return o1.getCreateTime().compareTo(o2.getCreateTime()); |
| | | return o1.getApplyTime().compareTo(o2.getApplyTime()); |
| | | } |
| | | }); |
| | | return getCustomDataTable(list, pageNum, pageSize); |
| | |
| | | * 导出报销申请列表 |
| | | */ |
| | | @ApiOperation("导出报销申请列表") |
| | | //@PreAuthorize("@ss.hasPermi('project:reimbursement:export')") |
| | | //// @PreAuthorize("@ss.hasPermi('project:reimbursement:export')") |
| | | @Log(title = "报销申请", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceReimbursement serviceReimbursement) { |
| | |
| | | * 获取报销申请详细信息 |
| | | */ |
| | | @ApiOperation("获取报销申请详细信息") |
| | | //@PreAuthorize("@ss.hasPermi('project:reimbursement:query')") |
| | | //// @PreAuthorize("@ss.hasPermi('project:reimbursement:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return AjaxResult.success(serviceReimbursementService.getById(id)); |
| | |
| | | * 新增报销申请 |
| | | */ |
| | | @ApiOperation("新增报销申请") |
| | | //@PreAuthorize("@ss.hasPermi('project:reimbursement:add')") |
| | | //// @PreAuthorize("@ss.hasPermi('project:reimbursement:add')") |
| | | @Log(title = "报销申请", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @RepeatSubmit |
| | |
| | | } |
| | | |
| | | } |
| | | //001审批通过之后,就需要把“办公室主任”的名字填上 |
| | | if (checkFundVO.getFlowconclusion() == 1 && user.getUserName().equals("001")) { |
| | | //053审批通过之后,就需要把“办公室主任”的名字填上 |
| | | if (checkFundVO.getFlowconclusion() == 1 && user.getUserName().equals("053")) { |
| | | serviceReimbursement.setOfficedirector(user.getNickName()); |
| | | serviceReimbursement.setUploadStates(1); |
| | | } |
| | |
| | | serviceSystemmessage.setReceiveusername(serviceReimbursement.getUsername()); |
| | | serviceSystemmessage.setIsread(0); |
| | | serviceSystemmessage.setMessagetype(1); |
| | | serviceSystemmessage.setUpdateTime(new Date()); |
| | | serviceSystemmessage.setUpdateBy(user.getNickName()); |
| | | serviceSystemmessage.setRelevantno(serviceReimbursement.getId()); |
| | | log.info("CheckFlag的值 : {}", CheckFlag); |
| | | if (CheckFlag == 1) { |
| | | //通过 |
| | | serviceSystemmessage.setMessagetitle("" + (OriginalFlowLevel + 1) + "级审核通过"); |
| | | serviceSystemmessage.setMessagecontent("您" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(serviceReimbursement.getCreateTime()) + "提交的关于捐献案例【" + serviceReimbursement.getDonorname() + "】的差旅费申请已通过" + (OriginalFlowLevel + 1) + "级审核"); |
| | | serviceSystemmessage.setMessagecontent("您" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(serviceReimbursement.getCreateTime()) + "提交的差旅报销单申请已通过"); |
| | | log.info("totalLevel的值 : {}, OriginalFlowLevel的值:{}", totalLevel, OriginalFlowLevel); |
| | | |
| | | //这一块放定时任务里做 |
| | |
| | | } else { |
| | | //驳回 |
| | | serviceSystemmessage.setMessagetitle("" + (OriginalFlowLevel + 1) + "级审核驳回"); |
| | | serviceSystemmessage.setMessagecontent("您" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(serviceReimbursement.getCreateTime()) + "提交的关于捐献案例【" + serviceReimbursement.getDonorname() + "】的差旅费申请已被" + (OriginalFlowLevel + 1) + "级审核驳回,原因为" + checkFundVO.getFlowcontent() + ""); |
| | | serviceSystemmessage.setMessagecontent("您" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(serviceReimbursement.getCreateTime()) + "提交的差旅报销单申请被驳回,原因:" + checkFundVO.getFlowcontent() + ""); |
| | | } |
| | | ServiceSystemmessage.save(serviceSystemmessage); |
| | | |
| | |
| | | * 修改报销申请 |
| | | */ |
| | | @ApiOperation("修改报销申请") |
| | | //@PreAuthorize("@ss.hasPermi('project:reimbursement:edit')") |
| | | //// @PreAuthorize("@ss.hasPermi('project:reimbursement:edit')") |
| | | @Log(title = "报销申请", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/reimbursementEdit") |
| | | @RepeatSubmit |
| | |
| | | * 修改报销申请 |
| | | */ |
| | | @ApiOperation("修改报销申请") |
| | | //@PreAuthorize("@ss.hasPermi('project:reimbursement:edit')") |
| | | //// @PreAuthorize("@ss.hasPermi('project:reimbursement:edit')") |
| | | @Log(title = "审核费用", businessType = BusinessType.OTHER) |
| | | @PostMapping("/editMoney") |
| | | public AjaxResult editMoney(@RequestBody List<ReimbursementService> serviceReimbursement) { |
| | |
| | | * 删除报销申请 |
| | | */ |
| | | @ApiOperation("删除报销申请") |
| | | //@PreAuthorize("@ss.hasPermi('project:reimbursement:remove')") |
| | | //// @PreAuthorize("@ss.hasPermi('project:reimbursement:remove')") |
| | | @Log(title = "报销申请") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |