Browse Source

优化查询

longhu 6 days ago
parent
commit
f69e686108

+ 1 - 1
src/main/java/com/hr/service/impl/IpAccountServiceImpl.java

@@ -60,7 +60,7 @@ public class IpAccountServiceImpl implements IpAccountService {
         if (StringUtils.isNotEmpty(ipAccountParam.getStatus())) {
             ipAccountParam.setStatusList(Arrays.asList(ipAccountParam.getStatus()));
         }
-        PageHelper.startPage(1, 10);
+        PageHelper.startPage(current, size);
         BasePageResult<IpAccountVO> resultList = ipAccountRepository.queryList(ipAccountParam.getAccNo(),ipAccountParam.getStatusList());
         return resultList;
     }

+ 1 - 1
src/main/resources/mapper/IpTokenInterfaceMapper.xml

@@ -6,6 +6,6 @@
 
 
     <select id="queryList" resultType="com.hr.repository.domain.IpTokenInterfacePO">
-        select * from ip_token_interface where 1=1 and aid = :accNo and status in(:statusList)
+        select * from ip_token_interface where 1=1 and aid = :aid and status in(:statusList)
     </select>
 </mapper>