ludc
2024-10-24 65866894f615d7a1386cd7f030307322996450de
Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/WebBoServiceI.java
@@ -1,13 +1,14 @@
package com.vci.web.service;
import com.vci.client.bof.ClientBusinessObject;
import com.vci.common.qt.object.Condition;
import com.vci.common.qt.object.QueryTemplate;
import com.vci.corba.omd.data.BusinessObject;
import com.vci.corba.omd.data.LinkObject;
import com.vci.starter.web.exception.VciBaseException;
import com.vci.starter.web.pagemodel.DataGrid;
import com.vci.starter.web.pagemodel.PageHelper;
import com.vci.starter.web.wrapper.VciQueryWrapperForDO;
import com.vci.web.pageModel.BatchCBO;
import com.vci.pagemodel.BatchCBO;
import java.util.Collection;
import java.util.List;
@@ -40,7 +41,7 @@
    * @return
    * @throws VciBaseException
    */
    ClientBusinessObject createCBOByBtmName(String btmName) throws VciBaseException;
    BusinessObject createCBOByBtmName(String btmName) throws VciBaseException;
   
   /**
    * 根据查询条件来查询业务类型下的数据
@@ -49,7 +50,7 @@
    * @return
    * @throws VciBaseException
    */
    List<com.vci.client.bof.ClientBusinessObject> queryCBO(String btmType, Map<String, String> conditionMap) throws VciBaseException;
    List<BusinessObject> queryCBO(String btmType, Map<String, String> conditionMap) throws VciBaseException;
   
   /**
    * 支持排序和分页的查询业务类型下的数据
@@ -59,7 +60,7 @@
    * @return 
    * @throws VciBaseException
    */
    List<com.vci.client.bof.ClientBusinessObject> queryCBO(String btmType, Map<String, String> conditionMap, PageHelper ph) throws VciBaseException;
    List<BusinessObject> queryCBO(String btmType, Map<String, String> conditionMap, PageHelper ph) throws VciBaseException;
   
   /**
    * 支持自定义查询字段(包括参照、枚举和生命周期)
@@ -70,7 +71,7 @@
    * @return
    * @throws VciBaseException
    */
    List<com.vci.client.bof.ClientBusinessObject> queryCBO(String btmType, Map<String, String> conditionMap, PageHelper ph, List<String> clauseList) throws VciBaseException;
    List<BusinessObject> queryCBO(String btmType, Map<String, String> conditionMap, PageHelper ph, List<String> clauseList) throws VciBaseException;
   /**
    * 拷贝分页和排序的设置到查询模板
@@ -86,7 +87,7 @@
    * @param enumAttrName 枚举的名称
    * @throws VciBaseException 查询枚举出错的时候会抛出异常
    */
   void queryEnumText(com.vci.client.bof.ClientBusinessObject cbo, com.vci.client.bof.ClientLinkObject clo, List<String> enumAttrName) throws VciBaseException;
   void queryEnumText(BusinessObject cbo, LinkObject clo, List<String> enumAttrName) throws VciBaseException;
   /**
    * 给链接类型设置属性
@@ -94,7 +95,7 @@
    * @param attributeName 属性的名称
    * @param attributeValue 属性的值
    */
     void setAttributeValueForClo(com.vci.client.bof.ClientLinkObject clo, String attributeName, String attributeValue);
     void setAttributeValueForClo(LinkObject clo, String attributeName, String attributeValue);
    /**
    * 使用查询方案来查询数据,返回CBO
@@ -104,7 +105,7 @@
    * @return
    * @throws VciBaseException
    */
    List<com.vci.client.bof.ClientBusinessObject> queryCBOByScheme(String queryScheme, Map<String, String> conditionMap, Map<String, String> replaceMap) throws VciBaseException;
    List<BusinessObject> queryCBOByScheme(String queryScheme, Map<String, String> conditionMap, Map<String, String> replaceMap) throws VciBaseException;
   
   /**
    * 使用查询方案来查询数据,返回CBO,支持分页
@@ -115,7 +116,7 @@
    * @return
    * @throws VciBaseException
    */
    List<com.vci.client.bof.ClientBusinessObject> queryCBOByScheme(String queryScheme, Map<String, String> conditionMap, Map<String, String> replaceMap, PageHelper ph) throws VciBaseException;
    List<BusinessObject> queryCBOByScheme(String queryScheme, Map<String, String> conditionMap, Map<String, String> replaceMap, PageHelper ph) throws VciBaseException;
   /**
    * 使用名字获取查询模板
@@ -136,7 +137,7 @@
    * @return
    * @throws VciBaseException
    */
    List<com.vci.client.bof.ClientBusinessObject> queryCBOByScheme(String queryScheme, Map<String, String> conditionMap, Map<String, String> replaceMap, PageHelper ph, List<String> clauseList) throws VciBaseException;
    List<BusinessObject> queryCBOByScheme(String queryScheme, Map<String, String> conditionMap, Map<String, String> replaceMap, PageHelper ph, List<String> clauseList) throws VciBaseException;
   
   /**
    * 查询数量
@@ -182,7 +183,7 @@
     * @return CBO
     * @throws VciBaseException
     */
     List<com.vci.client.bof.ClientBusinessObject> queryBySql(String sql, Map<String, String> conditionMap) throws VciBaseException;
     List<BusinessObject> queryBySql(String sql, Map<String, String> conditionMap) throws VciBaseException;
   /**
    * 只用sql语句查询,这个和queryBySql区别是,特殊的sql(如包含有函数的)可以用这个方法,但是有sql注入风险
@@ -190,7 +191,7 @@
    * @return CBO
    * @throws VciBaseException 查询出错活抛出异常
    */
   List<com.vci.client.bof.ClientBusinessObject> queryByOnlySql(String sql) throws VciBaseException;
   List<BusinessObject> queryByOnlySql(String sql) throws VciBaseException;
   /**
    * 只用sql语句查询,这个和queryBySqlForMap区别是,特殊的sql(如包含有函数的)可以用这个方法,但是有sql注入风险
@@ -474,36 +475,36 @@
     DataGrid queryGridClassByScheme(String queryScheme, Class c, Map<String, String> conditionMap, Map<String, String> replaceMap, PageHelper ph) throws VciBaseException;
   
    /**
     * ClientBusinessObject 转为HashMap
     * BusinessObject 转为HashMap
     * @param cbos CBOS
     * @return map
     * @throws VciBaseException
     */
     List<Map> cbos2Map(List<ClientBusinessObject> cbos) throws VciBaseException;
     List<Map> cbos2Map(List<BusinessObject> cbos) throws VciBaseException;
    
    /**
     * ClientBusinessObject 转为HashMap
     * BusinessObject 转为HashMap
     * @param cbo
     * @return
     * @throws VciBaseException
     */
     Map cbo2Map(com.vci.client.bof.ClientBusinessObject cbo) throws VciBaseException;
     Map cbo2Map(BusinessObject cbo) throws VciBaseException;
    
    /**
     * map转为clientBusinessObject
     * map转为BusinessObject
     * @param map 
     * @return
     * @throws VciBaseException
     */
     List<ClientBusinessObject> map2Cbos(List<Map> map) throws VciBaseException;
     List<BusinessObject> map2Cbos(List<Map> map) throws VciBaseException;
    
    /**
     * map转为clientBusinessObject
     * map转为BusinessObject
     * @param map
     * @return
     * @throws VciBaseException
     */
     ClientBusinessObject map2Cbo(Map map) throws VciBaseException;
     BusinessObject map2Cbo(Map map) throws VciBaseException;
    
    /**
     * 批量保存业务类型和链接类型的信息
@@ -572,7 +573,7 @@
    * @return cbo
    * @throws VciBaseException 参数为空,数据不存在会抛出异常
    */
   ClientBusinessObject selectCBOByOid(String oid,String btmName) throws VciBaseException;
   BusinessObject selectCBOByOid(String oid,String btmName) throws VciBaseException;
    
    /**
     * 使用主键集合获取对象
@@ -590,7 +591,7 @@
    * @return 业务数据的集合
    * @throws VciBaseException 参数为空,查询出错会抛出异常
    */
   List<ClientBusinessObject> selectCBOByOidCollection(Collection<String> oidCollection,String btmName) throws VciBaseException;
   List<BusinessObject> selectCBOByOidCollection(Collection<String> oidCollection,String btmName) throws VciBaseException;
   /**
    * 使用新的查询封装器来查询