| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- package jnpf.base.service;
- import jnpf.base.model.billrule.BillRulePagination;
- import jnpf.base.ActionResult;
- import jnpf.base.Pagination;
- import jnpf.base.entity.BillRuleEntity;
- import jnpf.exception.DataException;
- import java.util.List;
- /**
- * 单据规则
- *
- * @author JNPF开发平台组
- * @version V3.1.0
- * @copyright 引迈信息技术有限公司
- * @date 2019年9月27日 上午9:18
- */
- public interface BillRuleService extends SuperService<BillRuleEntity> {
- /**
- * 列表
- *
- * @param pagination 条件
- * @return 单据规则列表
- */
- List<BillRuleEntity> getList(BillRulePagination pagination);
- /**
- * 列表
- *
- * @return 单据规则集合
- */
- List<BillRuleEntity> getList();
- /**
- * 信息
- *
- * @param id 主键值
- * @return 单据规则
- */
- BillRuleEntity getInfo(String id);
- /**
- * 验证名称
- *
- * @param fullName 名称
- * @param id 主键值
- * @return ignore
- */
- boolean isExistByFullName(String fullName, String id);
- /**
- * 验证编码
- *
- * @param enCode 编码
- * @param id 主键值
- * @return ignore
- */
- boolean isExistByEnCode(String enCode, String id);
- /**
- * 获取流水号
- *
- * @param enCode 流水编码
- * @return ignore
- * @throws DataException ignore
- */
- String getNumber(String enCode) throws DataException;
- /**
- * 创建
- *
- * @param entity 实体对象
- */
- void create(BillRuleEntity entity);
- /**
- * 更新
- *
- * @param id 主键值
- * @param entity 实体对象
- * @return ignore
- */
- boolean update(String id, BillRuleEntity entity);
- /**
- * 删除
- *
- * @param entity 实体对象
- */
- void delete(BillRuleEntity entity);
- /**
- * 上移
- *
- * @param id 主键值
- * @return ignore
- */
- boolean first(String id);
- /**
- * 下移
- *
- * @param id 主键值
- * @return ignore
- */
- boolean next(String id);
- /**
- * 获取单据流水号
- *
- * @param enCode 流水编码
- * @param isCache 是否缓存:每个用户会自动占用一个流水号,这个刷新页面也不会跳号
- * @return ignore
- * @throws DataException ignore
- */
- String getBillNumber(String enCode, boolean isCache) throws DataException;
- /**
- * 使用单据流水号(注意:必须是缓存的单据才可以调用这个方法,否则无效)
- *
- * @param enCode 流水编码
- */
- void useBillNumber(String enCode);
- /**
- * 单据规则导入
- *
- * @param entity 实体对象
- * @param type
- * @return ignore
- * @throws DataException ignore
- */
- ActionResult ImportData(BillRuleEntity entity, Integer type) throws DataException;
- /**
- *
- *
- * @param pagination 根据业务条件
- * @return 单据规则列表
- */
- List<BillRuleEntity> getListByCategory(String id,Pagination pagination);
- }
|