This commit is contained in:
mcy
2018-10-31 16:55:48 +08:00
parent 2a2977eca7
commit a4856b9a73
8 changed files with 227 additions and 81 deletions

View File

@@ -10,6 +10,8 @@ esMapping:
# left join (select user_id, group_concat(label,',') as labels from user_label
# group by user_id) c on c.user_id=a.id"
# sql: "select id, name, c_time from user "
sql: "select id, concat(name, '_') as name, c_time from user "
# sql: "select id, concat(name, '_') as name, c_time from user "
sql: "select a.id, a.name, a.role_id, b.role_name, a.c_time from user a
left join role b on b.id=a.role_id"
commitBatch: 3000
etlCondition: "where a.c_time>='{0}' or b.c_time>='{0}' or c.c_time>='{0}'"