|
|
@ -3,10 +3,7 @@ package com.thing.carbon.pub.service.impl; |
|
|
import com.mybatisflex.core.query.QueryWrapper; |
|
|
import com.mybatisflex.core.query.QueryWrapper; |
|
|
import com.thing.carbon.pub.dto.CockpitEnterpriseInfo; |
|
|
import com.thing.carbon.pub.dto.CockpitEnterpriseInfo; |
|
|
import com.thing.carbon.pub.dto.CockpitStatisticsDto; |
|
|
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.mapper.*; |
|
|
import com.thing.carbon.pub.service.PubCockpitService; |
|
|
import com.thing.carbon.pub.service.PubCockpitService; |
|
|
import org.apache.commons.lang3.ObjectUtils; |
|
|
import org.apache.commons.lang3.ObjectUtils; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
@ -33,6 +30,12 @@ public class PubCockpitServiceImpl implements PubCockpitService { |
|
|
@Autowired |
|
|
@Autowired |
|
|
private CarbonPubProductionReportMapper carbonPubProductionReportMapper; |
|
|
private CarbonPubProductionReportMapper carbonPubProductionReportMapper; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private CarbonPubMaterialFactorMapper carbonPubMaterialFactorMapper; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private CarbonPubProductionResultMapper carbonPubProductionResultMapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public List<CockpitEnterpriseInfo> cockpitEnterpriseInfoList() { |
|
|
public List<CockpitEnterpriseInfo> cockpitEnterpriseInfoList() { |
|
|
@ -64,17 +67,19 @@ public class PubCockpitServiceImpl implements PubCockpitService { |
|
|
Long processCount = carbonPubProductionModelMapper.selectCountByQuery(QueryWrapper.create()); |
|
|
Long processCount = carbonPubProductionModelMapper.selectCountByQuery(QueryWrapper.create()); |
|
|
dto.setProcessCount(processCount); |
|
|
dto.setProcessCount(processCount); |
|
|
//服务产品数 |
|
|
//服务产品数 |
|
|
Long productsCount = carbonPubProductionReportMapper.selectCountByQuery(QueryWrapper.create().select()); |
|
|
|
|
|
|
|
|
Long productsCount = carbonPubProductionReportMapper.selectProductsCount(); |
|
|
dto.setProductsCount(productsCount); |
|
|
dto.setProductsCount(productsCount); |
|
|
|
|
|
|
|
|
Long carbonReportCount = carbonPubProductionReportMapper.selectCountByQuery(QueryWrapper.create()); |
|
|
Long carbonReportCount = carbonPubProductionReportMapper.selectCountByQuery(QueryWrapper.create()); |
|
|
dto.setCarbonReportCount(carbonReportCount); |
|
|
dto.setCarbonReportCount(carbonReportCount); |
|
|
|
|
|
|
|
|
|
|
|
Long carbonLibCount = carbonPubMaterialFactorMapper.selectCarbonLibCount(); |
|
|
|
|
|
dto.setCarbonLibCount(carbonLibCount); |
|
|
|
|
|
|
|
|
|
|
|
Long carbonCount = carbonPubProductionResultMapper.selectCountByQuery(QueryWrapper.create()); |
|
|
|
|
|
dto.setCarbonCount(carbonCount); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
|
return dto; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |