---
# System prepended metadata

title: 接送服務修改 api
tags: [接送服務]

---

# 接送服務修改 api
###### tags:  `接送服務`
* 前端
規則同新增api
- [ ] 開起畫面時，要lock，hfd_pickup_dt table，lock失敗時畫面唯讀
- [x] ci_ser 唯讀
- [x] 判斷能不能修改7.5.5.2，畫面唯讀
(1)	訂房卡明細狀態不為N:正常、I:今日到達、O:已到或C:退房
(2)	接送日期小於滾房租日schedule_dat < rent_dat
- [x] 畫面上方的grid，利用ci_ser抓取資料，呈現畫面
- [x] 若從訂房明細住客tabpage，要傳pageFrom & tmpOrderAppraise_key_nos 兩個參數
* 後端
規則同新增api
- [x] 判斷能不能修改7.5.5.2 
(1)	訂房卡明細狀態不為N:正常、I:今日到達、O:已到或C:退房
(2)	接送日期小於滾房租日schedule_dat < rent_dat
- [x] 若有變動自動入帳，且符合訂房自動入帳時入的service_Tr 及重算房價 
- [x] 若從訂房明細住客tabpage，要拿pageFrom & tmpOrderAppraise_key_nos 兩個參數。抓 tmpOrderAppraise 該筆資料，並重算房價。

```json=
    {
        "prg_id" : "PMS0210081",
        "socket_id" : "p6m5HF8u85NACf-0AAAO",
        "athena_id" : 25,
        "ins_usr" : "cio",
        "session_id" : 36729501,
        "func_id" : "0400",
        "params" : {},
        "locale" : "zh_TW",
        "trans_log_id" : "20200227185833585",
        "mac" : "",
        "comp_cod" : "ZZATHENA",
        "hotel_cod" : "01",
        "server_ip" : "",
        "reve_code" : "PMS0210081",
        "client_ip" : "",
        "upd_usr" : "cio",
        "user" : "cio",
        "pageFrom" : "PMS0110041"//只有訂房明細要傳
        "tmpOrderAppraise_key_nos" : 1234//只有訂房明細要傳
        "table" : {
            "hfd_pickup_dt" : [ 
                {
                    "action_cod" : "U",
                    "ci_ser" : "20191104000153",
                    "pickup_typ" : "L",
                    "schedule_dat" : "2019/11/04",
                    "schedule_nos" : "HUN",
                    "schedule_tim" : "1722",
                    "spot" : "天空競技場",
                    "atten_nam" : "小傑",
                    "tel1_nos" : "0911222333",
                    "adult_qnt" : "1",
                    "child_qnt" : "0",
                    "appraise_ins" : "N",
                    "appraise_amt" : "0",
                    "remark1" : "愛的橡膠",
                    "upd_usr" : "cio",
                    "ins_usr" : "cio",
                    "condition":[
                       {
                          "field" : "athena_id",
                          "value" : "25",
                          "operator" : "equal"
                       },
                       {
                          "field" : "hotel_cod",
                          "value" : "01",
                          "operator" : "equal"
                       },
                       {
                          "field" : "key_nos",
                          "value" : "13",
                          "operator" : "equal"
                       }
                    ]
                }
            ]
        },
        "event_time" : "2020-02-27T18:58:31+08:00"
    }
```