master
huanghai 5 years ago
parent 3f751e41d4
commit 3cd22d01f2

@ -38,6 +38,7 @@ var IncrSqlDict = []tableStruct{
{TableName: "t_base_class", PrimaryKey: "class_id", DataSource: "org_class"},
{TableName: "t_base_teacher", PrimaryKey: "teacher_id", DataSource: "user_teacher"},
{TableName: "t_base_student", PrimaryKey: "student_id", DataSource: "user_student"},
{TableName: "t_sys_loginperson_log", PrimaryKey: "id", DataSource: "log_login"},
}
// 全量数据上报

@ -0,0 +1,10 @@
select t1.id,identity_id,t1.person_id,t1.login_name,t1.ip_address,
DATE_FORMAT(t1.`login_time`,'%Y/%m/%d %H:%i:%s') AS `login_time`,
t1.province_code,
t1.city_code,t1.district_code,t1.bureau_id,
DATE_FORMAT(t1.`last_updated_time`,'%Y/%m/%d %H:%i:%s') AS `last_updated_time`,
t1.login_state,
0 as del_flag
from t_sys_loginperson_log as t1
Loading…
Cancel
Save