Heyuan 7 ヶ月 前
コミット
b0e804e636

+ 26 - 4
src/com/kingdee/eas/custom/synctask/AbstractSyncTranForOAFacadeControllerBean.java

@@ -102,13 +102,13 @@ public abstract class AbstractSyncTranForOAFacadeControllerBean extends Abstract
         return;
     }
 
-    public void syncPersonFromOA(Context ctx) throws BOSException, EASBizException
+    public void syncPersonFromOAByNumber(Context ctx, String personNumbers) throws BOSException, EASBizException
     {
         try {
-            ServiceContext svcCtx = createServiceContext(new MetaDataPK("ceb5e3c0-4de8-4ed0-b36b-e22c8f067e41"), new Object[]{ctx});
+            ServiceContext svcCtx = createServiceContext(new MetaDataPK("ceb5e3c0-4de8-4ed0-b36b-e22c8f067e41"), new Object[]{ctx, personNumbers});
             invokeServiceBefore(svcCtx);
               if(!svcCtx.invokeBreak()) {
-            _syncPersonFromOA(ctx);
+            _syncPersonFromOAByNumber(ctx, personNumbers);
             }
             invokeServiceAfter(svcCtx);
         } catch (BOSException ex) {
@@ -119,7 +119,29 @@ public abstract class AbstractSyncTranForOAFacadeControllerBean extends Abstract
             super.cleanUpServiceState();
         }
     }
-    protected void _syncPersonFromOA(Context ctx) throws BOSException, EASBizException
+    protected void _syncPersonFromOAByNumber(Context ctx, String personNumbers) throws BOSException, EASBizException
+    {    	
+        return;
+    }
+
+    public void syncPersonFromOAById(Context ctx, String personIds) throws BOSException, EASBizException
+    {
+        try {
+            ServiceContext svcCtx = createServiceContext(new MetaDataPK("e26f3952-beb1-44cd-9aa2-9948deaa4599"), new Object[]{ctx, personIds});
+            invokeServiceBefore(svcCtx);
+              if(!svcCtx.invokeBreak()) {
+            _syncPersonFromOAById(ctx, personIds);
+            }
+            invokeServiceAfter(svcCtx);
+        } catch (BOSException ex) {
+            throw ex;
+        } catch (EASBizException ex0) {
+            throw ex0;
+        } finally {
+            super.cleanUpServiceState();
+        }
+    }
+    protected void _syncPersonFromOAById(Context ctx, String personIds) throws BOSException, EASBizException
     {    	
         return;
     }