Commit a4d91451 authored by 赵灿灿's avatar 赵灿灿

修改查询条数

parent 2a0c7366
Pipeline #21474 passed with stages
in 3 minutes and 57 seconds
...@@ -87,7 +87,7 @@ public class ExpertInformationService { ...@@ -87,7 +87,7 @@ public class ExpertInformationService {
public Map<String, Object> selectExpertInformation( ExpertInformationCriteria criteria) { public Map<String, Object> selectExpertInformation( ExpertInformationCriteria criteria) {
try { try {
criteria.removeMapNullOrEmpty(); criteria.removeMapNullOrEmpty();
if(criteria.getPageSize()==null) if(criteria.getPageSize()==null||criteria.getPageSize()==0)
criteria.setPageSize(10); criteria.setPageSize(10);
List<Map<String,Object>> entityList = repository.selectExpertByPage(criteria,1,criteria.getPageSize()); List<Map<String,Object>> entityList = repository.selectExpertByPage(criteria,1,criteria.getPageSize());
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment