CzRger 1 年間 前
コミット
cecfe6fdbd
共有2 個のファイルを変更した3 個の追加0 個の削除を含む
  1. 1 0
      ship-test/entity/source-entity.js
  2. 2 0
      ship-test/service/source-service.js

+ 1 - 0
ship-test/entity/source-entity.js

@@ -15,5 +15,6 @@ export default class SourceEntity {
     this.wsDataFlag = isValue(obj?.wsDataFlag) ? obj.wsDataFlag : null
     this.historyWsUrl = isValue(obj?.historyWsUrl) ? obj.historyWsUrl : null
     this.historyWsDataFlag = isValue(obj?.historyWsDataFlag) ? obj.historyWsDataFlag : null
+    this.historyWsOtherParams = isValue(obj?.historyWsOtherParams) ? obj.historyWsOtherParams : null
   }
 }

+ 2 - 0
ship-test/service/source-service.js

@@ -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)) {