jinpengyong
2024-06-19 32cc13189371ee1e367897a64fbc22f90b53add8
screen-api/src/main/java/com/moral/api/controller/CruiserController.java
@@ -23,6 +23,7 @@
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.io.FileUtils;
import org.apache.poi.xwpf.usermodel.XWPFDocument;
@@ -290,6 +291,16 @@
    }
    @GetMapping("sort")
    @ApiOperation("路段排序")
    public ResultMessage sectionRanking(@RequestParam @ApiParam(value = "mac",name = "mac号") String mac,
                                        @RequestParam @ApiParam(value = "startTime",name = "开始时间") String startTime,
                                        @RequestParam @ApiParam(value = "endTime",name = "结束时间") String endTime){
        List<DustForm> sort = dustldService.sort(mac, startTime, endTime);
        return ResultMessage.ok(sort);
    }
    public static void downloadWord(String fileName, Map<String, Object> params, HttpServletResponse response, String newFileName) {