diff --git a/modules/cqc-service/src/main/java/com/thing/cqc/cqcCarbonReport/mapper/CqcCarbonReportMapper.java b/modules/cqc-service/src/main/java/com/thing/cqc/cqcCarbonReport/mapper/CqcCarbonReportMapper.java index 84e819d..6501a35 100644 --- a/modules/cqc-service/src/main/java/com/thing/cqc/cqcCarbonReport/mapper/CqcCarbonReportMapper.java +++ b/modules/cqc-service/src/main/java/com/thing/cqc/cqcCarbonReport/mapper/CqcCarbonReportMapper.java @@ -1,13 +1,11 @@ package com.thing.cqc.cqcCarbonReport.mapper; import com.thing.common.orm.mapper.PowerBaseMapper; -import com.thing.cqc.cqcCarbonReport.dto.CqcCarbonReportCountInfo; import com.thing.cqc.cqcCarbonReport.dto.CqcCarbonReportCountParam; import com.thing.cqc.cqcCarbonReport.entity.CqcCarbonReportEntity; import org.apache.ibatis.annotations.Mapper; import java.util.List; -import java.util.Map; /** * 申请表基础数据 @@ -18,5 +16,5 @@ import java.util.Map; @Mapper public interface CqcCarbonReportMapper extends PowerBaseMapper { - List countByStatus(); + List countByStatus(Long tCode); } \ No newline at end of file diff --git a/modules/cqc-service/src/main/java/com/thing/cqc/cqcCarbonReport/service/impl/CqcCarbonReportServiceImpl.java b/modules/cqc-service/src/main/java/com/thing/cqc/cqcCarbonReport/service/impl/CqcCarbonReportServiceImpl.java index 10b3e6e..84a3db4 100644 --- a/modules/cqc-service/src/main/java/com/thing/cqc/cqcCarbonReport/service/impl/CqcCarbonReportServiceImpl.java +++ b/modules/cqc-service/src/main/java/com/thing/cqc/cqcCarbonReport/service/impl/CqcCarbonReportServiceImpl.java @@ -123,8 +123,10 @@ public class CqcCarbonReportServiceImpl extends BaseServiceImpl list = mapper.countByStatus(); + + List list = mapper.countByStatus(tCode); list.forEach(temp->{ if(temp.getStatus().equals("1")){ diff --git a/modules/cqc-service/src/main/resources/mapper/CqcCarbonReportMapper.xml b/modules/cqc-service/src/main/resources/mapper/CqcCarbonReportMapper.xml index 6ab0cca..80f1677 100644 --- a/modules/cqc-service/src/main/resources/mapper/CqcCarbonReportMapper.xml +++ b/modules/cqc-service/src/main/resources/mapper/CqcCarbonReportMapper.xml @@ -11,6 +11,7 @@ status,"count"(status) as count FROM cqc_carbon_report + WHERE tenant_code = #{tCode} GROUP BY status; \ No newline at end of file