Commit 56f214da by zhouhaibao

[+]代码修复

1 parent cf6855ab
......@@ -54,6 +54,9 @@ public class SopDataSource {
return id;
}
@Column(name = "data_source_id")
private String dataSourceId;
/**
* @param id
*/
......@@ -172,4 +175,12 @@ public class SopDataSource {
public void setDbPort(Integer dbPort) {
this.dbPort = dbPort;
}
public String getDataSourceId() {
return dataSourceId;
}
public void setDataSourceId(String dataSourceId) {
this.dataSourceId = dataSourceId;
}
}
\ No newline at end of file
......@@ -13,6 +13,7 @@
<result column="db_pwd" jdbcType="VARCHAR" property="dbPwd" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="db_name" jdbcType="VARCHAR" property="dbName" />
<result column="data_source_id" jdbcType="VARCHAR" property="dataSourceId" />
</resultMap>
<select id="findByDataSourceId" resultMap="BaseResultMap"
parameterType="java.lang.String">
......
......@@ -47,10 +47,9 @@ public class TestApplication {
@Test
public void test() throws SQLException {
SopDataSource byId = sopDataSourceService.getById(1);
SopDataSource byId = sopDataSourceService.findByDataSourceId("SOP_CDP");
SopBizAdapter mcgBizAdapter = new FlowDataAdapterImpl(byId);
List<Map<String, Object>> maps = mcgBizAdapter.tableQuery("SELECT * FROM aa_bb");
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'");
System.out.println(maps);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!