package com.njcn.mysql.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.github.jeffreyning.mybatisplus.service.MppServiceImpl;
import com.njcn.mysql.bo.po.RStatIntegrityD;
import com.njcn.mysql.mapper.RStatIntegrityDMapper;
import com.njcn.mysql.service.IntegrityService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 数据完整性统计
 *
 * @author xiaoyao
 * @version 1.0.0
 * @createTime 2022/10/24 20:07
 */

@Slf4j
@Service
@AllArgsConstructor
@DS("target")
public class IntegrityServiceImpl extends MppServiceImpl<RStatIntegrityDMapper, RStatIntegrityD> implements IntegrityService {

    @Override
    public void insert(List<RStatIntegrityD> list) {
        this.saveOrUpdateBatchByMultiId(list,50);
    }
}
