查询实例总数

develop
guyuliang 2024-08-24 19:35:34 +08:00
parent f1cba10900
commit 0652b9af13
1 changed files with 1 additions and 0 deletions

View File

@ -492,6 +492,7 @@ public class ModuleServiceImpl implements ModuleService {
List<Param> paramList = new ArrayList<>(); List<Param> paramList = new ArrayList<>();
Param param = new Param(); Param param = new Param();
param.setParam(MapTools.simpleMap("moduleId", model.getId())); param.setParam(MapTools.simpleMap("moduleId", model.getId()));
param.setSign(Sign.EQ);
paramList.add(param); paramList.add(param);
boolean adminRole = instanceService.checkAdminRole(userId); boolean adminRole = instanceService.checkAdminRole(userId);
int count = instanceRepository.count(paramList, table, valueTable, userId, adminRole); int count = instanceRepository.count(paramList, table, valueTable, userId, adminRole);