liusheng
2025-01-02 b6dd47b05107fc36d8ff4f7f29a4446521f95503
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDonorpaymentController.java
@@ -46,7 +46,6 @@
     * 查询费用收款单列表
     */
    @ApiOperation("查询费用收款单列表")
    @PreAuthorize("@ss.hasPermi('system:donorpayment:list')")
    @GetMapping("/list")
    public TableDataInfo list(ServiceDonorpayment serviceDonorpayment) {
        startPage();
@@ -58,7 +57,6 @@
     * 导出费用收款单列表
     */
    @ApiOperation("导出费用收款单列表")
    @PreAuthorize("@ss.hasPermi('system:donorpayment:export')")
    @Log(title = "费用收款单", businessType = BusinessType.EXPORT)
    @GetMapping("/export")
    public AjaxResult export(ServiceDonorpayment serviceDonorpayment) {
@@ -71,7 +69,6 @@
     * 获取费用收款单详细信息
     */
    @ApiOperation("获取费用收款单详细信息")
    @PreAuthorize("@ss.hasPermi('system:donorpayment:query')")
    @GetMapping(value = "/getInfo/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id) {
        return AjaxResult.success(serviceDonorpaymentService.getById(id));
@@ -81,7 +78,6 @@
     * 新增费用收款单
     */
    @ApiOperation("新增费用收款单")
    @PreAuthorize("@ss.hasPermi('system:donorpayment:add')")
    @Log(title = "费用收款单", businessType = BusinessType.INSERT)
    @PostMapping("/add")
    @RepeatSubmit
@@ -94,7 +90,6 @@
     * 修改费用收款单
     */
    @ApiOperation("修改费用收款单")
    @PreAuthorize("@ss.hasPermi('system:donorpayment:edit')")
    @Log(title = "费用收款单", businessType = BusinessType.UPDATE)
    @PostMapping("/edit")
    @RepeatSubmit
@@ -106,7 +101,7 @@
     * 删除费用收款单
     */
    @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) {
@@ -127,12 +122,13 @@
        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;