Commit 86db6e74fa392593ec0163c2c596a2f1eb3f7ef7
1 parent
6dee84b0
Exists in
master
and in
2 other branches
dev-wb
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
src/test/java/com/taover/repository/test/TestAutoconfigure.java
... | ... | @@ -3,6 +3,7 @@ package com.taover.repository.test; |
3 | 3 | import java.util.List; |
4 | 4 | import java.util.Map; |
5 | 5 | |
6 | +import org.apache.shardingsphere.infra.executor.sql.ExecutorConstant; | |
6 | 7 | import org.springframework.boot.SpringApplication; |
7 | 8 | import org.springframework.boot.autoconfigure.SpringBootApplication; |
8 | 9 | import org.springframework.context.ConfigurableApplicationContext; |
... | ... | @@ -24,10 +25,10 @@ public class TestAutoconfigure { |
24 | 25 | // System.out.println(jdbcTemplate.queryForList("select * from wxorder_order limit 1", 1L)); |
25 | 26 | // System.out.println(jdbcTemplate.queryForList("select * from wxorder_order limit 1", 2L)); |
26 | 27 | // System.out.println(jdbcTemplate.queryForList("select * from wxorder_order_express limit 1", 1L)); |
27 | - | |
28 | + | |
28 | 29 | String sql = " SELECT wo.customer_network_name as customerNetworkName,wo.order_sn AS orderSn, wog.`goods_name` AS goodsName, wog.`sku_name` AS skuName, wog.`goods_number` AS saleNumber," |
29 | 30 | // woe.order_goods_id woe.order_goods_origin_id |
30 | - + " (SELECT sum(woe.`goods_number`) from `wxorder_order_express` as woe WHERE woe.order_goods_id = wog.id and woe.tenant_id=16)as deliveryGoodsNumber, " | |
31 | + //+ " (SELECT woe.`goods_number` from `wxorder_order_express` as woe WHERE woe.order_goods_id = wog.id and woe.tenant_id=16) as deliveryGoodsNumber, " | |
31 | 32 | + " ww.name as wareName, ww.manager_nickname as wareManager, " |
32 | 33 | + " wc.name as channelName, " |
33 | 34 | + " wog.goods_base_sku_price as costSinglePrice, " | ... | ... |
src/test/resources/application.properties
... | ... | @@ -13,7 +13,7 @@ spring.gson.serialize-nulls=true |
13 | 13 | spring.mvc.dispatch-options-request=true |
14 | 14 | |
15 | 15 | # shardingspere |
16 | -spring.shardingsphere.datasource.names=ds0 | |
16 | +spring.shardingsphere.datasource.names=ds1 | |
17 | 17 | spring.shardingsphere.datasource.common.type=com.alibaba.druid.pool.DruidDataSource |
18 | 18 | spring.shardingsphere.datasource.common.driver-class-name=com.mysql.cj.jdbc.Driver |
19 | 19 | spring.shardingsphere.datasource.ds0.url=jdbc:mysql://rdsifmezqifmezqo.mysql.rds.aliyuncs.com:3306/bzyun_wxorder?characterEncoding=UTF-8 | ... | ... |