|
|
@@ -432,8 +432,13 @@ public class HlwPaymentDetailController extends JeecgController<HlwPaymentDetail
|
|
|
//企业信息列表
|
|
|
int totalCompany = hlwCompanyMapper.findTotalCompany();
|
|
|
Random rand = new Random();
|
|
|
- //企业信息列表查询参数为limit两个参数,总计随机查询5条
|
|
|
- List<HlwCompany> hlwCompanyList = hlwCompanyMapper.findCompanyList(rand.nextInt(totalCompany - 5), 5);
|
|
|
+ List<HlwCompany> hlwCompanyList=new ArrayList<>();
|
|
|
+ if(totalCompany>5){
|
|
|
+ //企业信息列表查询参数为limit两个参数,总计随机查询5条
|
|
|
+ hlwCompanyList = hlwCompanyMapper.findCompanyList(rand.nextInt(totalCompany - 5), 5);
|
|
|
+ }else{
|
|
|
+ hlwCompanyList = hlwCompanyMapper.findCompanyList(0, totalCompany);
|
|
|
+ }
|
|
|
list.add(hlwCompanyList);
|
|
|
return Result.ok(list);
|
|
|
}
|