All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kedauis.system.service.SequenceService Maven / Gradle / Ivy

The newest version!
package com.kedauis.system.service;

import com.kedauis.system.model.SysSeqRule;
import com.kedauis.system.model.SysSequence;

import java.util.List;
import java.util.Map;

/**
 * 项目名称:framework
 * 类描述:
 * 创建人:QiuYu
 * 创建时间:2018/3/23 14:51
 * 修改人:
 * 修改时间:
 * 修改备注:
 */
public interface SequenceService {

    public static final String RULE_TYPE_NUMBERMIC = "1";
    public static final String RULE_TYPE_CHARACTER = "2";
    public static final String RULE_TYPE_CALENDER = "3";

    public static final String REST_TYPE_DAY = "3";
    public static final String REST_TYPE_MONTH = "2";
    public static final String REST_TYPE_YEAR = "1";


    /**
     * author QiuYu
     * date 2018/3/23
     * time 16:16
     * description 查询序列号分页列表
     * @param page 查询页码
     * @param limit 每页分页数量
     * @return 序列号分页列表
     */
    public List> qrySeqPageList(Integer page, Integer limit);

    /**
     * author QiuYu
     * date 2018/3/23
     * time 16:16
     * description 保存序列号生成规则
     * @param sysSeqRules 序列号生成规则
     * @param sysSequence 序列信息
     */
    public void saveSeq(SysSequence sysSequence, List sysSeqRules);

    /**
     * author QiuYu
     * date 2018/3/23
     * time 16:16
     * description 根据序列号id查询序列号信息
     * @param seqId 序列号id
     * @return 序列号信息以及规则信息
     */
    public Map qrySeq(Integer seqId);

    /**
     * author QiuYu
     * date 2018/3/27
     * time 14:23
     * description
     * @param seqCode 序列编码
     * @param seqId 如果是正在编辑的队列
     * @return 是否存在序列编码
     */
    public boolean isExistCode(String seqCode, Integer seqId);

    /**
     * author QiuYu
     * date 2018/3/23
     * time 16:16
     * description 删除序列号
     * @param seqId 序列号id
     */
    public void delSeq(Integer seqId);

    /**
     * author QiuYu
     * date 2018/3/23
     * time 16:35
     * description 获得指定序列的下一个值
     * @param seqCode 序列编号
     * @return 生成的序列号
     */
    public String nextVal(String seqCode);

    /**
     * author QiuYu
     * date 2018/3/23
     * time 16:35
     * description 获得指定序列的下一个值
     * @param seqCode 序列编号
     * @param useTimes 需要生成多少个序列号
     * @return 生成的序列号
     */
    public String[] nextVals(String seqCode, Integer useTimes);

    /**
     * author QiuYu
     * date 2018/4/3
     * time 14:58
     * description
     * @param restType 重置方式
     */
    public void restSeqByRestType(String restType);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy