|
|
|
@ -122,8 +122,12 @@ public class AppEnforcementRegistrationController extends BaseController { |
|
|
|
//查询检查总次数
|
|
|
|
List<EnforcementRegistrationVo> listCount = enforcementRegistrationService.selectEnforcementRegistrationList(bo,pageQuery); |
|
|
|
int count = 0; |
|
|
|
if (listCount.size() >0) { |
|
|
|
count = listCount.stream().map(item -> Integer.valueOf(item.getNum())).reduce(0, Integer::sum); |
|
|
|
if (listCount.size() > 0) { |
|
|
|
count = listCount.stream() |
|
|
|
.map(item -> item.getNum()) |
|
|
|
.filter(num -> num != null) |
|
|
|
.mapToInt(Integer::intValue) |
|
|
|
.sum(); |
|
|
|
} |
|
|
|
List<EnforcementRegistrationVo> list = enforcementRegistrationService.selectEnforcementRegistrationList(bo, pageQuery); |
|
|
|
|
|
|
|
|