Forráskód Böngészése

销售订单单证 同步账套903

liuchaohui 2 éve
szülő
commit
511610786b

+ 7 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/documents/orderData/service/impl/SyOrderDataServiceImpl.java

@@ -12,6 +12,7 @@ import org.jeecg.modules.documents.orderData.service.ISyOrderDataService;
 import org.jeecg.modules.openApi.entity.DxpDataPlan;
 import org.jeecg.modules.openApi.service.IDxpDataPlanService;
 import org.jeecg.modules.openApi.service.ISenYuDataSourceOne;
+import org.jeecg.modules.openApi.service.ISenYuDataSourceThree;
 import org.jeecg.modules.openApi.service.ISenYuDataSourceTwo;
 import org.jeecg.modules.system.util.JsonChangeUtils;
 import org.springframework.beans.BeansException;
@@ -48,6 +49,7 @@ public class SyOrderDataServiceImpl extends ServiceImpl<SyOrderDataMapper, SyOrd
     //数据源one
     private static ISenYuDataSourceOne senYuDataSourceOne;
     private static ISenYuDataSourceTwo senYuDataSourceTwo;
+    private static ISenYuDataSourceThree senYuDataSourceThree;
 
     @Override
     public void doQuerySyOrder() {
@@ -170,6 +172,8 @@ public class SyOrderDataServiceImpl extends ServiceImpl<SyOrderDataMapper, SyOrd
                     list = senYuDataSourceOne.queryForList(sql);
                 }else if(pkorgValue[0].equals("two")){
                     list = senYuDataSourceTwo.queryForList(sql);
+                }else if(pkorgValue[0].equals("three")){
+                    list = senYuDataSourceThree.queryForList(sql);
                 }
 
 
@@ -224,6 +228,8 @@ public class SyOrderDataServiceImpl extends ServiceImpl<SyOrderDataMapper, SyOrd
                     listSon = senYuDataSourceOne.queryForList(sql);
                 }else if(sy.getAccount().equals("902")){
                     listSon = senYuDataSourceTwo.queryForList(sql);
+                }else if(sy.getAccount().equals("903")){
+                    listSon = senYuDataSourceThree.queryForList(sql);
                 }
                 List<JSONObject> jianSon = JsonChangeUtils.toJSONObject(listSon);
                 for (JSONObject Object:jianSon) {
@@ -246,6 +252,7 @@ public class SyOrderDataServiceImpl extends ServiceImpl<SyOrderDataMapper, SyOrd
         this.dxpDataPlanService = applicationContext.getBean(IDxpDataPlanService.class);
         this.senYuDataSourceOne = applicationContext.getBean(ISenYuDataSourceOne.class);
         this.senYuDataSourceTwo = applicationContext.getBean(ISenYuDataSourceTwo.class);
+        this.senYuDataSourceThree = applicationContext.getBean(ISenYuDataSourceThree.class);
         this.syOrderDataItemService = applicationContext.getBean(SyOrderDataItemServiceImpl.class);
         this.syOrderDataMapper = applicationContext.getBean(SyOrderDataMapper.class);