From 4425851bed876e8d5515c728ce55597b1cf6fe12 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Fri, 9 Dec 2022 11:42:30 +0800 Subject: [PATCH] ... --- .../renren/modules/activiti/controller/HistoryController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renren-admin/src/main/java/io/renren/modules/activiti/controller/HistoryController.java b/renren-admin/src/main/java/io/renren/modules/activiti/controller/HistoryController.java index bd7cbd93..2239f181 100644 --- a/renren-admin/src/main/java/io/renren/modules/activiti/controller/HistoryController.java +++ b/renren-admin/src/main/java/io/renren/modules/activiti/controller/HistoryController.java @@ -133,7 +133,7 @@ public class HistoryController { } PageData page = activitiService.getMyProcessInstancePage(params); if (!(params.containsKey("processDefinitionKey") && org.apache.commons.lang3.StringUtils.isNotEmpty(params.get("processDefinitionKey").toString()))) { - int meetingroom_book = jdbcTemplate.queryForObject("SELECT COUNT(id) FROM t_meetingroom_book WHERE state = 1;", Integer.class); + int meetingroom_book = jdbcTemplate.queryForObject("SELECT COUNT(id) FROM t_meetingroom_book WHERE state != 1;", Integer.class); page.setTotal(page.getTotal() + meetingroom_book); Integer limit = 10; if (params.get(Constant.LIMIT) != null) {