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);
|
}
|
|
}
|