| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.bo.CodeClassifyFullInfoBO; |
| | | import com.vci.ubcs.code.bo.CodeTemplateAttrSqlBO; |
| | |
| | | import com.vci.ubcs.code.dto.datapush.BaseModelDTO; |
| | | import com.vci.ubcs.code.entity.CodeWupin; |
| | | import com.vci.ubcs.code.vo.CodeKeyAttrRepeatVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.*; |
| | | import com.vci.ubcs.code.vo.pagemodel.UITableFieldVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.*; |
| | | import com.vci.ubcs.omd.vo.BtmTypeVO; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import com.vci.ubcs.starter.revision.model.TreeQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.*; |
| | | import com.vci.ubcs.starter.web.util.VciQueryWrapperForDO; |
| | | import org.springblade.core.tool.api.R; |
| | | |
| | | import java.util.*; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 主数据引擎服务 |
| | |
| | | * @param orderDTO 申请的信息,需要包含属性的内容和码段相关的内容 |
| | | * @return 返回编码的内容 |
| | | */ |
| | | String addSaveCode(CodeOrderDTO orderDTO); |
| | | String addSaveCode(CodeOrderDTO orderDTO) throws Exception; |
| | | |
| | | /** |
| | | * 判断编码的码段是否输入或者选择了码值 |
| | |
| | | * 初始化业务类型 |
| | | * --创建人默认为当前用户,如果需要修改,可以在获取后自行处理 |
| | | * @param btmName 业务类型的名称,会自动变成小写 |
| | | * @return CodeWupinEntity |
| | | * @return BaseModel |
| | | */ |
| | | CodeWupin createCBOByBtmName(String btmName); |
| | | BaseModel createCBOByBtmName(String btmName); |
| | | |
| | | /** |
| | | * 保存可输可选的信息 |
| | |
| | | * @param cboList 数据的内容 |
| | | */ |
| | | void batchSaveSelectChar(CodeClassifyTemplateVO templateVO, /*List<ClientBusinessObject> cboList*/ |
| | | List<String> cboList); |
| | | List<BaseModel> cboList); |
| | | |
| | | /** |
| | | * 使用模板的主键获取表单的信息 |
| | |
| | | * @return UI相关的内容 |
| | | */ |
| | | MdmUIInfoVO getUIInfoByClassifyOid(String codeClassifyOid, String functionId); |
| | | /** |
| | | * 使用分类主键,模板主键,阶段标识,流程模板kek获取流程审批中页面的内容,包含按钮 |
| | | * |
| | | * @param codeClassifyOid 主题库分类主键 |
| | | * @param functionId 功能的编号,默认5 |
| | | * @return UI相关的内容 |
| | | */ |
| | | MdmUIInfoVO getFlowUIInfoByClassifyOid(String codeClassifyOid, String functionId,String templateId,String taskId,String modelKey); |
| | | |
| | | /** |
| | | * 传入业务类型以及相关数据进行批量插入操作 |
| | | * |
| | | * @param btmType 业务类型 |
| | | * @param baseModels 处理数据 |
| | | * @return 处理成功数据条数 |
| | | */ |
| | | Integer insertBatchByType(String btmType, List<BaseModel> baseModels); |
| | | /** |
| | | * 传入业务类型以及相oid集合查询数据进行返回 |
| | | * |
| | | * @param btmType 业务类型 |
| | | * @param oids 需要查询的oid集合 逗号分开 |
| | | * @return 查询出的数据 |
| | | */ |
| | | List<BaseModel> selectByTypeAndOid(String btmType, String oids) ; |
| | | /** |
| | | * 传入业务类型以及相关数据进行批量更新操作 |
| | | * |
| | | * @param btmType 业务类型 |
| | | * @param baseModels 处理数据 |
| | | * @return 处理状态 |
| | | */ |
| | | R updateBatchByBaseModel(String btmType, List<BaseModel> baseModels); |
| | | |
| | | /** |
| | | * 默认列表 |
| | | * @param referConfigVO |
| | | * @return |
| | | */ |
| | | IPage<BaseModel> referDataGrid(UIFormReferVO referConfigVO, BaseQueryObject baseQueryObject) throws VciBaseException; |
| | | |
| | | /** |
| | | * 获取树形的参照 |
| | | * @param referConfigVO 参照的配置 |
| | | * @return 树形的数据 |
| | | */ |
| | | List<Tree> referTree(UIFormReferVO referConfigVO, TreeQueryObject queryObject); |
| | | |
| | | |
| | | /** |
| | | * 是否为修改忽略的属性 |
| | | * @param attrName 属性的名字 |
| | | * @return true 表示应该忽略 |
| | | */ |
| | | default boolean checkUnAttrUnEdit(String attrName){ |
| | | return (VciQueryWrapperForDO.OID_FIELD.equalsIgnoreCase(attrName) |
| | | ||"ts".equalsIgnoreCase(attrName) |
| | | || "lastmodifier".equalsIgnoreCase(attrName) |
| | | || "lastmodifytime".equalsIgnoreCase(attrName) |
| | | || "createtime".equalsIgnoreCase(attrName) |
| | | || "checkintime".equalsIgnoreCase(attrName) |
| | | ||"checkouttime".equalsIgnoreCase(attrName)); |
| | | } |
| | | |
| | | } |