package com.shkj.wms.service.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.lang.Assert;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shkj.wms.bo.BasRuleBo;
import com.shkj.wms.domain.BasRule;
import com.shkj.wms.domain.BasRuleDetail;
import com.shkj.wms.mapper.BasRuleDetailMapper;
import com.shkj.wms.mapper.BasRuleMapper;
import com.shkj.wms.service.IBasRuleDetailService;
import com.shkj.wms.service.IBasRuleService;
import com.shkj.wms.vo.BasRuleVo;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 编码规则Service业务层处理
 *
 * @author j.liang
 * @date 2022-12-08
 */
@Slf4j
@Service
public class BasRuleDetailServiceImpl extends ServiceImpl<BasRuleDetailMapper, BasRuleDetail> implements IBasRuleDetailService  {
    public static ThreadLocal<Boolean> threadLocal = new ThreadLocal<>();


    @Override
    public Boolean saveBatchRuleDetail(List<BasRuleDetail> list) {
        return this.saveBatch(list);
    }
}
