17 changed files with 320 additions and 3 deletions
@ -0,0 +1,33 @@ |
|||||
|
package com.epmet.service.evaluationindex.indexcoll; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.entity.evaluationindex.indexcoll.FactIndexServiceAblityOrgMonthlyEntity; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author zhaoqifeng |
||||
|
* @dscription |
||||
|
* @date 2020/9/30 16:39 |
||||
|
*/ |
||||
|
public interface FactIndexServiceAblityOrgMonthlyService extends BaseService<FactIndexServiceAblityOrgMonthlyEntity> { |
||||
|
/** |
||||
|
* 根据客户清空数据 |
||||
|
* @author zhaoqifeng |
||||
|
* @date 2020/9/20 20:33 |
||||
|
* @param customerId |
||||
|
* @param monthId |
||||
|
* @param type |
||||
|
* @return void |
||||
|
*/ |
||||
|
void deleteByCustomer(String customerId, String monthId, String type); |
||||
|
|
||||
|
/** |
||||
|
* 批量插入 |
||||
|
* @author zhaoqifeng |
||||
|
* @date 2020/9/21 17:08 |
||||
|
* @param list |
||||
|
* @return void |
||||
|
*/ |
||||
|
void saveList(List<FactIndexServiceAblityOrgMonthlyEntity> list); |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
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.FactIndexServiceAblityOrgMonthlyDao; |
||||
|
import com.epmet.entity.evaluationindex.indexcoll.FactIndexServiceAblityOrgMonthlyEntity; |
||||
|
import com.epmet.service.evaluationindex.indexcoll.FactIndexServiceAblityOrgMonthlyService; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author zhaoqifeng |
||||
|
* @dscription |
||||
|
* @date 2020/9/30 16:39 |
||||
|
*/ |
||||
|
@Service |
||||
|
@DataSource(DataSourceConstant.EVALUATION_INDEX) |
||||
|
public class FactIndexServiceAblityOrgMonthlyServiceImpl extends BaseServiceImpl<FactIndexServiceAblityOrgMonthlyDao, FactIndexServiceAblityOrgMonthlyEntity> implements FactIndexServiceAblityOrgMonthlyService { |
||||
|
@Override |
||||
|
public void deleteByCustomer(String customerId, String monthId, String type) { |
||||
|
baseDao.deleteByCustomer(customerId, monthId, type); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public void saveList(List<FactIndexServiceAblityOrgMonthlyEntity> list) { |
||||
|
insertBatch(list); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue