Bladeren bron

修改类引用

9060 9 maanden geleden
bovenliggende
commit
35d51dfac8

+ 89 - 120
src/com/kingdee/eas/custom/shuiyou/uitls/AbstractSYUtilsFacadeControllerBean.java

@@ -1,74 +1,53 @@
 package com.kingdee.eas.custom.shuiyou.uitls;
 
-import javax.ejb.*;
-import java.rmi.RemoteException;
+import java.util.Map;
+import java.lang.String;
+
 import com.kingdee.bos.*;
 import com.kingdee.bos.util.BOSObjectType;
-import com.kingdee.bos.metadata.IMetaDataPK;
-import com.kingdee.bos.metadata.rule.RuleExecutor;
-import com.kingdee.bos.metadata.MetaDataPK;
-//import com.kingdee.bos.metadata.entity.EntityViewInfo;
-import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
+import com.kingdee.bos.metadata.MetaDataPK;;
 import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
-//import com.kingdee.bos.dao.IObjectPK;
-import com.kingdee.bos.dao.IObjectValue;
-import com.kingdee.bos.dao.IObjectCollection;
 import com.kingdee.bos.service.ServiceContext;
-import com.kingdee.bos.service.IServiceContext;
-import com.kingdee.eas.framework.Result;
-import com.kingdee.eas.framework.LineResult;
-import com.kingdee.eas.framework.exception.EASMultiException;
-import com.kingdee.bos.dao.ormapping.ObjectUuidPK;
-
-import java.util.Map;
 import com.kingdee.eas.custom.shuiyou.interfacelog.LogInfoInfo;
-import com.kingdee.eas.custom.shuiyou.interfaceiog.LogInfoInfo;
-import java.lang.String;
 import com.kingdee.eas.custom.shuiyou.task.TaskCatalogEnum;
 import cn.hutool.core.lang.Snowflake;
 
 
-
-public abstract class AbstractSYUtilsFacadeControllerBean extends AbstractBizControllerBean implements SYUtilsFacadeController
-{
-    protected AbstractSYUtilsFacadeControllerBean()
-    {
+public abstract class AbstractSYUtilsFacadeControllerBean extends AbstractBizControllerBean implements SYUtilsFacadeController {
+    protected AbstractSYUtilsFacadeControllerBean() {
     }
 
-    protected BOSObjectType getBOSType()
-    {
+    protected BOSObjectType getBOSType() {
         return new BOSObjectType("A069618E");
     }
 
-    public String getSignature(Context ctx, String param) throws BOSException
-    {
+    public String getSignature(Context ctx, String param) throws BOSException {
         try {
             ServiceContext svcCtx = createServiceContext(new MetaDataPK("dccb1601-d56b-47df-b5c3-67f29237af8b"), new Object[]{ctx, param});
             invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            String retValue = (String)_getSignature(ctx, param);
-            svcCtx.setMethodReturnValue(retValue);
+            if (!svcCtx.invokeBreak()) {
+                String retValue = (String) _getSignature(ctx, param);
+                svcCtx.setMethodReturnValue(retValue);
             }
             invokeServiceAfter(svcCtx);
-            return (String)svcCtx.getMethodReturnValue();
+            return (String) svcCtx.getMethodReturnValue();
         } catch (BOSException ex) {
             throw ex;
         } finally {
             super.cleanUpServiceState();
         }
     }
-    protected String _getSignature(Context ctx, String param) throws BOSException
-    {    	
+
+    protected String _getSignature(Context ctx, String param) throws BOSException {
         return null;
     }
 
-    public void initConfig(Context ctx, String filePath) throws BOSException
-    {
+    public void initConfig(Context ctx, String filePath) throws BOSException {
         try {
             ServiceContext svcCtx = createServiceContext(new MetaDataPK("07e10c18-1f87-436b-9c4a-e9559d10f519"), new Object[]{ctx, filePath});
             invokeServiceBefore(svcCtx);
-              if(!svcCtx.invokeBreak()) {
-            _initConfig(ctx, filePath);
+            if (!svcCtx.invokeBreak()) {
+                _initConfig(ctx, filePath);
             }
             invokeServiceAfter(svcCtx);
         } catch (BOSException ex) {
@@ -77,228 +56,218 @@ public abstract class AbstractSYUtilsFacadeControllerBean extends AbstractBizCon
             super.cleanUpServiceState();
         }
     }
-    protected void _initConfig(Context ctx, String filePath) throws BOSException
-    {    	
+
+    protected void _initConfig(Context ctx, String filePath) throws BOSException {
         return;
     }
 
-    public LogInfoInfo log(Context ctx, LogInfoInfo logInfo) throws BOSException
-    {
+    public LogInfoInfo log(Context ctx, LogInfoInfo logInfo) throws BOSException {
         try {
             ServiceContext svcCtx = createServiceContext(new MetaDataPK("6a2dcdfa-a95c-41b9-b0de-ce8a20c951cd"), new Object[]{ctx, logInfo});
             invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            LogInfoInfo retValue = (LogInfoInfo)_log(ctx, logInfo);
-            svcCtx.setMethodReturnValue(retValue);
+            if (!svcCtx.invokeBreak()) {
+                LogInfoInfo retValue = (LogInfoInfo) _log(ctx, logInfo);
+                svcCtx.setMethodReturnValue(retValue);
             }
             invokeServiceAfter(svcCtx);
-            return (LogInfoInfo)svcCtx.getMethodReturnValue();
+            return (LogInfoInfo) svcCtx.getMethodReturnValue();
         } catch (BOSException ex) {
             throw ex;
         } finally {
             super.cleanUpServiceState();
         }
     }
-    protected LogInfoInfo _log(Context ctx, LogInfoInfo logInfo) throws BOSException
-    {    	
+
+    protected LogInfoInfo _log(Context ctx, LogInfoInfo logInfo) throws BOSException {
         return null;
     }
 
-    public Map getConfig(Context ctx) throws BOSException
-    {
+    public Map getConfig(Context ctx) throws BOSException {
         try {
             ServiceContext svcCtx = createServiceContext(new MetaDataPK("26946c76-c66f-44f2-b48c-6ebb7eecbf07"), new Object[]{ctx});
             invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            Map retValue = (Map)_getConfig(ctx);
-            svcCtx.setMethodReturnValue(retValue);
+            if (!svcCtx.invokeBreak()) {
+                Map retValue = (Map) _getConfig(ctx);
+                svcCtx.setMethodReturnValue(retValue);
             }
             invokeServiceAfter(svcCtx);
-            return (Map)svcCtx.getMethodReturnValue();
+            return (Map) svcCtx.getMethodReturnValue();
         } catch (BOSException ex) {
             throw ex;
         } finally {
             super.cleanUpServiceState();
         }
     }
-    protected Map _getConfig(Context ctx) throws BOSException
-    {    	
+
+    protected Map _getConfig(Context ctx) throws BOSException {
         return null;
     }
 
-    public String backTask(Context ctx, String url, String requestId, String osfServiceName, String backParam, TaskCatalogEnum catalog) throws BOSException
-    {
+    public String backTask(Context ctx, String url, String requestId, String osfServiceName, String backParam, TaskCatalogEnum catalog) throws BOSException {
         try {
             ServiceContext svcCtx = createServiceContext(new MetaDataPK("a0c9515d-4c19-4653-ae53-daca159c0ae6"), new Object[]{ctx, url, requestId, osfServiceName, backParam, catalog});
             invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            String retValue = (String)_backTask(ctx, url, requestId, osfServiceName, backParam, catalog);
-            svcCtx.setMethodReturnValue(retValue);
+            if (!svcCtx.invokeBreak()) {
+                String retValue = (String) _backTask(ctx, url, requestId, osfServiceName, backParam, catalog);
+                svcCtx.setMethodReturnValue(retValue);
             }
             invokeServiceAfter(svcCtx);
-            return (String)svcCtx.getMethodReturnValue();
+            return (String) svcCtx.getMethodReturnValue();
         } catch (BOSException ex) {
             throw ex;
         } finally {
             super.cleanUpServiceState();
         }
     }
-    protected String _backTask(Context ctx, String url, String requestId, String osfServiceName, String backParam, TaskCatalogEnum catalog) throws BOSException
-    {    	
+
+    protected String _backTask(Context ctx, String url, String requestId, String osfServiceName, String backParam, TaskCatalogEnum catalog) throws BOSException {
         return null;
     }
 
-    public String post(Context ctx, String url, String param) throws BOSException
-    {
+    public String post(Context ctx, String url, String param) throws BOSException {
         try {
             ServiceContext svcCtx = createServiceContext(new MetaDataPK("2465b20d-1c13-4be0-af13-8946a7bb8008"), new Object[]{ctx, url, param});
             invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            String retValue = (String)_post(ctx, url, param);
-            svcCtx.setMethodReturnValue(retValue);
+            if (!svcCtx.invokeBreak()) {
+                String retValue = (String) _post(ctx, url, param);
+                svcCtx.setMethodReturnValue(retValue);
             }
             invokeServiceAfter(svcCtx);
-            return (String)svcCtx.getMethodReturnValue();
+            return (String) svcCtx.getMethodReturnValue();
         } catch (BOSException ex) {
             throw ex;
         } finally {
             super.cleanUpServiceState();
         }
     }
-    protected String _post(Context ctx, String url, String param) throws BOSException
-    {    	
+
+    protected String _post(Context ctx, String url, String param) throws BOSException {
         return null;
     }
 
-    public String get(Context ctx, String url, String param) throws BOSException
-    {
+    public String get(Context ctx, String url, String param) throws BOSException {
         try {
             ServiceContext svcCtx = createServiceContext(new MetaDataPK("55ce7cc5-135c-4ad8-9568-397e0d5dd955"), new Object[]{ctx, url, param});
             invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            String retValue = (String)_get(ctx, url, param);
-            svcCtx.setMethodReturnValue(retValue);
+            if (!svcCtx.invokeBreak()) {
+                String retValue = (String) _get(ctx, url, param);
+                svcCtx.setMethodReturnValue(retValue);
             }
             invokeServiceAfter(svcCtx);
-            return (String)svcCtx.getMethodReturnValue();
+            return (String) svcCtx.getMethodReturnValue();
         } catch (BOSException ex) {
             throw ex;
         } finally {
             super.cleanUpServiceState();
         }
     }
-    protected String _get(Context ctx, String url, String param) throws BOSException
-    {    	
+
+    protected String _get(Context ctx, String url, String param) throws BOSException {
         return null;
     }
 
-    public String getSignature(Context ctx, Map propt, Map paramMap) throws BOSException
-    {
+    public String getSignature(Context ctx, Map propt, Map paramMap) throws BOSException {
         try {
             ServiceContext svcCtx = createServiceContext(new MetaDataPK("ba3d07d3-e3a6-44e0-ac20-e4ffccafd39f"), new Object[]{ctx, propt, paramMap});
             invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            String retValue = (String)_getSignature(ctx, propt, paramMap);
-            svcCtx.setMethodReturnValue(retValue);
+            if (!svcCtx.invokeBreak()) {
+                String retValue = (String) _getSignature(ctx, propt, paramMap);
+                svcCtx.setMethodReturnValue(retValue);
             }
             invokeServiceAfter(svcCtx);
-            return (String)svcCtx.getMethodReturnValue();
+            return (String) svcCtx.getMethodReturnValue();
         } catch (BOSException ex) {
             throw ex;
         } finally {
             super.cleanUpServiceState();
         }
     }
-    protected String _getSignature(Context ctx, Map propt, Map paramMap) throws BOSException
-    {    	
+
+    protected String _getSignature(Context ctx, Map propt, Map paramMap) throws BOSException {
         return null;
     }
 
-    public String addTask(Context ctx, String osfServiceName, String param, TaskCatalogEnum catalog, String taskPreId) throws BOSException
-    {
+    public String addTask(Context ctx, String osfServiceName, String param, TaskCatalogEnum catalog, String taskPreId) throws BOSException {
         try {
             ServiceContext svcCtx = createServiceContext(new MetaDataPK("5826e2e3-b708-4f0b-a02f-ba1ed94d22d7"), new Object[]{ctx, osfServiceName, param, catalog, taskPreId});
             invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            String retValue = (String)_addTask(ctx, osfServiceName, param, catalog, taskPreId);
-            svcCtx.setMethodReturnValue(retValue);
+            if (!svcCtx.invokeBreak()) {
+                String retValue = (String) _addTask(ctx, osfServiceName, param, catalog, taskPreId);
+                svcCtx.setMethodReturnValue(retValue);
             }
             invokeServiceAfter(svcCtx);
-            return (String)svcCtx.getMethodReturnValue();
+            return (String) svcCtx.getMethodReturnValue();
         } catch (BOSException ex) {
             throw ex;
         } finally {
             super.cleanUpServiceState();
         }
     }
-    protected String _addTask(Context ctx, String osfServiceName, String param, TaskCatalogEnum catalog, String taskPreId) throws BOSException
-    {    	
+
+    protected String _addTask(Context ctx, String osfServiceName, String param, TaskCatalogEnum catalog, String taskPreId) throws BOSException {
         return null;
     }
 
-    public boolean delTask(Context ctx, String taskId) throws BOSException
-    {
+    public boolean delTask(Context ctx, String taskId) throws BOSException {
         try {
             ServiceContext svcCtx = createServiceContext(new MetaDataPK("7d783833-2294-40ea-8188-5f5f929f3c1d"), new Object[]{ctx, taskId});
             invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            boolean retValue = (boolean)_delTask(ctx, taskId);
-            svcCtx.setMethodReturnValue(new Boolean(retValue));
+            if (!svcCtx.invokeBreak()) {
+                boolean retValue = (boolean) _delTask(ctx, taskId);
+                svcCtx.setMethodReturnValue(new Boolean(retValue));
             }
             invokeServiceAfter(svcCtx);
-            return ((Boolean)svcCtx.getMethodReturnValue()).booleanValue();
+            return ((Boolean) svcCtx.getMethodReturnValue()).booleanValue();
         } catch (BOSException ex) {
             throw ex;
         } finally {
             super.cleanUpServiceState();
         }
     }
-    protected boolean _delTask(Context ctx, String taskId) throws BOSException
-    {    	
+
+    protected boolean _delTask(Context ctx, String taskId) throws BOSException {
         return false;
     }
 
-    public Snowflake getSnowflake(Context ctx) throws BOSException
-    {
+    public Snowflake getSnowflake(Context ctx) throws BOSException {
         try {
             ServiceContext svcCtx = createServiceContext(new MetaDataPK("473ff46a-b823-43c1-a0a0-db07084a1e23"), new Object[]{ctx});
             invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            Snowflake retValue = (Snowflake)_getSnowflake(ctx);
-            svcCtx.setMethodReturnValue(retValue);
+            if (!svcCtx.invokeBreak()) {
+                Snowflake retValue = (Snowflake) _getSnowflake(ctx);
+                svcCtx.setMethodReturnValue(retValue);
             }
             invokeServiceAfter(svcCtx);
-            return (Snowflake)svcCtx.getMethodReturnValue();
+            return (Snowflake) svcCtx.getMethodReturnValue();
         } catch (BOSException ex) {
             throw ex;
         } finally {
             super.cleanUpServiceState();
         }
     }
-    protected Snowflake _getSnowflake(Context ctx) throws BOSException
-    {    	
+
+    protected Snowflake _getSnowflake(Context ctx) throws BOSException {
         return null;
     }
 
-    public String getBizNo(Context ctx) throws BOSException
-    {
+    public String getBizNo(Context ctx) throws BOSException {
         try {
             ServiceContext svcCtx = createServiceContext(new MetaDataPK("f02de36d-35a8-4c07-b62c-0bccb592d848"), new Object[]{ctx});
             invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            String retValue = (String)_getBizNo(ctx);
-            svcCtx.setMethodReturnValue(retValue);
+            if (!svcCtx.invokeBreak()) {
+                String retValue = (String) _getBizNo(ctx);
+                svcCtx.setMethodReturnValue(retValue);
             }
             invokeServiceAfter(svcCtx);
-            return (String)svcCtx.getMethodReturnValue();
+            return (String) svcCtx.getMethodReturnValue();
         } catch (BOSException ex) {
             throw ex;
         } finally {
             super.cleanUpServiceState();
         }
     }
-    protected String _getBizNo(Context ctx) throws BOSException
-    {    	
+
+    protected String _getBizNo(Context ctx) throws BOSException {
         return null;
     }
 

+ 103 - 110
src/com/kingdee/eas/custom/shuiyou/uitls/SYUtilsFacade.java

@@ -1,214 +1,207 @@
 package com.kingdee.eas.custom.shuiyou.uitls;
 
+import java.util.Map;
+import java.lang.String;
+import java.rmi.RemoteException;
+
 import com.kingdee.bos.framework.ejb.EJBRemoteException;
 import com.kingdee.bos.util.BOSObjectType;
-import java.rmi.RemoteException;
 import com.kingdee.bos.framework.AbstractBizCtrl;
-import com.kingdee.bos.orm.template.ORMObject;
-
 import com.kingdee.bos.Context;
-import com.kingdee.eas.custom.shuiyou.uitls.*;
 import com.kingdee.bos.BOSException;
-import java.util.Map;
 import com.kingdee.eas.custom.shuiyou.interfacelog.LogInfoInfo;
-import com.kingdee.eas.custom.shuiyou.interfaceiog.LogInfoInfo;
-import java.lang.String;
 import com.kingdee.eas.custom.shuiyou.task.TaskCatalogEnum;
-import com.kingdee.bos.framework.*;
 import cn.hutool.core.lang.Snowflake;
-import com.kingdee.bos.util.*;
 
-public class SYUtilsFacade extends AbstractBizCtrl implements ISYUtilsFacade
-{
-    public SYUtilsFacade()
-    {
+public class SYUtilsFacade extends AbstractBizCtrl implements ISYUtilsFacade {
+    public SYUtilsFacade() {
         super();
         registerInterface(ISYUtilsFacade.class, this);
     }
-    public SYUtilsFacade(Context ctx)
-    {
+
+    public SYUtilsFacade(Context ctx) {
         super(ctx);
         registerInterface(ISYUtilsFacade.class, this);
     }
-    public BOSObjectType getType()
-    {
+
+    public BOSObjectType getType() {
         return new BOSObjectType("A069618E");
     }
-    private SYUtilsFacadeController getController() throws BOSException
-    {
-        return (SYUtilsFacadeController)getBizController();
+
+    private SYUtilsFacadeController getController() throws BOSException {
+        return (SYUtilsFacadeController) getBizController();
     }
+
     /**
-     *签名-User defined method
-     *@param param 需要签名的参数
-     *@return
+     * 签名-User defined method
+     *
+     * @param param 需要签名的参数
+     * @return
      */
-    public String getSignature(String param) throws BOSException
-    {
+    public String getSignature(String param) throws BOSException {
         try {
             return getController().getSignature(getContext(), param);
-        }
-        catch(RemoteException err) {
+        } catch (RemoteException err) {
             throw new EJBRemoteException(err);
         }
     }
+
     /**
-     *初始化配置-User defined method
-     *@param filePath 配置文件地址
+     * 初始化配置-User defined method
+     *
+     * @param filePath 配置文件地址
      */
-    public void initConfig(String filePath) throws BOSException
-    {
+    public void initConfig(String filePath) throws BOSException {
         try {
             getController().initConfig(getContext(), filePath);
-        }
-        catch(RemoteException err) {
+        } catch (RemoteException err) {
             throw new EJBRemoteException(err);
         }
     }
+
     /**
-     *写入日志-User defined method
-     *@param logInfo 日志对象
-     *@return
+     * 写入日志-User defined method
+     *
+     * @param logInfo 日志对象
+     * @return
      */
-    public LogInfoInfo log(LogInfoInfo logInfo) throws BOSException
-    {
+    public LogInfoInfo log(LogInfoInfo logInfo) throws BOSException {
         try {
             return getController().log(getContext(), logInfo);
-        }
-        catch(RemoteException err) {
+        } catch (RemoteException err) {
             throw new EJBRemoteException(err);
         }
     }
+
     /**
-     *获取配置文件参数-User defined method
-     *@return
+     * 获取配置文件参数-User defined method
+     *
+     * @return
      */
-    public Map getConfig() throws BOSException
-    {
+    public Map getConfig() throws BOSException {
         try {
             return getController().getConfig(getContext());
-        }
-        catch(RemoteException err) {
+        } catch (RemoteException err) {
             throw new EJBRemoteException(err);
         }
     }
+
     /**
-     *[description]该任务会循环调用,直到返回成功状态[%description][invokedemo][%invokedemo][returndesc]任务id[%returndesc]-User defined method
-     *@param url 请求地址
-     *@param requestId 请求id
-     *@param osfServiceName 请求成功时回调
-     *@param backParam 回调osf服务时会一并当成参数传入
-     *@param catalog 任务类型
-     *@return
+     * [description]该任务会循环调用,直到返回成功状态[%description][invokedemo][%invokedemo][returndesc]任务id[%returndesc]-User defined method
+     *
+     * @param url            请求地址
+     * @param requestId      请求id
+     * @param osfServiceName 请求成功时回调
+     * @param backParam      回调osf服务时会一并当成参数传入
+     * @param catalog        任务类型
+     * @return
      */
-    public String backTask(String url, String requestId, String osfServiceName, String backParam, TaskCatalogEnum catalog) throws BOSException
-    {
+    public String backTask(String url, String requestId, String osfServiceName, String backParam, TaskCatalogEnum catalog) throws BOSException {
         try {
             return getController().backTask(getContext(), url, requestId, osfServiceName, backParam, catalog);
-        }
-        catch(RemoteException err) {
+        } catch (RemoteException err) {
             throw new EJBRemoteException(err);
         }
     }
+
     /**
-     *post请求-User defined method
-     *@param url url
-     *@param param jsonStr参数
-     *@return
+     * post请求-User defined method
+     *
+     * @param url   url
+     * @param param jsonStr参数
+     * @return
      */
-    public String post(String url, String param) throws BOSException
-    {
+    public String post(String url, String param) throws BOSException {
         try {
             return getController().post(getContext(), url, param);
-        }
-        catch(RemoteException err) {
+        } catch (RemoteException err) {
             throw new EJBRemoteException(err);
         }
     }
+
     /**
-     *get请求-User defined method
-     *@param url url
-     *@param param jsonStr参数
-     *@return
+     * get请求-User defined method
+     *
+     * @param url   url
+     * @param param jsonStr参数
+     * @return
      */
-    public String get(String url, String param) throws BOSException
-    {
+    public String get(String url, String param) throws BOSException {
         try {
             return getController().get(getContext(), url, param);
-        }
-        catch(RemoteException err) {
+        } catch (RemoteException err) {
             throw new EJBRemoteException(err);
         }
     }
+
     /**
-     *签名-User defined method
-     *@param propt 配置文件Map
-     *@param paramMap 参数Map
-     *@return
+     * 签名-User defined method
+     *
+     * @param propt    配置文件Map
+     * @param paramMap 参数Map
+     * @return
      */
-    public String getSignature(Map propt, Map paramMap) throws BOSException
-    {
+    public String getSignature(Map propt, Map paramMap) throws BOSException {
         try {
             return getController().getSignature(getContext(), propt, paramMap);
-        }
-        catch(RemoteException err) {
+        } catch (RemoteException err) {
             throw new EJBRemoteException(err);
         }
     }
+
     /**
-     *任务执行一次,不管成功失败-User defined method
-     *@param osfServiceName osf服务
-     *@param param 参数
-     *@param catalog 任务类型
-     *@param taskPreId 前置任务没有完成,任务不会执行。
-     *@return
+     * 任务执行一次,不管成功失败-User defined method
+     *
+     * @param osfServiceName osf服务
+     * @param param          参数
+     * @param catalog        任务类型
+     * @param taskPreId      前置任务没有完成,任务不会执行。
+     * @return
      */
-    public String addTask(String osfServiceName, String param, TaskCatalogEnum catalog, String taskPreId) throws BOSException
-    {
+    public String addTask(String osfServiceName, String param, TaskCatalogEnum catalog, String taskPreId) throws BOSException {
         try {
             return getController().addTask(getContext(), osfServiceName, param, catalog, taskPreId);
-        }
-        catch(RemoteException err) {
+        } catch (RemoteException err) {
             throw new EJBRemoteException(err);
         }
     }
+
     /**
-     *删除任务,如果该任务有前置任务或者后置任务,则前置任务或者后置任务也会被删除。-User defined method
-     *@param taskId 任务id
-     *@return
+     * 删除任务,如果该任务有前置任务或者后置任务,则前置任务或者后置任务也会被删除。-User defined method
+     *
+     * @param taskId 任务id
+     * @return
      */
-    public boolean delTask(String taskId) throws BOSException
-    {
+    public boolean delTask(String taskId) throws BOSException {
         try {
             return getController().delTask(getContext(), taskId);
-        }
-        catch(RemoteException err) {
+        } catch (RemoteException err) {
             throw new EJBRemoteException(err);
         }
     }
+
     /**
-     *获取全局的雪花对象-User defined method
-     *@return
+     * 获取全局的雪花对象-User defined method
+     *
+     * @return
      */
-    public Snowflake getSnowflake() throws BOSException
-    {
+    public Snowflake getSnowflake() throws BOSException {
         try {
             return getController().getSnowflake(getContext());
-        }
-        catch(RemoteException err) {
+        } catch (RemoteException err) {
             throw new EJBRemoteException(err);
         }
     }
+
     /**
-     *获取业务编码-User defined method
-     *@return
+     * 获取业务编码-User defined method
+     *
+     * @return
      */
-    public String getBizNo() throws BOSException
-    {
+    public String getBizNo() throws BOSException {
         try {
             return getController().getBizNo(getContext());
-        }
-        catch(RemoteException err) {
+        } catch (RemoteException err) {
             throw new EJBRemoteException(err);
         }
     }

+ 0 - 10
src/com/kingdee/eas/custom/shuiyou/uitls/SYUtilsFacadeController.java

@@ -1,22 +1,12 @@
 package com.kingdee.eas.custom.shuiyou.uitls;
 
 import com.kingdee.bos.BOSException;
-//import com.kingdee.bos.metadata.*;
-import com.kingdee.bos.framework.*;
-import com.kingdee.bos.util.*;
 import com.kingdee.bos.Context;
-
-import com.kingdee.bos.Context;
-import com.kingdee.bos.BOSException;
 import java.util.Map;
 import com.kingdee.eas.custom.shuiyou.interfacelog.LogInfoInfo;
-import com.kingdee.eas.custom.shuiyou.interfaceiog.LogInfoInfo;
 import java.lang.String;
 import com.kingdee.eas.custom.shuiyou.task.TaskCatalogEnum;
-import com.kingdee.bos.framework.*;
 import cn.hutool.core.lang.Snowflake;
-import com.kingdee.bos.util.*;
-
 import java.rmi.RemoteException;
 import com.kingdee.bos.framework.ejb.BizController;