dangsn
2024-12-03 d0ae279ff3b83358d1c07f4481a041c4ad335026
Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/UIDataServiceI.java
@@ -1,20 +1,21 @@
package com.vci.web.service;
import com.vci.corba.common.PLException;
import com.vci.corba.omd.data.BusinessObject;
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;
@@ -33,7 +34,7 @@
     * @return DataGrid中data为Map<String,String>格式
     * @throws VciBaseException 查询出错的时候会抛出异常
     */
    DataGrid getDataForGrid(UIDataGridQuery dataGridQuery)  throws VciBaseException;
    DataGrid getDataForGrid(UIDataGridQuery dataGridQuery) throws VciBaseException, PLException;
    /**
     * 获取表单的数据
@@ -41,7 +42,7 @@
     * @return 表单的数据
     * @throws VciBaseException 查询出错的时候会抛出异常
     */
    UIFormDataVO getDataForForm(UIFormQuery formQuery) throws VciBaseException;
    UIFormDataVO getDataForForm(UIFormQuery formQuery) throws VciBaseException, PLException;
    /**
     * 获取树形数据
@@ -49,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;
    /**
     * 调用前置事件
@@ -60,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;
    /**
     * 后置事件
@@ -107,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;
    /**
     * 业务类型
@@ -159,7 +168,7 @@
     * @return 执行结果和主键
     * @throws VciBaseException 保存出错的时候会抛出异常
     */
    BaseResult<String> batchAddSave(FormDataDTOList formDataDTOList) throws VciBaseException;
    BaseResult<String> batchAddSave(FormDataDTOList formDataDTOList) throws VciBaseException, PLException;
    /**
     * 修改数据。注意表单定义的字段才会被修改,ts这种默认字段除外
@@ -167,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;
    /**
     * 数据升版
@@ -175,7 +184,7 @@
     * @return 执行结果和显示后的值
     * @throws VciBaseException 保存出错的时候会抛出异常
     */
    BaseResult<Map<String, Object>> upRevision(FormDataDTO formDataDTO) throws VciBaseException;
    BaseResult<Map<String, Object>> upRevision(FormDataDTO formDataDTO) throws VciBaseException, PLException;
    /**
     * 批量修改,注意表单定义的字段才会被修改,ts这种默认字段除外
@@ -183,7 +192,7 @@
     * @return 执行结果和显示后的值
     * @throws VciBaseException 保存出错的时候会抛出异常
     */
    BaseResult<String> batchEditSave(FormDataDTOList formDataDTOList) throws VciBaseException;
    BaseResult<String> batchEditSave(FormDataDTOList formDataDTOList) throws VciBaseException, PLException;
    /**
     * 批量删除
@@ -191,7 +200,7 @@
     * @return 执行结果
     * @throws VciBaseException 数据被引用的时候会抛出异常
     */
    BaseResult batchDelete(DeleteDataDTO deleteDataDTO)  throws VciBaseException;
    BaseResult batchDelete(DeleteDataDTO deleteDataDTO) throws VciBaseException, PLException;
    /**
     * 链接类型添加
@@ -199,7 +208,7 @@
     * @return 链接类型的主键
     * @throws VciBaseException 参数为空,必输项缺失
     */
    BaseResult<String> linkAddSave(FormLinkDataDTO formLinkDataDTO) throws VciBaseException;
    BaseResult<String> linkAddSave(FormLinkDataDTO formLinkDataDTO) throws VciBaseException, PLException;
    /**
     * 设置值到业务类型的对象上
@@ -216,7 +225,7 @@
     * @return 执行结果
     * @throws VciBaseException 参数为空,必输项缺失
     */
    BaseResult linkEditSave(FormLinkDataDTO formLinkDataDTO) throws VciBaseException;
    BaseResult linkEditSave(FormLinkDataDTO formLinkDataDTO) throws VciBaseException, PLException;
    /**
     * 删除链接类型
@@ -232,7 +241,7 @@
     * @param pageHelper 分页的工具
     * @return 列表数据
     */
    DataGrid referDataGrid(ReferConfigVO referConfigVO, PageHelper pageHelper);
    DataGrid referDataGrid(ReferConfigVO referConfigVO, PageHelper pageHelper) throws PLException;
    /**
     * 获取树形的参照
@@ -248,4 +257,28 @@
     * @return 业务数据的属性信息
     */
    List<Map<String,String>>  getDataAttr(String btmName, String oid);
    /**
     * 数据升版本/次,前端使用JSON提交
     * @param btmname 业务类型的信息
     * @param oid 业务数据的主键
     * @param type 1:版次对象;2:版本对象;3:主对象
     * @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;
}