|
@@ -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);
|
|
|
|