mitao
2024-04-03 321d507a5670cb36c1550445c4795a76c9d7d226
ruoyi-admin-dept/src/main/java/com/ruoyi/web/controller/api/CurrentQuarterController.java
@@ -30,10 +30,9 @@
    @ApiOperation("获取基础数据填报相关信息")
    @GetMapping("/basic-fields")
    public R<BasicDataReportingVO> getBasicFields(@RequestParam("deptAreaCode") String deptAreaCode) {
        //TODO 如果能够获取到当前登录用户,则不需要传区划代码
    public R<BasicDataReportingVO> getBasicFields() {
        try {
            return tbBasicDataService.getBasicFields(deptAreaCode);
            return tbBasicDataService.getBasicFields();
        } catch (Exception e) {
            if (e instanceof ServiceException) {
                return R.fail(e.getMessage());
@@ -62,14 +61,13 @@
     */
    @GetMapping("/download")
    @ApiOperation("模板下载")
    public R<Void> downloadImportTemplate() {
    public void downloadImportTemplate() {
        try {
            tbBasicDataService.downloadImportTemplate();
        } catch (Exception e) {
            log.error("模板下载异常",e);
            return R.fail("模板下载失败,请联系管理员!");
            throw new ServiceException("模板下载失败,请联系管理员!");
        }
        return R.ok();
    }
    @PostMapping("/import")