git
heheng
2025-03-06 07a6e79342c381d4d8c98a92a216c41dc9502a09
hazmat-admin/src/main/java/com/gkhy/hazmat/admin/controller/web/HzProductBasicController.java
@@ -13,6 +13,9 @@
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;
/**
 * <p>
@@ -74,4 +77,14 @@
    }
    @RepeatSubmit
    @PreAuthorize("hasAnyAuthority('hazmat:manage:company','hazmat:manage:common')")
    @ApiOperation(value = "危化品基础数据Excel导入")
    @PostMapping("/importExcel")
    public CommonResult importExcel( MultipartFile file) throws IOException {
        return CommonResult.success(productBasicService.importExcel(file));
    }
}