lyh
2025-01-17 ea704e018a27c26ef6deeaea4adc8a28b4d0b27e
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package org.jeecg.modules.dnc.controller;
 
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.modules.dnc.entity.NcLogInfo;
import org.jeecg.modules.dnc.response.QueryPageResponseResult;
import org.jeecg.modules.dnc.service.INcLogInfoService;
import org.jeecg.modules.dnc.request.NcLogInfoRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;
 
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
 
/**
 * @Description: DNC日志管理
 * @Author:
 * @Date:   2024-12-17
 * @Version: V1.0
 */
@Slf4j
@Api(tags = "DNC日志管理表")
@RestController
@RequestMapping("/doc/ncloginfo")
public class NcLogInfoController {
    @Autowired
    private INcLogInfoService iNcLogInfoService;
 
    /**
     * 日志查询
     * @param page
     * @param size
     * @param ncLogInfoRequest
     * @return
     */
    @AutoLog(value = "DNC日志管理表-日志查询")
    @ApiOperation(value = "DNC日志管理表-日志查询", notes = "DNC日志管理表-日志查询")
    @GetMapping("/find/page/{page}/{size}")
    public QueryPageResponseResult<NcLogInfo> findPageList(@PathVariable("page") int page, @PathVariable("size") int size, NcLogInfoRequest ncLogInfoRequest) {
        return iNcLogInfoService.findByPageList(page, size, ncLogInfoRequest);
    }
 
    /**
     * 导出
     * @param ncLogInfoRequest
     * @return
     */
    @AutoLog(value = "DNC日志管理表-导出日志")
    @ApiOperation(value = "DNC日志管理表-导出日志", notes = "DNC日志管理表-导出日志")
    @GetMapping("/exportXls")
    public ModelAndView exportXls(HttpServletRequest request, HttpServletResponse response,NcLogInfoRequest ncLogInfoRequest){
        return iNcLogInfoService.exportLogList(ncLogInfoRequest);
    }
 
}