| | |
| | | * 查询费用收款单列表 |
| | | */ |
| | | @ApiOperation("查询费用收款单列表") |
| | | @PreAuthorize("@ss.hasPermi('system:donorpayment:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceDonorpayment serviceDonorpayment) { |
| | | startPage(); |
| | |
| | | * 导出费用收款单列表 |
| | | */ |
| | | @ApiOperation("导出费用收款单列表") |
| | | @PreAuthorize("@ss.hasPermi('system:donorpayment:export')") |
| | | @Log(title = "费用收款单", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceDonorpayment serviceDonorpayment) { |
| | |
| | | * 获取费用收款单详细信息 |
| | | */ |
| | | @ApiOperation("获取费用收款单详细信息") |
| | | @PreAuthorize("@ss.hasPermi('system:donorpayment:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return AjaxResult.success(serviceDonorpaymentService.getById(id)); |
| | |
| | | * 新增费用收款单 |
| | | */ |
| | | @ApiOperation("新增费用收款单") |
| | | @PreAuthorize("@ss.hasPermi('system:donorpayment:add')") |
| | | @Log(title = "费用收款单", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @RepeatSubmit |
| | |
| | | * 修改费用收款单 |
| | | */ |
| | | @ApiOperation("修改费用收款单") |
| | | @PreAuthorize("@ss.hasPermi('system:donorpayment:edit')") |
| | | @Log(title = "费用收款单", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | |
| | | * 删除费用收款单 |
| | | */ |
| | | @ApiOperation("删除费用收款单") |
| | | @PreAuthorize("@ss.hasPermi('system:donorpayment:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('system:donorpayment:remove')") |
| | | @Log(title = "费用收款单", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | configuration.setDirectoryForTemplateLoading(new File(filePath)); |
| | | Template t = null; |
| | | try { |
| | | t = configuration.getTemplate("浙江省OPO收款结算单.ftl"); |
| | | // t = configuration.getTemplate("浙江省OPO收款结算单.ftl"); |
| | | t = configuration.getTemplate("浙江省接收器官结算表.ftl"); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | String newTime = String.valueOf(Calendar.getInstance().getTimeInMillis()); |
| | | String name = "浙江省OPO收款结算单_"+ newTime; |
| | | String name = "浙江省接收器官结算表_"+ newTime; |
| | | //输出文档路径及名称 |
| | | File outFile = new File(RuoYiConfig.getProfile() + "/download/wordtemplate/" + name + ".doc"); |
| | | Writer out = null; |