为swagger日志界面添加操作行为查询条件
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user