110 lines
4.7 KiB
JSON
110 lines
4.7 KiB
JSON
{
|
|
"job": {
|
|
"content": [
|
|
{
|
|
"reader": {
|
|
"name": "mysqlreader",
|
|
"parameter": {
|
|
"column": [
|
|
"id",
|
|
"equipment_id",
|
|
"connector_sn",
|
|
"connector_short_sn",
|
|
"connector_no",
|
|
"connector_name",
|
|
"connector_type",
|
|
"voltage_upper_limits",
|
|
"voltage_lower_limits",
|
|
"current",
|
|
"power",
|
|
"parkno",
|
|
"appointment_id",
|
|
"appointment_user_id",
|
|
"open_lock_user_id",
|
|
"detection_type",
|
|
"is_ground_lock",
|
|
"is_ground_lock_msg",
|
|
"is_geomagnetic",
|
|
"is_geomagnetic_msg",
|
|
"is_appointment",
|
|
"is_appointment_msg",
|
|
"auto_open_lock_time",
|
|
"create_time",
|
|
"update_time"
|
|
],
|
|
"connection": [
|
|
{
|
|
"jdbcUrl": [
|
|
"${src_jdbc}"
|
|
],
|
|
"querySql": [
|
|
"SELECT `id`, `equipment_id`, `connector_sn`, `connector_short_sn`, `connector_no`, `connector_name`, `connector_type`, `voltage_upper_limits`, `voltage_lower_limits`, `current`, `power`, `parkno`, `appointment_id`, `appointment_user_id`, `open_lock_user_id`, `detection_type`, `is_ground_lock`, `is_ground_lock_msg`, `is_geomagnetic`, `is_geomagnetic_msg`, `is_appointment`, `is_appointment_msg`, `auto_open_lock_time`, `create_time`, `update_time` FROM `t_connector` ORDER BY id DESC LIMIT 10000"
|
|
]
|
|
}
|
|
],
|
|
"username": "${src_user}",
|
|
"password": "${src_pwd}"
|
|
}
|
|
},
|
|
"writer": {
|
|
"name": "doriswriter",
|
|
"parameter": {
|
|
"loadUrl": [
|
|
"${dest_load_url}"
|
|
],
|
|
"column": [
|
|
"id",
|
|
"equipment_id",
|
|
"connector_sn",
|
|
"connector_short_sn",
|
|
"connector_no",
|
|
"connector_name",
|
|
"connector_type",
|
|
"voltage_upper_limits",
|
|
"voltage_lower_limits",
|
|
"current",
|
|
"power",
|
|
"parkno",
|
|
"appointment_id",
|
|
"appointment_user_id",
|
|
"open_lock_user_id",
|
|
"detection_type",
|
|
"is_ground_lock",
|
|
"is_ground_lock_msg",
|
|
"is_geomagnetic",
|
|
"is_geomagnetic_msg",
|
|
"is_appointment",
|
|
"is_appointment_msg",
|
|
"auto_open_lock_time",
|
|
"create_time",
|
|
"update_time"
|
|
],
|
|
"username": "${dest_user}",
|
|
"password": "${dest_pwd}",
|
|
"postSql": [],
|
|
"preSql": [],
|
|
"flushInterval": 30000,
|
|
"connection": [
|
|
{
|
|
"jdbcUrl": "${dest_jdbc}",
|
|
"selectedDatabase": "yltcharge",
|
|
"table": [
|
|
"t_connector"
|
|
]
|
|
}
|
|
],
|
|
"loadProps": {
|
|
"format": "json",
|
|
"strip_outer_array": true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"setting": {
|
|
"speed": {
|
|
"channel": "1"
|
|
}
|
|
}
|
|
}
|
|
} |