xiejun
2024-11-01 0496aed6e04c5084f05ce1035ba9ec38e3d4e9c7
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeRuleService.java
@@ -24,10 +24,10 @@
import com.vci.ubcs.code.vo.pagemodel.CodeRuleVO;
import com.vci.ubcs.starter.exception.VciBaseException;
import com.vci.ubcs.starter.web.pagemodel.BladeQueryObject;
import org.springblade.core.log.exception.ServiceException;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import java.rmi.ServerException;
import java.util.Collection;
import java.util.Map;
@@ -49,6 +49,13 @@
   IPage<CodeRuleVO> gridCodeRule(Query query, Map<String,Object> condtionMap) throws VciBaseException;
   /**
    * 检查id编号是否重复
    * @param codeRuleDTO 当前判断是否重复的对象
    * @return 返回false表示未重复
    */
   boolean checkCodeRuleRepeat(CodeRuleDTO codeRuleDTO);
   /**
    * 校验编码规则的状态是否可以编辑或删除
    * @param lcStatus 编码规则
    * @return true表示可以编辑或删除,false表示不可以
@@ -60,14 +67,14 @@
    * @param codeRuleDTO 主数据编码规则数据传输对象
    * @return 执行结果
    */
   boolean addSave(CodeRuleDTO codeRuleDTO) throws VciBaseException;
   R addSave(CodeRuleDTO codeRuleDTO) throws VciBaseException;
   /**
    * 修改主数据编码规则
    * @param codeRuleDTO 主数据编码规则数据传输对象
    * @return 执行结果
    */
   boolean editSave(CodeRuleDTO codeRuleDTO) throws VciBaseException;
   R editSave(CodeRuleDTO codeRuleDTO) throws VciBaseException;
   /**
    * 删除主数据编码规则
@@ -108,6 +115,16 @@
   Collection<CodeRuleVO> listCodeRuleByOids(Collection<String> oidCollections) throws VciBaseException;
   /**
    * 主键批量获取主数据编码规则
    *
    * @param oidCollections 主键集合,但是受性能影响,建议一次查询不超过10000个
    * @param hasSec         是否包含码段
    * @return 主数据编码规则显示对象
    * @throws VciBaseException 查询出现异常时会抛出
    */
   Collection<CodeRuleVO> listCodeRuleByIds(Collection<String> oidCollections,boolean hasSec)throws VciBaseException ;
   /**
    * 参照主数据编码规则列表
    * @param bladeQueryObject 查询条件
    * @return 主数据编码规则显示对象列表,生效的内容
@@ -128,7 +145,7 @@
    * @param codeRuleDTO 主数据编码规则数据传输对象,oid和ts需要传输
    * @return 主数据编码规则显示对象
    */
   R cloneCodeRule(CodeRuleDTO codeRuleDTO) throws VciBaseException;
   R cloneCodeRule(CodeRuleDTO codeRuleDTO) throws ServerException;
   /**
    * 编码规则清空所有已生成的编码
@@ -143,4 +160,12 @@
    * @return 规则的显示对象
    */
   CodeRuleVO getObjectHasSecByOid(String codeRuleOid) throws VciBaseException;
   /**
    * 检查相似编码规则,并返回对应的结果
    * @param oid 主键
    * @return 执行结果
    */
   R checkLikeCodeRule(String oid) throws VciBaseException;
}