Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-process-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 56f214da
authored
Sep 21, 2023
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]代码修复
1 parent
cf6855ab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
platform-process-api/src/main/java/cn/com/glsx/process/modules/entity/SopDataSource.java
platform-process/src/main/resources/mapper/SopDataSourceMapper.xml
platform-process/src/test/java/cn/com/glsx/test/TestApplication.java
platform-process-api/src/main/java/cn/com/glsx/process/modules/entity/SopDataSource.java
View file @
56f214d
...
@@ -54,6 +54,9 @@ public class SopDataSource {
...
@@ -54,6 +54,9 @@ public class SopDataSource {
return
id
;
return
id
;
}
}
@Column
(
name
=
"data_source_id"
)
private
String
dataSourceId
;
/**
/**
* @param id
* @param id
*/
*/
...
@@ -172,4 +175,12 @@ public class SopDataSource {
...
@@ -172,4 +175,12 @@ public class SopDataSource {
public
void
setDbPort
(
Integer
dbPort
)
{
public
void
setDbPort
(
Integer
dbPort
)
{
this
.
dbPort
=
dbPort
;
this
.
dbPort
=
dbPort
;
}
}
public
String
getDataSourceId
()
{
return
dataSourceId
;
}
public
void
setDataSourceId
(
String
dataSourceId
)
{
this
.
dataSourceId
=
dataSourceId
;
}
}
}
\ No newline at end of file
\ No newline at end of file
platform-process/src/main/resources/mapper/SopDataSourceMapper.xml
View file @
56f214d
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
<result
column=
"db_pwd"
jdbcType=
"VARCHAR"
property=
"dbPwd"
/>
<result
column=
"db_pwd"
jdbcType=
"VARCHAR"
property=
"dbPwd"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"db_name"
jdbcType=
"VARCHAR"
property=
"dbName"
/>
<result
column=
"db_name"
jdbcType=
"VARCHAR"
property=
"dbName"
/>
<result
column=
"data_source_id"
jdbcType=
"VARCHAR"
property=
"dataSourceId"
/>
</resultMap>
</resultMap>
<select
id=
"findByDataSourceId"
resultMap=
"BaseResultMap"
<select
id=
"findByDataSourceId"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
parameterType=
"java.lang.String"
>
...
...
platform-process/src/test/java/cn/com/glsx/test/TestApplication.java
View file @
56f214d
...
@@ -47,10 +47,9 @@ public class TestApplication {
...
@@ -47,10 +47,9 @@ public class TestApplication {
@Test
@Test
public
void
test
()
throws
SQLException
{
public
void
test
()
throws
SQLException
{
SopDataSource
byId
=
sopDataSourceService
.
getById
(
1
);
SopDataSource
byId
=
sopDataSourceService
.
findByDataSourceId
(
"SOP_CDP"
);
SopBizAdapter
mcgBizAdapter
=
new
FlowDataAdapterImpl
(
byId
);
SopBizAdapter
mcgBizAdapter
=
new
FlowDataAdapterImpl
(
byId
);
List
<
Map
<
String
,
Object
>>
maps
=
mcgBizAdapter
.
tableQuery
(
"SELECT c.org_id, c.one_id, c.customer_name, c.customer_phone, j.sop_journey_id, j.sop_journey_enter_time, j.sop_journey_stage, j.sop_journey_stage_enter_time FROM `cdp_customer_sop_journey` j INNER JOIN cdp_customer c ON j.one_id = c.one_id AND j.org_id = c.org_id WHERE j.sop_journey_id='xblc'"
);
List
<
Map
<
String
,
Object
>>
maps
=
mcgBizAdapter
.
tableQuery
(
"SELECT * FROM aa_bb"
);
System
.
out
.
println
(
maps
);
System
.
out
.
println
(
maps
);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment