|
@ -23,6 +23,8 @@ import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
import com.epmet.commons.tools.constant.StrConstant; |
|
|
import com.epmet.commons.tools.constant.StrConstant; |
|
|
import com.epmet.constant.DataSourceConstant; |
|
|
import com.epmet.constant.DataSourceConstant; |
|
|
|
|
|
import com.epmet.constant.PingYinConstant; |
|
|
|
|
|
import com.epmet.constant.PingYinConstants; |
|
|
import com.epmet.dao.evaluationindex.extract.FactOriginProjectCategoryDailyDao; |
|
|
import com.epmet.dao.evaluationindex.extract.FactOriginProjectCategoryDailyDao; |
|
|
import com.epmet.dto.ProjectCategoryDTO; |
|
|
import com.epmet.dto.ProjectCategoryDTO; |
|
|
import com.epmet.dto.extract.form.ExtractOriginFormDTO; |
|
|
import com.epmet.dto.extract.form.ExtractOriginFormDTO; |
|
@ -136,10 +138,18 @@ public class FactOriginProjectCategoryDailyServiceImpl extends BaseServiceImpl<F |
|
|
**/ |
|
|
**/ |
|
|
@Override |
|
|
@Override |
|
|
public List<ScreenProjectCategoryGridDailyDTO> selectListProjectCategoryGridDailyDTO(String customerId) { |
|
|
public List<ScreenProjectCategoryGridDailyDTO> selectListProjectCategoryGridDailyDTO(String customerId) { |
|
|
List<ScreenProjectCategoryGridDailyDTO> list=baseDao.selectListProjectCategoryGridDailyDTO(customerId); |
|
|
List<ScreenProjectCategoryGridDailyDTO> list=baseDao.selectListProjectCategoryGridDailyDTO(customerId,getSubCount(customerId)); |
|
|
return list; |
|
|
return list; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Integer getSubCount(String customerId){ |
|
|
|
|
|
Integer result = NumConstant.FOUR; |
|
|
|
|
|
/*if (customerId.equals(PingYinConstant.TEST_PING_YIN_CUSTOMER_ID) || customerId.equals(PingYinConstant.PROD_PING_YIN_CUSTOMER_ID)){ |
|
|
|
|
|
return NumConstant.TWO; |
|
|
|
|
|
}*/ |
|
|
|
|
|
return result; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @Description 查询客户下,组织直接立项的,各项目分类下的项目数量【筛选组织创建的项目,fact_origin_project_main_daily表gridId为空】 |
|
|
* @Description 查询客户下,组织直接立项的,各项目分类下的项目数量【筛选组织创建的项目,fact_origin_project_main_daily表gridId为空】 |
|
|
* @Param orgIds |
|
|
* @Param orgIds |
|
@ -147,10 +157,10 @@ public class FactOriginProjectCategoryDailyServiceImpl extends BaseServiceImpl<F |
|
|
* @date 2021/4/13 下午4:36 |
|
|
* @date 2021/4/13 下午4:36 |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public List<ScreenProjectCategoryGridDailyDTO> selectListProjectCategoryByOrg(List<String> orgIds,String customerId) { |
|
|
public List<ScreenProjectCategoryGridDailyDTO> selectListProjectCategoryByOrg(List<String> orgIds,String customerId,Integer subCount) { |
|
|
if (!CollectionUtils.isEmpty(orgIds)){ |
|
|
if (!CollectionUtils.isEmpty(orgIds)){ |
|
|
return new ArrayList<>(); |
|
|
return new ArrayList<>(); |
|
|
} |
|
|
} |
|
|
return baseDao.selectListProjectCategoryByOrg(orgIds,customerId); |
|
|
return baseDao.selectListProjectCategoryByOrg(orgIds,customerId,subCount); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|