为swagger日志界面添加操作行为查询条件

This commit is contained in:
RenKaiGe-Office
2018-08-07 16:57:46 +08:00
parent 8b47d39ae7
commit c02eb6fc3a
4 changed files with 31 additions and 24 deletions

View File

@@ -4,7 +4,6 @@ import java.util.Date;
public class SwaggerLog extends BaseEntity<SwaggerLog> {
private static final long serialVersionUID = 5351369774420087482L;
private Long id;
private String operator;
private String version;
private Integer opAction;
@@ -23,13 +22,6 @@ public class SwaggerLog extends BaseEntity<SwaggerLog> {
private Date beginDate; // 开始日期
private Date endDate; // 结束日期
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getOperator() {
return operator;

View File

@@ -27,8 +27,8 @@ public class SysLogController extends BaseController {
@RequiresPermissions("sys:swaggerLogList:view")
@RequestMapping(value = "swaggerLogList")
public String swaggerLogList(SwaggerLog sysLog, HttpServletRequest request, HttpServletResponse response, Model model) {
Page<SwaggerLog> page = swaggerLogService.findSwaggerLogPage(new Page<SwaggerLog>(request, response), sysLog);
public String swaggerLogList(SwaggerLog swaggerLog, HttpServletRequest request, HttpServletResponse response, Model model) {
Page<SwaggerLog> page = swaggerLogService.findSwaggerLogPage(new Page<SwaggerLog>(request, response), swaggerLog);
model.addAttribute("page", page);
return "/sys/swaggerLogList";
}

View File

@@ -41,6 +41,9 @@
<if test="exception != null and exception != ''">
AND a.exception_Info!=''
</if>
<if test="opAction != null and opAction != ''">
AND a.opAction=#{opAction}
</if>
ORDER BY a.request_time DESC
</select>