Compare commits
22 Commits
e82455a220
...
d43effe612
| Author | SHA1 | Date | |
|---|---|---|---|
| d43effe612 | |||
| a10b16a0ff | |||
| a277fe22a6 | |||
| 836e42625e | |||
| 69c01bc62b | |||
| bd62efca3f | |||
| ee019d3c0f | |||
| 80fa2de819 | |||
| 94b15ef412 | |||
| 4e28782d59 | |||
| 615eac3bfe | |||
| e24920acf1 | |||
| 1c562c134c | |||
| c6c38332d9 | |||
| f51b27dc7c | |||
| a6c6cf2427 | |||
| 373dc390fa | |||
| 2ed1129fe4 | |||
| ce4c23eff8 | |||
| 9f4ef1ab94 | |||
| c800811bed | |||
| 235fd9b6e1 |
@@ -6,11 +6,9 @@ spring:
|
||||
druid:
|
||||
# 主库数据源
|
||||
master:
|
||||
# url: jdbc:mysql://192.168.166.71:3306/behaviortreedb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||
url: jdbc:mysql://localhost:3306/autosolution_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||
url: jdbc:mysql://127.0.0.1:3306/autosolution_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||
username: root
|
||||
# password: 123456
|
||||
password: 1234
|
||||
password: 123456
|
||||
# 从库数据源
|
||||
slave:
|
||||
# 从数据源开关/默认关闭
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
</resultMap>
|
||||
<select id="findComponentsByPlatformId" resultMap="VPlatformComponentMap">
|
||||
SELECT * FROM platform_component
|
||||
WHERE platform_id=#{platformId}
|
||||
WHERE platform_id=#{platformId} AND platform_component.type = "comm"
|
||||
</select>
|
||||
|
||||
<resultMap id="VPBasicPlatformMap" type="com.solution.rule.domain.BasicPlatform">
|
||||
@@ -106,9 +106,18 @@
|
||||
</resultMap>
|
||||
<select id="findPlatformComponents" resultMap="VPlatformMap"
|
||||
parameterType="java.lang.Integer">
|
||||
SELECT DISTINCT
|
||||
p.*,
|
||||
pc.*
|
||||
<!-- SELECT DISTINCT-->
|
||||
<!-- p.*,-->
|
||||
<!-- pc.*-->
|
||||
<!-- FROM platform p-->
|
||||
<!-- LEFT JOIN platform_component pc ON p.id = pc.platform_id-->
|
||||
<!-- WHERE pc.type = 'comm'-->
|
||||
<!-- AND p.scenario_id = #{scenarioId}-->
|
||||
<!-- ORDER BY p.name,pc.name-->
|
||||
SELECT
|
||||
p.id,
|
||||
p.name,
|
||||
p.description
|
||||
FROM platform p
|
||||
LEFT JOIN platform_component pc ON p.id = pc.platform_id
|
||||
WHERE pc.type = 'comm'
|
||||
|
||||
Reference in New Issue
Block a user