|
@@ -1,15 +1,19 @@
|
|
package com.usky.system.controller.web;
|
|
package com.usky.system.controller.web;
|
|
|
|
|
|
|
|
|
|
|
|
+import com.ruoyi.common.core.utils.poi.ExcelUtil;
|
|
import com.usky.common.core.bean.ApiResult;
|
|
import com.usky.common.core.bean.ApiResult;
|
|
import com.usky.common.log.annotation.Log;
|
|
import com.usky.common.log.annotation.Log;
|
|
import com.usky.common.log.enums.BusinessType;
|
|
import com.usky.common.log.enums.BusinessType;
|
|
import com.usky.system.controller.web.page.TableDataInfo;
|
|
import com.usky.system.controller.web.page.TableDataInfo;
|
|
import com.usky.system.domain.SysOperLog;
|
|
import com.usky.system.domain.SysOperLog;
|
|
import com.usky.system.service.ISysOperLogService;
|
|
import com.usky.system.service.ISysOperLogService;
|
|
|
|
+import com.usky.system.service.vo.SysOperLogExportVO;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
|
+import java.io.IOException;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -32,6 +36,22 @@ public class SysOperlogController extends BaseController
|
|
return ApiResult.success(getDataTable(list));
|
|
return ApiResult.success(getDataTable(list));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 操作日志-导出
|
|
|
|
+ *
|
|
|
|
+ * @param response
|
|
|
|
+ * @param operLog
|
|
|
|
+ * @throws IOException
|
|
|
|
+ */
|
|
|
|
+ @PostMapping("listExport")
|
|
|
|
+ public void export(HttpServletResponse response,
|
|
|
|
+ @RequestParam(value = "exportTitle") String exportTitle,
|
|
|
|
+ SysOperLog operLog)throws IOException{
|
|
|
|
+ List<SysOperLogExportVO> list = operLogService.selectOperLogListExport(operLog);
|
|
|
|
+ ExcelUtil<SysOperLogExportVO> util = new ExcelUtil<SysOperLogExportVO>(SysOperLogExportVO.class);
|
|
|
|
+ util.exportExcel(response, list, exportTitle, exportTitle);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
@DeleteMapping("/{operIds}")
|
|
@DeleteMapping("/{operIds}")
|
|
@Log(title = "操作日志", businessType = BusinessType.DELETE)
|
|
@Log(title = "操作日志", businessType = BusinessType.DELETE)
|