|
@@ -101,6 +101,7 @@ const SourceService = {
|
|
|
['ws_data_flag', sourceEntity.wsDataFlag],
|
|
|
['history_ws_url', sourceEntity.historyWsUrl],
|
|
|
['history_ws_data_flag', sourceEntity.historyWsDataFlag],
|
|
|
+ ['history_ws_other_params', sourceEntity.historyWsOtherParams],
|
|
|
]
|
|
|
const sql = `INSERT INTO ship_test_source (${values.map(v => v[0]).join(',')}) VALUES (${values.map(v => '?').join(',')})`
|
|
|
const sameValid = await SourceService.queryBy({name: sourceEntity.name})
|
|
@@ -128,6 +129,7 @@ const SourceService = {
|
|
|
['ws_data_flag', sourceEntity.wsDataFlag],
|
|
|
['history_ws_url', sourceEntity.historyWsUrl],
|
|
|
['history_ws_data_flag', sourceEntity.historyWsDataFlag],
|
|
|
+ ['history_ws_other_params', sourceEntity.historyWsOtherParams],
|
|
|
]
|
|
|
let sql = `UPDATE ship_test_source SET ${values.map(v => `${v[0]} = ?`).join(',')}`
|
|
|
if (!isValue(sourceEntity.id)) {
|