# 住客歷史備註 api
###### tags: `住客歷史`
* 前端
住客歷史新增備註時,若是能跨館別新增一定要是同個資料庫(避免key值重複)
* 後端
新增時先取 seq_nos 的最大值然後+1
```json=
{
"prg_id" : "PMS0210011",
"socket_id" : "p6m5HF8u85NACf-0AAAO",
"athena_id" : 25,
"ins_usr" : "cio",
"session_id" : 36729501,
"func_id" : "1101",
"params" : {},
"locale" : "zh_TW",
"trans_log_id" : "20200227185833585",
"mac" : "",
"comp_cod" : "ZZATHENA",
"hotel_cod" : "01",
"server_ip" : "",
"reve_code" : "PMS0210011",
"client_ip" : "",
"upd_usr" : "cio",
"user" : "cio",
"table" : {
"ghist_note_dt" : [
{
"action_cod" : "C",
"athena_id" : "25",
"gcust_cod" : "HFD000000000009501",
"hotel_cod" : "01",
"seq_nos" : "1",
"request_rmk" : "住客歷史備註測試",
"upd_usr" : "cio",
"ins_usr" : "cio"
},
{
"action_cod" : "U",
"request_rmk" : "送我一朵玫瑰花",
"condition" : [
{
"field" : "athena_id",
"value" : "1",
"operator" : "equal"
},
{
"field" : "hotel_cod",
"value" : "01",
"operator" : "equal"
},
{
"field" : "gcust_cod",
"value" : "HFD000000000009501",
"operator" : "equal"
},
{
"field" : "seq_nos",
"value" : "2",
"operator" : "equal"
}
],
"upd_usr" : "cio",
"ins_usr" : "cio"
},
{
"action_cod" : "D",
"condition" : [
{
"field" : "athena_id",
"value" : "1",
"operator" : "equal"
},
{
"field" : "hotel_cod",
"value" : "01",
"operator" : "equal"
},
{
"field" : "gcust_cod",
"value" : "HFD000000000009501",
"operator" : "equal"
},
{
"field" : "seq_nos",
"value" : "2",
"operator" : "equal"
}
],
"upd_usr" : "cio",
"ins_usr" : "cio"
}
]
},
"event_time" : "2020-02-27T18:58:31+08:00"
}
```