package com.hzs.scm.no.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.scm.no.ScmBillNo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 订单编号规则设置 Mapper 接口
 * </p>
 *
 * @author hzs
 * @since 2024-02-21
 */
public interface ScmBillNoMapper extends BaseMapper<ScmBillNo> {

    /*
     * @description: 更新尾号
     * @author: sui q
     * @date: 2024/2/21 14:33
     * @param: null null
     **/
    void updateScmBillNo(ScmBillNo scmBillNo);

    /*
     * @description: 更新单据号尾号，重新更新为0
     * @author: sui q
     * @date: 2024/2/21 15:31
     * @param: null null
     **/
    void updateScmBillNoNextValue(@Param("dayBillNoList") List<ScmBillNo> dayBillNoList);
}
