|
@@ -1346,11 +1346,7 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement
|
|
do {
|
|
do {
|
|
offset = (pageNumber - 1) * pageSize;
|
|
offset = (pageNumber - 1) * pageSize;
|
|
queryInfoListPage = jdbcTemplate.query(
|
|
queryInfoListPage = jdbcTemplate.query(
|
|
- "SELECT wbs_id, status FROM u_information_query " +
|
|
|
|
- "WHERE type = 1 " +
|
|
|
|
- "AND contract_id = ? " +
|
|
|
|
- "AND classify = ? " +
|
|
|
|
- "LIMIT ? OFFSET ?",
|
|
|
|
|
|
+ "SELECT wbs_id, `status` FROM u_information_query WHERE id in (SELECT id from (SELECT max(id) as id FROM u_information_query WHERE type = 1 AND contract_id = ? AND classify = ? GROUP BY wbs_id LIMIT ? offset ?) as a)",
|
|
new Object[]{contractId, tableOwner, pageSize, offset},
|
|
new Object[]{contractId, tableOwner, pageSize, offset},
|
|
new BeanPropertyRowMapper<>(WbsTreeContractLazyQueryInfoVO.class));
|
|
new BeanPropertyRowMapper<>(WbsTreeContractLazyQueryInfoVO.class));
|
|
queryInfoList.addAll(queryInfoListPage);
|
|
queryInfoList.addAll(queryInfoListPage);
|