package com.hzs.member.storeconfig.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hzs.common.domain.member.storeconfig.BdStoreMonthCheckConfig;
import com.hzs.member.storeconfig.mapper.BdStoreMonthCheckConfigMapper;
import com.hzs.member.storeconfig.param.StoreMonthCheckConfigParam;
import com.hzs.member.storeconfig.service.IBdStoreMonthCheckConfigService;
import com.hzs.member.storeconfig.vo.StoreMonthCheckConfigVo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 店铺月度考核设置 服务实现类
 * </p>
 *
 * @author hzs
 * @since 2024-04-03
 */
@Service
public class BdStoreMonthCheckConfigServiceImpl extends ServiceImpl<BdStoreMonthCheckConfigMapper, BdStoreMonthCheckConfig> implements IBdStoreMonthCheckConfigService {

    /**
     * 店铺月度考核设置
     * @param storeMonthCheckConfigParam
     * @return
     */
    @Override
    public List<StoreMonthCheckConfigVo> selectByList(StoreMonthCheckConfigParam storeMonthCheckConfigParam) {
        return baseMapper.selectByList(storeMonthCheckConfigParam);
    }

    /**
     * 店铺月度考核设置配置表 批量插入
     * @param storeMonthCheckConfigList
     */
    @Override
    @Transactional(rollbackFor = Exception.class)
    public void insertAll(List<BdStoreMonthCheckConfig> storeMonthCheckConfigList) {
         saveBatch(storeMonthCheckConfigList);
    }

    /**
     * 店铺月度考核设置配置表 批量编辑
     * @param storeMonthCheckConfigList
     */
    @Override
    @Transactional(rollbackFor = Exception.class)
    public void updateAll(List<BdStoreMonthCheckConfig> storeMonthCheckConfigList) {
        updateBatchById(storeMonthCheckConfigList);
    }
}
