...
This commit is contained in:
parent
889f59c7ae
commit
022b0d15e3
|
@ -147,6 +147,7 @@ public class ActTaskController {
|
|||
if (params.get(Constant.LIMIT) != null) {
|
||||
limit = Integer.parseInt((String) params.get(Constant.LIMIT));
|
||||
}
|
||||
int mettingLimit = limit - page.getList().size();
|
||||
if (page.getList().size() < limit) {
|
||||
List<Map<String, Object>> meetingroom_bookTask = jdbcTemplate.queryForList("SELECT " +
|
||||
" t_meetingroom_book.id AS `taskId`, " +
|
||||
|
@ -160,7 +161,7 @@ public class ActTaskController {
|
|||
" t_meetingroom_book " +
|
||||
" LEFT JOIN t_meetingroom ON t_meetingroom_book.room_id = t_meetingroom.id " +
|
||||
"WHERE " +
|
||||
" state = 1;");
|
||||
" state = 1 LIMIT " + mettingLimit);
|
||||
List<TaskDTO> meetingroom_bookTaskDto = meetingroom_bookTask
|
||||
.stream().map(index -> {
|
||||
TaskDTO taskDTO = JSON.parseObject(JSON.toJSONString(index), TaskDTO.class);
|
||||
|
|
|
@ -149,6 +149,7 @@ public class HistoryController {
|
|||
if (params.get(Constant.LIMIT) != null) {
|
||||
limit = Integer.parseInt((String) params.get(Constant.LIMIT));
|
||||
}
|
||||
int mettingLimit = limit - page.getList().size();
|
||||
if (page.getList().size() < limit) {
|
||||
List<Map<String, Object>> meetingroom_bookTask = jdbcTemplate.queryForList("SELECT " +
|
||||
" t_meetingroom_book.id AS `businessKey`, " +
|
||||
|
@ -162,7 +163,7 @@ public class HistoryController {
|
|||
" t_meetingroom_book " +
|
||||
" LEFT JOIN t_meetingroom ON t_meetingroom_book.room_id = t_meetingroom.id " +
|
||||
"WHERE " +
|
||||
" state != 1 ;");
|
||||
" state != 1 LIMIT " + mettingLimit);
|
||||
List<ProcessActivityDTO> meetingroom_bookTaskDto = meetingroom_bookTask
|
||||
.stream().map(index -> {
|
||||
ProcessActivityDTO taskDTO = JSON.parseObject(JSON.toJSONString(index), ProcessActivityDTO.class);
|
||||
|
|
Loading…
Reference in New Issue