forked from rongchao/epmet-cloud-rizhao
26 changed files with 375 additions and 37 deletions
@ -0,0 +1,26 @@ |
|||||
|
package com.epmet.service.evaluationindex.extract; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.dto.extract.result.OrgStatisticsResultDTO; |
||||
|
import com.epmet.entity.evaluationindex.extract.FactOriginProjectOrgPeriodDailyEntity; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author zhaoqifeng |
||||
|
* @dscription |
||||
|
* @date 2020/9/21 16:46 |
||||
|
*/ |
||||
|
public interface FactOriginProjectOrgPeriodDailyService extends BaseService<FactOriginProjectOrgPeriodDailyEntity> { |
||||
|
/** |
||||
|
* 项目响应度 |
||||
|
* @author zhaoqifeng |
||||
|
* @date 2020/9/21 16:57 |
||||
|
* @param customerId |
||||
|
* @param monthId |
||||
|
* @param level |
||||
|
* @param orgType |
||||
|
* @return java.util.List<com.epmet.dto.extract.result.OrgStatisticsResultDTO> |
||||
|
*/ |
||||
|
List<OrgStatisticsResultDTO> getResponsiveness(String customerId, String monthId, String level, String orgType); |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package com.epmet.service.evaluationindex.extract.impl; |
||||
|
|
||||
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
||||
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
||||
|
import com.epmet.constant.DataSourceConstant; |
||||
|
import com.epmet.dao.evaluationindex.extract.FactOriginProjectOrgPeriodDailyDao; |
||||
|
import com.epmet.dto.extract.result.OrgStatisticsResultDTO; |
||||
|
import com.epmet.entity.evaluationindex.extract.FactOriginProjectOrgPeriodDailyEntity; |
||||
|
import com.epmet.service.evaluationindex.extract.FactOriginProjectOrgPeriodDailyService; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author zhaoqifeng |
||||
|
* @dscription |
||||
|
* @date 2020/9/21 16:48 |
||||
|
*/ |
||||
|
@Service |
||||
|
@DataSource(DataSourceConstant.STATS) |
||||
|
public class FactOriginProjectOrgPeriodDailyServiceImpl extends BaseServiceImpl<FactOriginProjectOrgPeriodDailyDao, FactOriginProjectOrgPeriodDailyEntity> implements FactOriginProjectOrgPeriodDailyService { |
||||
|
@Override |
||||
|
public List<OrgStatisticsResultDTO> getResponsiveness(String customerId, String monthId, String level, String orgType) { |
||||
|
return baseDao.selectResponsiveness(customerId, monthId, level, orgType); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,21 @@ |
|||||
|
package com.epmet.service.evaluationindex.indexcoll; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.entity.evaluationindex.indexcoll.FactIndexGovrnAblityDeptMonthlyEntity; |
||||
|
|
||||
|
/** |
||||
|
* @author zhaoqifeng |
||||
|
* @dscription |
||||
|
* @date 2020/9/21 15:24 |
||||
|
*/ |
||||
|
public interface FactIndexGovrnAblityDeptMonthlyService extends BaseService<FactIndexGovrnAblityDeptMonthlyEntity> { |
||||
|
/** |
||||
|
* 根据客户清空数据 |
||||
|
* @author zhaoqifeng |
||||
|
* @date 2020/9/20 20:33 |
||||
|
* @param customerId |
||||
|
* @param monthId |
||||
|
* @return void |
||||
|
*/ |
||||
|
void deleteByCustomer(String customerId, String monthId); |
||||
|
} |
||||
@ -0,0 +1,24 @@ |
|||||
|
package com.epmet.service.evaluationindex.indexcoll.impl; |
||||
|
|
||||
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
||||
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
||||
|
import com.epmet.constant.DataSourceConstant; |
||||
|
import com.epmet.dao.evaluationindex.indexcoll.FactIndexGovrnAblityDeptMonthlyDao; |
||||
|
import com.epmet.entity.evaluationindex.indexcoll.FactIndexGovrnAblityDeptMonthlyEntity; |
||||
|
import com.epmet.service.evaluationindex.indexcoll.FactIndexGovrnAblityDeptMonthlyService; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
/** |
||||
|
* @author zhaoqifeng |
||||
|
* @dscription |
||||
|
* @date 2020/9/21 15:25 |
||||
|
*/ |
||||
|
@Service |
||||
|
@DataSource(DataSourceConstant.EVALUATION_INDEX) |
||||
|
public class FactIndexGovrnAblityDeptMonthlyServiceImpl extends BaseServiceImpl<FactIndexGovrnAblityDeptMonthlyDao, FactIndexGovrnAblityDeptMonthlyEntity> implements FactIndexGovrnAblityDeptMonthlyService { |
||||
|
|
||||
|
@Override |
||||
|
public void deleteByCustomer(String customerId, String monthId) { |
||||
|
baseDao.deleteFactIndexGovrnAblityDeptMonthly(customerId, monthId); |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue