| | |
| | | * 查询报销申请列表 |
| | | */ |
| | | @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); |
| | | } |
| | |
| | | * 修改报销申请 |
| | | */ |
| | | @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) { |