| | |
| | | import oshi.driver.mac.net.NetStat; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDate; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | |
| | | Long payCount = courseCount -courseFreeCount; |
| | | Long recordsCount = generatedRecordsService.lambdaQuery().count(); |
| | | Long infoCount = informationService.lambdaQuery().count(); |
| | | Long infoFreeCount = informationService.lambdaQuery().count(); |
| | | Long infoFreeCount = informationService.lambdaQuery().eq(TInformation::getInformationPrice,new BigDecimal(0)).count(); |
| | | Long infoPayCount = infoCount-infoFreeCount; |
| | | ManageCountDto manageCountDto = new ManageCountDto(); |
| | | manageCountDto.setUserCount(userCount); |
| | |
| | | manageCountDto.setRecordsCount(recordsCount); |
| | | manageCountDto.setInfoFreeCount(infoFreeCount); |
| | | manageCountDto.setInfoPayCount(infoPayCount); |
| | | manageCountDto.setInfoCount(infoCount); |
| | | return R.ok(manageCountDto); |
| | | } |
| | | |