zhaowenxuan
2024-05-29 97aedb4847564343dd5570d8dcd34fe732694c89
ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjReportController.java
@@ -23,6 +23,7 @@
import com.ltkj.common.annotation.Log;
import com.ltkj.common.core.domain.entity.SysDictData;
import com.ltkj.common.utils.DateUtils;
import com.ltkj.common.utils.PDFDocumentUtil;
import com.ltkj.common.utils.SecurityUtils;
import com.ltkj.common.utils.StringUtils;
import com.ltkj.framework.config.MatchUtils;
@@ -43,6 +44,7 @@
import org.springframework.beans.factory.annotation.Value;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport;
import org.springframework.web.bind.annotation.*;
import com.ltkj.common.core.controller.BaseController;
import com.ltkj.common.core.domain.AjaxResult;
@@ -1563,7 +1565,6 @@
    }
    //TODO 批量使用post
    @GetMapping("/preview/{flag}/{TjNumber}")
    @ApiOperation(value = "下载体检报告")
    public void preview(HttpServletResponse response, @PathVariable("flag") boolean flag, @PathVariable("TjNumber") String tjNumber) {
@@ -1652,6 +1653,12 @@
        }
    }
    @PostMapping("/preview/batch")
    @ApiOperation(value = "批量体检报告")
    public AjaxResult preview(@RequestBody String data){
        List<String> tjNumbers = Arrays.stream(data.split(",")).collect(Collectors.toList());
        return tjReportService.makeBatchReport(tjNumbers);
    }
    @GetMapping("/revocationReport/{TjNumber}")
    @ApiOperation(value = "撤销生成体检报告")