---
# System prepended metadata

title: 新增交辦事項api
tags: [交辦事項]

---

 # 新增交辦事項api
*  交辦事項分為兩種，一種是部門一種是顧客的，新增時都會入進HFD_TODO_LIST
*  用前端帶來的ci_ser是否為空來判斷，此交辦事項是部門還是顧客的
*  same_order 代表 同訂房卡住客批次新增  有打勾是Y 沒勾是N
 ###### tags:  `交辦事項`
 ```jsonld=
 {
  "prg_id": "PMS0210071",
  "socket_id": "uAW3dsoeyF-kRoksAAAM",
  "athena_id": 1,
  "ins_usr": "cio",
  "session_id": 3284131,
  "func_id": "0200",
  "params": {},
  "locale": "zh_TW",
  "trans_log_id": "20200213083959413",
  "mac": "",
  "comp_cod": "ZZATHENA",
  "hotel_cod": "01",
  "server_ip": "",
  "reve_code": "PMS0210071",
  "client_ip": "",
  "upd_usr": "cio",
  "user": "cio",
  "table": {
    "hfd_todo_list" :
    [
      {
        "action_cod": "C",
        "athena_id": 1,
        "hotel_cod": "01",
        "ci_ser": "",
        "begin_dat" : "2020/03/04",
        "end_dat" :"2020/03/20",
        "dept_cod" : "102",
        "todo_rmk" : "交辦事項是一定要做的",
        "same_order" : "N",
        "ins_usr": "cio",
        "upd_usr": "cio"
      }
    ]
  },
  "event_time": "2020-02-13T08:39:59+08:00"
}
 ```