Browse Source

修改网格相关指标采集 ,调用FactIndexServiceAblityGridMonthlyService

master
yinzuomei 5 years ago
parent
commit
b0dd2dfea3
  1. 31
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/FactIndexServiceAbilityGridMonthlyService.java
  2. 3
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/dataToIndex/impl/CalGridIndexServiceImpl.java
  3. 52
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/impl/FactIndexServiceAbilityGridMonthlyServiceImpl.java
  4. 20
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/indexcoll/FactIndexServiceAblityGridMonthlyService.java
  5. 28
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/indexcoll/impl/FactIndexServiceAblityGridMonthlyServiceImpl.java

31
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/FactIndexServiceAbilityGridMonthlyService.java

@ -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);
}

3
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/dataToIndex/impl/CalGridIndexServiceImpl.java

@ -2,7 +2,6 @@ package com.epmet.service.evaluationindex.extract.dataToIndex.impl;
import com.epmet.commons.dynamic.datasource.annotation.DataSource;
import com.epmet.commons.tools.constant.NumConstant;
import com.epmet.commons.tools.exception.RenException;
import com.epmet.commons.tools.utils.DateUtils;
import com.epmet.constant.DataSourceConstant;
import com.epmet.constant.ExtractConstant;
@ -71,7 +70,7 @@ public class CalGridIndexServiceImpl implements CalGridIndexService {
@Autowired
private FactIndexGovrnAblityOrgMonthlyService governAbilityOrgMonthlyService;
@Autowired
private FactIndexServiceAbilityGridMonthlyService factIndexServiceAbilityGridMonthlyService;
private FactIndexServiceAblityGridMonthlyService factIndexServiceAbilityGridMonthlyService;
@Autowired
private FactIndexServiceAblityGridMonthlyService factIndexServiceAblityGridMonthlyService;
@Autowired

52
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/impl/FactIndexServiceAbilityGridMonthlyServiceImpl.java

@ -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);
}
}

20
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/indexcoll/FactIndexServiceAblityGridMonthlyService.java

@ -21,6 +21,8 @@ package com.epmet.service.evaluationindex.indexcoll;
import com.epmet.commons.mybatis.service.BaseService;
import com.epmet.entity.evaluationindex.indexcoll.FactIndexServiceAblityGridMonthlyEntity;
import java.util.List;
/**
* 服务能力-网格相关事实表
@ -38,4 +40,22 @@ public interface FactIndexServiceAblityGridMonthlyService extends BaseService<Fa
* @Date 2020/9/21 16:38
**/
void deleteBatchIndexServiceAblityGridMonthly(String customerId, String monthId);
/**
* @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);
}

28
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/indexcoll/impl/FactIndexServiceAblityGridMonthlyServiceImpl.java

@ -26,6 +26,8 @@ import com.epmet.entity.evaluationindex.indexcoll.FactIndexServiceAblityGridMont
import com.epmet.service.evaluationindex.indexcoll.FactIndexServiceAblityGridMonthlyService;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 服务能力-网格相关事实表
*
@ -51,4 +53,30 @@ public class FactIndexServiceAblityGridMonthlyServiceImpl extends BaseServiceImp
deleteNum = baseDao.deleteFactIndexServiceAblityGridMonthly(customerId, monthId);
} while (deleteNum > NumConstant.ZERO);
}
/**
* @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…
Cancel
Save