5 changed files with 49 additions and 85 deletions
@ -1,31 +0,0 @@ |
|||
package com.epmet.service.evaluationindex.extract; |
|||
|
|||
import com.epmet.entity.evaluationindex.indexcoll.FactIndexServiceAblityGridMonthlyEntity; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 服务能力-网格相关事实表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-09-19 |
|||
*/ |
|||
public interface FactIndexServiceAbilityGridMonthlyService{ |
|||
/** |
|||
* @return java.util.List<com.epmet.entity.evaluationindex.indexcoll.FactIndexServiceAblityGridMonthlyEntity> |
|||
* @param customerId |
|||
* @author yinzuomei |
|||
* @description 查询出所有的网格,初始化好 服务能力-网格相关事实表 各个指标值赋值为0 |
|||
* @Date 2020/9/21 9:38 |
|||
**/ |
|||
List<FactIndexServiceAblityGridMonthlyEntity> initAllGridList(String customerId); |
|||
|
|||
/** |
|||
* @return void |
|||
* @param list |
|||
* @author yinzuomei |
|||
* @description 批量插入网格相关-服务能力指标表 |
|||
* @Date 2020/9/21 10:05 |
|||
**/ |
|||
void insertBatchEntity(List<FactIndexServiceAblityGridMonthlyEntity> list); |
|||
} |
@ -1,52 +0,0 @@ |
|||
package com.epmet.service.evaluationindex.extract.impl; |
|||
|
|||
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
|||
import com.epmet.constant.DataSourceConstant; |
|||
import com.epmet.dao.evaluationindex.indexcoll.FactIndexServiceAblityGridMonthlyDao; |
|||
import com.epmet.entity.evaluationindex.indexcoll.FactIndexServiceAblityGridMonthlyEntity; |
|||
import com.epmet.service.evaluationindex.extract.FactIndexServiceAbilityGridMonthlyService; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 服务能力-网格相关事实表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-09-19 |
|||
*/ |
|||
@Service |
|||
@Slf4j |
|||
@DataSource(DataSourceConstant.EVALUATION_INDEX) |
|||
public class FactIndexServiceAbilityGridMonthlyServiceImpl implements FactIndexServiceAbilityGridMonthlyService { |
|||
@Autowired |
|||
private FactIndexServiceAblityGridMonthlyDao baseDao; |
|||
|
|||
/** |
|||
* @param customerId |
|||
* @return java.util.List<com.epmet.entity.evaluationindex.indexcoll.FactIndexServiceAblityGridMonthlyEntity> |
|||
* @author yinzuomei |
|||
* @description 查询出所有的网格,初始化好 服务能力-网格相关事实表 各个指标值赋值为0 |
|||
* @Date 2020/9/21 9:38 |
|||
**/ |
|||
@Override |
|||
@DataSource(DataSourceConstant.EVALUATION_INDEX) |
|||
public List<FactIndexServiceAblityGridMonthlyEntity> initAllGridList(String customerId) { |
|||
return baseDao.initAllGridList(customerId); |
|||
} |
|||
|
|||
/** |
|||
* @param list |
|||
* @return void |
|||
* @author yinzuomei |
|||
* @description 批量插入网格相关-服务能力指标表 |
|||
* @Date 2020/9/21 10:05 |
|||
**/ |
|||
@Override |
|||
@DataSource(DataSourceConstant.EVALUATION_INDEX) |
|||
public void insertBatchEntity(List<FactIndexServiceAblityGridMonthlyEntity> list) { |
|||
baseDao.insertBatchEntity(list); |
|||
} |
|||
} |
Loading…
Reference in new issue