|
@@ -52,8 +52,8 @@ public class StatisticService {
|
|
|
public Map<String, Long> getTotal() {
|
|
public Map<String, Long> getTotal() {
|
|
|
long policy = policyLawRepo.countByCategory(ResourceCategory.POLICY);
|
|
long policy = policyLawRepo.countByCategory(ResourceCategory.POLICY);
|
|
|
long law = policyLawRepo.countByCategory(ResourceCategory.LAW);
|
|
long law = policyLawRepo.countByCategory(ResourceCategory.LAW);
|
|
|
- long intellectualProperty = intellectualPropertyRepo
|
|
|
|
|
- .countAllByCreatedAtAfter(LocalDateTime.of(2022, 10, 1, 0, 0));
|
|
|
|
|
|
|
+ long intellectualProperty = patentRepo
|
|
|
|
|
+ .count();
|
|
|
long technology = digitalRepo.countByType(DigitalType.TECHNOLOGY);
|
|
long technology = digitalRepo.countByType(DigitalType.TECHNOLOGY);
|
|
|
long product = digitalRepo.countByType(DigitalType.PRODUCT);
|
|
long product = digitalRepo.countByType(DigitalType.PRODUCT);
|
|
|
long company = companyRepo.count();
|
|
long company = companyRepo.count();
|