zxl
2025-10-29 fea22e82e7e49691f6e0c20a29b228d0ab3173e9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.ycl.platform.controller;
 
 
import com.ycl.platform.service.IMonitorConstructionService;
import com.ycl.system.Result;
import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
 
/**
 * zgyw
 *
 * @author : zxl
 * @date : 2025-10-20 13:55
 **/
@RestController
@RequestMapping("/monitorConstruction")
@RequiredArgsConstructor
public class MonitorConstructionController {
    private final IMonitorConstructionService monitorConstructionService;
 
    @PostMapping("/import")
    public Result importExcel(@RequestBody MultipartFile file) {
 
        return monitorConstructionService.importExcel(file);
    }
    @PostMapping("/importTemplate")
    public void importTemplate(HttpServletResponse httpServletResponse) {
        monitorConstructionService.getImportTemplate(httpServletResponse);
    }
}