| | |
| | | import com.vci.ubcs.code.dto.CodeBasicSecDTO; |
| | | import com.vci.ubcs.code.entity.CodeBasicSec; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeBasicSecVO; |
| | | import com.vci.ubcs.com.vci.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.com.vci.starter.web.pagemodel.KeyValue; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.web.pagemodel.KeyValue; |
| | | import org.springblade.core.tool.api.R; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 固定码段的码值服务接口 |
| | |
| | | */ |
| | | boolean addSave(CodeBasicSecDTO codeBasicSecDTO) throws VciBaseException; |
| | | |
| | | /** |
| | | * 修改码段基础信息 |
| | | * @param codeBasicSecDTO 码段基础信息数据传输对象 |
| | | * @return 执行结果 |
| | | * @throws VciBaseException 参数为空,唯一项,必输项不通过时会抛出异常 |
| | | */ |
| | | boolean editSave(CodeBasicSecDTO codeBasicSecDTO) throws VciBaseException; |
| | | |
| | | /** |
| | | * 删除码段基础信息 |
| | | * @param codeBasicSecDTO 码段基础信息数据传输对象,oid和ts需要传输 |
| | | * @return 删除结果反馈::success:成功,fail:失败 |
| | | * @throws VciBaseException 参数为空,被引用时抛出异常 |
| | | */ |
| | | R deleteCodeBasicSec(CodeBasicSecDTO codeBasicSecDTO) throws VciBaseException; |
| | | |
| | | /** |
| | | * 主键删除码段基础信息 |
| | | * @param oid 码段基础信息主键 |
| | | * @return 删除结果反馈::success:成功,fail:失败 |
| | | * @throws VciBaseException 参数为空,被引用时抛出异常 |
| | | */ |
| | | R deleteCodeBasicSecByPrimaryKey(String oid) throws VciBaseException; |
| | | |
| | | /** |
| | | * 主键获取码段基础信息 |
| | | * @param oid 主键 |
| | | * @return 码段基础信息显示对象 |
| | | * @throws VciBaseException 参数为空,数据不存在时会抛出异常 |
| | | */ |
| | | CodeBasicSecVO getObjectByOid(String oid) throws VciBaseException; |
| | | |
| | | /** |
| | | * 主键批量获取码段基础信息 |
| | | * @param oidCollections 主键集合,但是受性能影响,建议一次查询不超过10000个 |
| | | * @return 码段基础信息显示对象 |
| | | * @throws VciBaseException 查询出现异常时会抛出 |
| | | */ |
| | | Collection<CodeBasicSecVO> listCodeBasicSecByOids(Collection<String> oidCollections) throws VciBaseException; |
| | | |
| | | /** |
| | | * 参照码段基础信息列表 |
| | | * @param codeBasicSecVO 查询条件 |
| | | * @param page 分页和排序 |
| | | * @return 码段基础信息显示对象列表,生效的内容 |
| | | * @throws VciBaseException 查询条件和分页出错的时候会抛出异常 |
| | | */ |
| | | IPage<CodeBasicSecVO> refDataGridCodeBasicSec(IPage<CodeBasicSecVO> page, CodeBasicSecVO codeBasicSecVO) throws VciBaseException; |
| | | |
| | | /** |
| | | * 参照分类的码段 |
| | | * @param codeBasicSecVO 查询条件 |
| | | * @param page 分页的对象 |
| | | * @return 码段的内容 |
| | | */ |
| | | IPage<CodeBasicSecVO> refDataGridClassifySec(IPage<CodeBasicSecVO> page, CodeBasicSecVO codeBasicSecVO); |
| | | |
| | | /** |
| | | * 克隆码段信息 |
| | | * @param oidList 源码段信息主键集合 |
| | | * @param pkCodeRule 目标编码规则 |
| | | * @return 克隆结果反馈::success:成功,fail:失败 |
| | | */ |
| | | R cloneCodeBasicSec(List<String> oidList, String pkCodeRule); |
| | | |
| | | /** |
| | | * 查询目标分类码段所在的树结构 |
| | | * @param oid 目标分类码段主键 |
| | | * @return 分类码段树结构 |
| | | */ |
| | | //List<Tree> gridCodeClassifySecTree(String oid); |
| | | |
| | | /** |
| | | * 上移 |
| | | * @param oid 主键 |
| | | */ |
| | | boolean upOrderNum(String oid); |
| | | |
| | | /** |
| | | * 下移 |
| | | * @param oid 主键 |
| | | */ |
| | | boolean downOrderNum(String oid); |
| | | |
| | | /** |
| | | * 树形结构查询oid |
| | | * @param codeClassifySecOid |
| | | * @return |
| | | */ |
| | | List<String> getOidByCodeclassifysecOid(String codeClassifySecOid); |
| | | |
| | | |
| | | } |