dangsn
2024-12-03 d0ae279ff3b83358d1c07f4481a041c4ad335026
Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/UIDataServiceI.java
@@ -5,17 +5,17 @@
import com.vci.corba.omd.data.LinkObject;
import com.vci.corba.omd.data.RevisionDataInfo;
import com.vci.corba.omd.data.VersionDataInfo;
import com.vci.dto.*;
import com.vci.pagemodel.OsBtmTypeVO;
import com.vci.pagemodel.ReferConfigVO;
import com.vci.pagemodel.UIFormDataVO;
import com.vci.query.UIDataGridQuery;
import com.vci.query.UIFormQuery;
import com.vci.query.UITreeQuery;
import com.vci.starter.web.enumpck.VciChangeDocumentTypeEnum;
import com.vci.starter.web.exception.VciBaseException;
import com.vci.starter.web.model.BaseModel;
import com.vci.starter.web.pagemodel.*;
import com.vci.web.dto.*;
import com.vci.web.pageModel.OsBtmTypeVO;
import com.vci.web.pageModel.ReferConfigVO;
import com.vci.web.pageModel.UIFormDataVO;
import com.vci.web.query.UIDataGridQuery;
import com.vci.web.query.UIFormQuery;
import com.vci.web.query.UITreeQuery;
import java.util.Collection;
import java.util.List;
@@ -34,7 +34,7 @@
     * @return DataGrid中data为Map<String,String>格式
     * @throws VciBaseException 查询出错的时候会抛出异常
     */
    DataGrid getDataForGrid(UIDataGridQuery dataGridQuery)  throws VciBaseException;
    DataGrid getDataForGrid(UIDataGridQuery dataGridQuery) throws VciBaseException, PLException;
    /**
     * 获取表单的数据
@@ -42,7 +42,7 @@
     * @return 表单的数据
     * @throws VciBaseException 查询出错的时候会抛出异常
     */
    UIFormDataVO getDataForForm(UIFormQuery formQuery) throws VciBaseException;
    UIFormDataVO getDataForForm(UIFormQuery formQuery) throws VciBaseException, PLException;
    /**
     * 获取树形数据
@@ -50,7 +50,15 @@
     * @return 树形数据
     * @throws VciBaseException 查询出错的时候会抛出异常
     */
    List<Tree> getDataForTree(UITreeQuery treeQuery) throws VciBaseException;
    List<UIDataTree> getDataForTree(UITreeQuery treeQuery) throws Exception;
    /**
     * 获取树形数据(根据查询模板查询对象)
     * @param treeQuery 树形查询条件
     * @return 树形数据
     * @throws VciBaseException 查询出错的时候会抛出异常
     */
    BaseResult getDataByTemp(UITreeQuery treeQuery) throws Exception;
    /**
     * 调用前置事件
@@ -61,7 +69,7 @@
     * @return 执行结果,请判断success属性是否为true
     * @throws VciBaseException 配置或者是调用不成功的时候,会抛出异常
     */
    BaseResult callPreEvent(BaseModelDTOList baseModelDTOList, BaseLinkModelDTOList baseLinkModelDTOList,String preEvent, VciChangeDocumentTypeEnum businessType) throws VciBaseException;
    BaseResult callPreEvent(BaseModelDTOList baseModelDTOList, BaseLinkModelDTOList baseLinkModelDTOList, String preEvent, VciChangeDocumentTypeEnum businessType) throws VciBaseException;
    /**
     * 后置事件
@@ -108,7 +116,7 @@
     * @return 执行结果和显示后的值
     * @throws VciBaseException 保存出错的时候会抛出异常
     */
    BaseResult<Map<String,Object>> addSave(FormDataDTO formDataDTO) throws VciBaseException;
    BaseResult<Map<String,Object>> addSave(FormDataDTO formDataDTO) throws VciBaseException, PLException;
    /**
     * 业务类型
@@ -160,7 +168,7 @@
     * @return 执行结果和主键
     * @throws VciBaseException 保存出错的时候会抛出异常
     */
    BaseResult<String> batchAddSave(FormDataDTOList formDataDTOList) throws VciBaseException;
    BaseResult<String> batchAddSave(FormDataDTOList formDataDTOList) throws VciBaseException, PLException;
    /**
     * 修改数据。注意表单定义的字段才会被修改,ts这种默认字段除外
@@ -168,7 +176,7 @@
     * @return 执行结果和显示后的值
     * @throws VciBaseException 保存出错的时候会抛出异常
     */
    BaseResult<Map<String,Object>> editSave(FormDataDTO formDataDTO) throws VciBaseException;
    BaseResult<Map<String,Object>> editSave(FormDataDTO formDataDTO) throws VciBaseException, PLException;
    /**
     * 数据升版
@@ -184,7 +192,7 @@
     * @return 执行结果和显示后的值
     * @throws VciBaseException 保存出错的时候会抛出异常
     */
    BaseResult<String> batchEditSave(FormDataDTOList formDataDTOList) throws VciBaseException;
    BaseResult<String> batchEditSave(FormDataDTOList formDataDTOList) throws VciBaseException, PLException;
    /**
     * 批量删除
@@ -192,7 +200,7 @@
     * @return 执行结果
     * @throws VciBaseException 数据被引用的时候会抛出异常
     */
    BaseResult batchDelete(DeleteDataDTO deleteDataDTO)  throws VciBaseException;
    BaseResult batchDelete(DeleteDataDTO deleteDataDTO) throws VciBaseException, PLException;
    /**
     * 链接类型添加
@@ -200,7 +208,7 @@
     * @return 链接类型的主键
     * @throws VciBaseException 参数为空,必输项缺失
     */
    BaseResult<String> linkAddSave(FormLinkDataDTO formLinkDataDTO) throws VciBaseException;
    BaseResult<String> linkAddSave(FormLinkDataDTO formLinkDataDTO) throws VciBaseException, PLException;
    /**
     * 设置值到业务类型的对象上
@@ -217,7 +225,7 @@
     * @return 执行结果
     * @throws VciBaseException 参数为空,必输项缺失
     */
    BaseResult linkEditSave(FormLinkDataDTO formLinkDataDTO) throws VciBaseException;
    BaseResult linkEditSave(FormLinkDataDTO formLinkDataDTO) throws VciBaseException, PLException;
    /**
     * 删除链接类型
@@ -233,7 +241,7 @@
     * @param pageHelper 分页的工具
     * @return 列表数据
     */
    DataGrid referDataGrid(ReferConfigVO referConfigVO, PageHelper pageHelper);
    DataGrid referDataGrid(ReferConfigVO referConfigVO, PageHelper pageHelper) throws PLException;
    /**
     * 获取树形的参照
@@ -258,4 +266,19 @@
     * @return 执行的结果
     */
    BaseResult deleteBusinessObject(String btmname, String oid, int type) throws PLException;
    /**
     * 变更所有者
     * @param btmname 业务类型
     * @param oid 主键
     * @return 执行的结果
     */
    BaseResult changeBusinessObjectOwner(String btmname, String oid) throws PLException;
    /**
     * 状态跃迁
     * @param btmname 业务类型
     * @param oid 主键
     * @param releaseStatus 发布状态
     * @return 执行的结果
     */
    BaseResult transferBusinessObject(String btmname, String oid, String toStatus, String releaseStatus) throws PLException;
}