/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.serialnum.dao;

import com.jeeplus.common.persistence.CrudDao;
import com.jeeplus.common.persistence.annotation.MyBatisDao;
import com.jeeplus.modules.serialnum.entity.SerialNumTpl;
import org.apache.ibatis.annotations.Param;

/**
 * 编号模板DAO接口
 * @author ppt
 * @version 2018-05-16
 */
@MyBatisDao
public interface SerialNumTplDao extends CrudDao<SerialNumTpl> {

    SerialNumTpl queryByComAndBizCode(@Param("companyId") String companyId, @Param("bizCode") String bizCode);

    int updateSerialNum(SerialNumTpl numTpl);

    void resetSerialNum(@Param("id")String id,@Param("yearBuilt")String yearBuilt,@Param("newYear")String newYear);
}