|
|
|
@ -1,6 +1,10 @@ |
|
|
|
package com.thing.carbon.pub.service.impl; |
|
|
|
|
|
|
|
import com.mybatisflex.core.query.QueryWrapper; |
|
|
|
import com.thing.carbon.pub.dto.CockpitEnterpriseInfo; |
|
|
|
import com.thing.carbon.pub.dto.CockpitStatisticsDto; |
|
|
|
import com.thing.carbon.pub.mapper.CarbonPubProductionModelMapper; |
|
|
|
import com.thing.carbon.pub.mapper.CarbonPubProductionReportMapper; |
|
|
|
import com.thing.carbon.pub.mapper.CarbonPubSupplierMapper; |
|
|
|
import com.thing.carbon.pub.mapper.PubCockpitMapper; |
|
|
|
import com.thing.carbon.pub.service.PubCockpitService; |
|
|
|
@ -23,6 +27,12 @@ public class PubCockpitServiceImpl implements PubCockpitService { |
|
|
|
@Autowired |
|
|
|
private CarbonPubSupplierMapper carbonPubSupplierMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private CarbonPubProductionModelMapper carbonPubProductionModelMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private CarbonPubProductionReportMapper carbonPubProductionReportMapper; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public List<CockpitEnterpriseInfo> cockpitEnterpriseInfoList() { |
|
|
|
@ -39,4 +49,32 @@ public class PubCockpitServiceImpl implements PubCockpitService { |
|
|
|
}); |
|
|
|
return infoList; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public CockpitStatisticsDto statistics() { |
|
|
|
CockpitStatisticsDto dto = new CockpitStatisticsDto(); |
|
|
|
|
|
|
|
Long enterprisesCount = carbonPubSupplierMapper.selectCountByQuery(QueryWrapper.create()); |
|
|
|
dto.setEnterprisesCount(enterprisesCount); |
|
|
|
|
|
|
|
Long processCount = carbonPubProductionModelMapper.selectCountByQuery(QueryWrapper.create()); |
|
|
|
dto.setProcessCount(processCount); |
|
|
|
|
|
|
|
Long productsCount = carbonPubProductionReportMapper.selectCountByQuery(QueryWrapper.create().select()); |
|
|
|
dto.setProductsCount(productsCount); |
|
|
|
|
|
|
|
Long carbonReportCount = carbonPubProductionReportMapper.selectCountByQuery(QueryWrapper.create()); |
|
|
|
dto.setCarbonReportCount(carbonReportCount); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
} |