package com.patzn.lims.res.mapper;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.patzn.lims.res.entity.LmsCodeRule;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 编号规则 Mapper 接口
 * </p>
 *
 * @author patzn
 * @since 2018-04-11
 */
public interface LmsCodeRuleMapper extends BaseMapper<LmsCodeRule> {

    List<LmsCodeRule> selectCodeRuleList();

    @SqlParser(filter = true)
    int updatePreToNull(@Param("rule") LmsCodeRule lmsCodeRule);
}
