# 人事參數

查詢人事相關的參數代碼，包括：職位代碼查詢、職等代碼查詢、職級代碼查詢等。

## 取得職等代碼

> \`\`\`\
> grade = {\
> &#x20; "GRADE\_ID": number,         //職等\_ID\
> &#x20; "CO\_ID": number,            //公司\_ID\
> &#x20; "GRADE\_CODE": string,       //職等代碼\
> &#x20; "GRADE\_NAME": string,       //職等名稱\
> &#x20; "GRADE\_NAME\_JSON": boject,  //職等名稱\_JSON\
> &#x20; "IS\_ACT": number,           //使用狀態\
> &#x20; "SORT\_ORDER": number,       //排序\
> },\
> \`\`\`<br>

````json
{"openapi":"3.0.0","tags":[{"name":"人事參數","description":"查詢人事相關的參數代碼，包括：職位代碼查詢、職等代碼查詢、職級代碼查詢等。"}],"servers":[{"url":"https://104demotest-api-server.hrmax.104.com.tw"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"401":{"description":"認證失敗 (請更新 accessToken 再試一次)"},"403":{"description":"權限不足"},"440":{"description":"參數錯誤 (請檢查 parameters 或 request body 的欄位、格式是否完整及正確)"},"500":{"description":"系統異常 `{ code: 500, msg: string }`"}}},"paths":{"/api/ed/grade":{"post":{"tags":["人事參數"],"summary":"取得職等代碼","description":"```\ngrade = {\n  \"GRADE_ID\": number,         //職等_ID\n  \"CO_ID\": number,            //公司_ID\n  \"GRADE_CODE\": string,       //職等代碼\n  \"GRADE_NAME\": string,       //職等名稱\n  \"GRADE_NAME_JSON\": boject,  //職等名稱_JSON\n  \"IS_ACT\": number,           //使用狀態\n  \"SORT_ORDER\": number,       //排序\n},\n```\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["CO_ID"],"properties":{"CO_ID":{"type":"integer","description":"公司ID"}}}}}},"responses":{"200":{"description":"成功\n```\n{\n  code: 200,\n  data: [grade, grade, ...],\n}\n```\n"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"440":{"$ref":"#/components/responses/440"},"500":{"$ref":"#/components/responses/500"}}}}}}
````

## 取得職級代碼

> \`\`\`\
> level = {\
> &#x20; "LEVEL\_ID": number,         //職級\_ID\
> &#x20; "CO\_ID": number,            //公司\_ID\
> &#x20; "GRADE\_ID": number,         //職等\_ID\
> &#x20; "GRADE\_CODE": string,       //職等代碼\
> &#x20; "GRADE\_NAME": string,       //職等名稱\
> &#x20; "GRADE\_NAME\_JSON": boject,  //職等名稱\_JSON\
> &#x20; "LEVEL\_CODE": string,       //職級代碼\
> &#x20; "LEVEL\_NAME": string,       //職級名稱\
> &#x20; "LEVEL\_NAME\_JSON": boject,  //職級名稱\_JSON\
> &#x20; "IS\_ACT": number,           //使用狀態\
> &#x20; "SORT\_ORDER": number,       //排序\
> },\
> \`\`\`<br>

````json
{"openapi":"3.0.0","tags":[{"name":"人事參數","description":"查詢人事相關的參數代碼，包括：職位代碼查詢、職等代碼查詢、職級代碼查詢等。"}],"servers":[{"url":"https://104demotest-api-server.hrmax.104.com.tw"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"401":{"description":"認證失敗 (請更新 accessToken 再試一次)"},"403":{"description":"權限不足"},"440":{"description":"參數錯誤 (請檢查 parameters 或 request body 的欄位、格式是否完整及正確)"},"500":{"description":"系統異常 `{ code: 500, msg: string }`"}}},"paths":{"/api/ed/level":{"post":{"tags":["人事參數"],"summary":"取得職級代碼","description":"```\nlevel = {\n  \"LEVEL_ID\": number,         //職級_ID\n  \"CO_ID\": number,            //公司_ID\n  \"GRADE_ID\": number,         //職等_ID\n  \"GRADE_CODE\": string,       //職等代碼\n  \"GRADE_NAME\": string,       //職等名稱\n  \"GRADE_NAME_JSON\": boject,  //職等名稱_JSON\n  \"LEVEL_CODE\": string,       //職級代碼\n  \"LEVEL_NAME\": string,       //職級名稱\n  \"LEVEL_NAME_JSON\": boject,  //職級名稱_JSON\n  \"IS_ACT\": number,           //使用狀態\n  \"SORT_ORDER\": number,       //排序\n},\n```\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["CO_ID"],"properties":{"CO_ID":{"type":"integer","description":"公司ID"}}}}}},"responses":{"200":{"description":"成功\n```\n{\n  code: 200,\n  data: [level, level, ...],\n}\n```\n"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"440":{"$ref":"#/components/responses/440"},"500":{"$ref":"#/components/responses/500"}}}}}}
````

## 取得職位代碼

> \`\`\`\
> job = {\
> &#x20; "JOB\_ID": number,         //職位\_ID\
> &#x20; "CO\_ID": number,          //公司\_ID\
> &#x20; "JOB\_CODE": string,       //職位代碼\
> &#x20; "JOB\_NAME": string,       //職位名稱\
> &#x20; "JOB\_NAME\_JSON": boject,  //職位名稱\_JSON\
> &#x20; "IS\_ACT": number,         //使用狀態\
> &#x20; "SORT\_ORDER": number,     //排序\
> &#x20; "E\_EMP\_ID": number,       //修改\_員工\_ID        \
> &#x20; "E\_EMP\_NO": string,       //修改\_員工編號\
> &#x20; "E\_DATETIME": date,       //修改\_日期   \
> },\
> \`\`\`<br>

````json
{"openapi":"3.0.0","tags":[{"name":"人事參數","description":"查詢人事相關的參數代碼，包括：職位代碼查詢、職等代碼查詢、職級代碼查詢等。"}],"servers":[{"url":"https://104demotest-api-server.hrmax.104.com.tw"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"401":{"description":"認證失敗 (請更新 accessToken 再試一次)"},"403":{"description":"權限不足"},"440":{"description":"參數錯誤 (請檢查 parameters 或 request body 的欄位、格式是否完整及正確)"},"500":{"description":"系統異常 `{ code: 500, msg: string }`"}}},"paths":{"/api/ed/job":{"post":{"tags":["人事參數"],"summary":"取得職位代碼","description":"```\njob = {\n  \"JOB_ID\": number,         //職位_ID\n  \"CO_ID\": number,          //公司_ID\n  \"JOB_CODE\": string,       //職位代碼\n  \"JOB_NAME\": string,       //職位名稱\n  \"JOB_NAME_JSON\": boject,  //職位名稱_JSON\n  \"IS_ACT\": number,         //使用狀態\n  \"SORT_ORDER\": number,     //排序\n  \"E_EMP_ID\": number,       //修改_員工_ID        \n  \"E_EMP_NO\": string,       //修改_員工編號\n  \"E_DATETIME\": date,       //修改_日期   \n},\n```\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["CO_ID"],"properties":{"CO_ID":{"type":"integer","description":"公司ID"}}}}}},"responses":{"200":{"description":"成功\n```\n{\n  code: 200,\n  data: [job, job, ...],\n}\n```\n"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"440":{"$ref":"#/components/responses/440"},"500":{"$ref":"#/components/responses/500"}}}}}}
````

## 取得職務類別代碼

> \`\`\`\
> job\_cat = {\
> &#x20; "JOB\_CAT\_ID": number,         //職務類別\_ID\
> &#x20; "CO\_ID": number,              //公司\_ID\
> &#x20; "JOB\_CAT\_CODE": string,       //職務類別代碼\
> &#x20; "JOB\_CAT\_NAME": string,       //職務類別名稱\
> &#x20; "JOB\_CAT\_NAME\_JSON": boject,  //職務類別名稱\_JSON\
> &#x20; "IS\_ACT": number,             //使用狀態\
> &#x20; "SORT\_ORDER": number,         //排序\
> },\
> \`\`\`<br>

````json
{"openapi":"3.0.0","tags":[{"name":"人事參數","description":"查詢人事相關的參數代碼，包括：職位代碼查詢、職等代碼查詢、職級代碼查詢等。"}],"servers":[{"url":"https://104demotest-api-server.hrmax.104.com.tw"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"401":{"description":"認證失敗 (請更新 accessToken 再試一次)"},"403":{"description":"權限不足"},"440":{"description":"參數錯誤 (請檢查 parameters 或 request body 的欄位、格式是否完整及正確)"},"500":{"description":"系統異常 `{ code: 500, msg: string }`"}}},"paths":{"/api/ed/job_cat":{"post":{"tags":["人事參數"],"summary":"取得職務類別代碼","description":"```\njob_cat = {\n  \"JOB_CAT_ID\": number,         //職務類別_ID\n  \"CO_ID\": number,              //公司_ID\n  \"JOB_CAT_CODE\": string,       //職務類別代碼\n  \"JOB_CAT_NAME\": string,       //職務類別名稱\n  \"JOB_CAT_NAME_JSON\": boject,  //職務類別名稱_JSON\n  \"IS_ACT\": number,             //使用狀態\n  \"SORT_ORDER\": number,         //排序\n},\n```\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["CO_ID"],"properties":{"CO_ID":{"type":"integer","description":"公司ID"}}}}}},"responses":{"200":{"description":"成功\n```\n{\n  code: 200,\n  data: [job_cat, job_cat, ...],\n}\n```\n"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"440":{"$ref":"#/components/responses/440"},"500":{"$ref":"#/components/responses/500"}}}}}}
````

## 取得職種代碼

> \`\`\`\
> job\_style = {\
> &#x20; "JOB\_STYLE\_ID": number,         //職種\_ID\
> &#x20; "CO\_ID": number,                //公司\_ID\
> &#x20; "JOB\_STYLE\_CODE": string,       //職種代碼\
> &#x20; "JOB\_STYLE\_NAME": string,       //職種名稱\
> &#x20; "JOB\_STYLE\_NAME\_JSON": boject,  //職種名稱\_JSON\
> &#x20; "IS\_ACT": number,               //使用狀態\
> &#x20; "SORT\_ORDER": number,           //排序\
> },\
> \`\`\`<br>

````json
{"openapi":"3.0.0","tags":[{"name":"人事參數","description":"查詢人事相關的參數代碼，包括：職位代碼查詢、職等代碼查詢、職級代碼查詢等。"}],"servers":[{"url":"https://104demotest-api-server.hrmax.104.com.tw"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"401":{"description":"認證失敗 (請更新 accessToken 再試一次)"},"403":{"description":"權限不足"},"440":{"description":"參數錯誤 (請檢查 parameters 或 request body 的欄位、格式是否完整及正確)"},"500":{"description":"系統異常 `{ code: 500, msg: string }`"}}},"paths":{"/api/ed/job_style":{"post":{"tags":["人事參數"],"summary":"取得職種代碼","description":"```\njob_style = {\n  \"JOB_STYLE_ID\": number,         //職種_ID\n  \"CO_ID\": number,                //公司_ID\n  \"JOB_STYLE_CODE\": string,       //職種代碼\n  \"JOB_STYLE_NAME\": string,       //職種名稱\n  \"JOB_STYLE_NAME_JSON\": boject,  //職種名稱_JSON\n  \"IS_ACT\": number,               //使用狀態\n  \"SORT_ORDER\": number,           //排序\n},\n```\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["CO_ID"],"properties":{"CO_ID":{"type":"integer","description":"公司ID"}}}}}},"responses":{"200":{"description":"成功\n```\n{\n  code: 200,\n  data: [job_style, job_style, ...],\n}\n```\n"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"440":{"$ref":"#/components/responses/440"},"500":{"$ref":"#/components/responses/500"}}}}}}
````

## 取得職務說明書代碼

> \`\`\`\
> job\_desc = {\
> &#x20; "JOB\_DESC\_ID": number,        //職務說明書\_ID\
> &#x20; "CO\_ID": number,              //公司\_ID\
> &#x20; "JOB\_DESC\_CODE": string,      //職務說明書代碼\
> &#x20; "JOB\_DESC\_NAME": string,      //職務說明書名稱\
> &#x20; "JOB\_DESC\_NAME\_JSON": boject, //職務說明書名稱\_JSON\
> &#x20; "IS\_ACT": number,             //使用狀態\
> &#x20; "SORT\_ORDER": number,         //排序\
> },\
> \`\`\`<br>

````json
{"openapi":"3.0.0","tags":[{"name":"人事參數","description":"查詢人事相關的參數代碼，包括：職位代碼查詢、職等代碼查詢、職級代碼查詢等。"}],"servers":[{"url":"https://104demotest-api-server.hrmax.104.com.tw"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"401":{"description":"認證失敗 (請更新 accessToken 再試一次)"},"403":{"description":"權限不足"},"440":{"description":"參數錯誤 (請檢查 parameters 或 request body 的欄位、格式是否完整及正確)"},"500":{"description":"系統異常 `{ code: 500, msg: string }`"}}},"paths":{"/api/ed/job_desc":{"post":{"tags":["人事參數"],"summary":"取得職務說明書代碼","description":"```\njob_desc = {\n  \"JOB_DESC_ID\": number,        //職務說明書_ID\n  \"CO_ID\": number,              //公司_ID\n  \"JOB_DESC_CODE\": string,      //職務說明書代碼\n  \"JOB_DESC_NAME\": string,      //職務說明書名稱\n  \"JOB_DESC_NAME_JSON\": boject, //職務說明書名稱_JSON\n  \"IS_ACT\": number,             //使用狀態\n  \"SORT_ORDER\": number,         //排序\n},\n```\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["CO_ID"],"properties":{"CO_ID":{"type":"integer","description":"公司ID"}}}}}},"responses":{"200":{"description":"成功\n```\n{\n  code: 200,\n  data: [job_desc, job_desc, ...],\n}\n```\n"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"440":{"$ref":"#/components/responses/440"},"500":{"$ref":"#/components/responses/500"}}}}}}
````

## 取得名片職務代碼

> \`\`\`\
> job\_biz = {\
> &#x20; "JOB\_BIZ\_ID": number,        //名片職務\_ID\
> &#x20; "CO\_ID": number,             //公司\_ID\
> &#x20; "JOB\_BIZ\_CODE": string,      //名片職務代碼\
> &#x20; "JOB\_BIZ\_NAME": string,      //名片職務名稱\
> &#x20; "JOB\_BIZ\_NAME\_JSON": boject, //名片職務名稱\_JSON\
> &#x20; "IS\_ACT": number,            //使用狀態\
> &#x20; "SORT\_ORDER": number,        //排序\
> },\
> \`\`\`<br>

````json
{"openapi":"3.0.0","tags":[{"name":"人事參數","description":"查詢人事相關的參數代碼，包括：職位代碼查詢、職等代碼查詢、職級代碼查詢等。"}],"servers":[{"url":"https://104demotest-api-server.hrmax.104.com.tw"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"401":{"description":"認證失敗 (請更新 accessToken 再試一次)"},"403":{"description":"權限不足"},"440":{"description":"參數錯誤 (請檢查 parameters 或 request body 的欄位、格式是否完整及正確)"},"500":{"description":"系統異常 `{ code: 500, msg: string }`"}}},"paths":{"/api/ed/job_biz":{"post":{"tags":["人事參數"],"summary":"取得名片職務代碼","description":"```\njob_biz = {\n  \"JOB_BIZ_ID\": number,        //名片職務_ID\n  \"CO_ID\": number,             //公司_ID\n  \"JOB_BIZ_CODE\": string,      //名片職務代碼\n  \"JOB_BIZ_NAME\": string,      //名片職務名稱\n  \"JOB_BIZ_NAME_JSON\": boject, //名片職務名稱_JSON\n  \"IS_ACT\": number,            //使用狀態\n  \"SORT_ORDER\": number,        //排序\n},\n```\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["CO_ID"],"properties":{"CO_ID":{"type":"integer","description":"公司ID"}}}}}},"responses":{"200":{"description":"成功\n```\n{\n  code: 200,\n  data: [job_biz, job_biz, ...],\n}\n```\n"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"440":{"$ref":"#/components/responses/440"},"500":{"$ref":"#/components/responses/500"}}}}}}
````

## 取得身分類別代碼

> \`\`\`\
> identity = {\
> &#x20; "IDENTITY\_ID": number,          //身分類別\_ID\
> &#x20; "CO\_ID": number,                //公司\_ID\
> &#x20; "IDENTITY\_CODE": string,        //身分類別代碼\
> &#x20; "IDENTITY\_NAME": string,        //身分類別名稱\
> &#x20; "IDENTITY\_NAME\_JSON": boject,   //身分類別名稱\_JSON\
> &#x20; "IS\_ACT": number,               //使用狀態\
> &#x20; "SORT\_ORDER": number,           //排序\
> },\
> \`\`\`<br>

````json
{"openapi":"3.0.0","tags":[{"name":"人事參數","description":"查詢人事相關的參數代碼，包括：職位代碼查詢、職等代碼查詢、職級代碼查詢等。"}],"servers":[{"url":"https://104demotest-api-server.hrmax.104.com.tw"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"401":{"description":"認證失敗 (請更新 accessToken 再試一次)"},"403":{"description":"權限不足"},"440":{"description":"參數錯誤 (請檢查 parameters 或 request body 的欄位、格式是否完整及正確)"},"500":{"description":"系統異常 `{ code: 500, msg: string }`"}}},"paths":{"/api/ed/identity":{"post":{"tags":["人事參數"],"summary":"取得身分類別代碼","description":"```\nidentity = {\n  \"IDENTITY_ID\": number,          //身分類別_ID\n  \"CO_ID\": number,                //公司_ID\n  \"IDENTITY_CODE\": string,        //身分類別代碼\n  \"IDENTITY_NAME\": string,        //身分類別名稱\n  \"IDENTITY_NAME_JSON\": boject,   //身分類別名稱_JSON\n  \"IS_ACT\": number,               //使用狀態\n  \"SORT_ORDER\": number,           //排序\n},\n```\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["CO_ID"],"properties":{"CO_ID":{"type":"integer","description":"公司ID"}}}}}},"responses":{"200":{"description":"成功\n```\n{\n  code: 200,\n  data: [identity, identity, ...],\n}\n```\n"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"440":{"$ref":"#/components/responses/440"},"500":{"$ref":"#/components/responses/500"}}}}}}
````

## 取得工作區域代碼

> \`\`\`\
> area = {\
> &#x20; "AREA\_ID": number,        //工作區域\_ID\
> &#x20; "CO\_ID": number,          //公司\_ID\
> &#x20; "AREA\_CODE": string,      //工作區域代碼\
> &#x20; "AREA\_NAME": string,      //工作區域名稱\
> &#x20; "AREA\_NAME\_JSON": boject, //工作區域名稱\_JSON\
> &#x20; "IS\_ACT": number,         //使用狀態\
> &#x20; "SORT\_ORDER": number,     //排序\
> },\
> \`\`\`<br>

````json
{"openapi":"3.0.0","tags":[{"name":"人事參數","description":"查詢人事相關的參數代碼，包括：職位代碼查詢、職等代碼查詢、職級代碼查詢等。"}],"servers":[{"url":"https://104demotest-api-server.hrmax.104.com.tw"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"401":{"description":"認證失敗 (請更新 accessToken 再試一次)"},"403":{"description":"權限不足"},"440":{"description":"參數錯誤 (請檢查 parameters 或 request body 的欄位、格式是否完整及正確)"},"500":{"description":"系統異常 `{ code: 500, msg: string }`"}}},"paths":{"/api/ed/area":{"post":{"tags":["人事參數"],"summary":"取得工作區域代碼","description":"```\narea = {\n  \"AREA_ID\": number,        //工作區域_ID\n  \"CO_ID\": number,          //公司_ID\n  \"AREA_CODE\": string,      //工作區域代碼\n  \"AREA_NAME\": string,      //工作區域名稱\n  \"AREA_NAME_JSON\": boject, //工作區域名稱_JSON\n  \"IS_ACT\": number,         //使用狀態\n  \"SORT_ORDER\": number,     //排序\n},\n```\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["CO_ID"],"properties":{"CO_ID":{"type":"integer","description":"公司ID"}}}}}},"responses":{"200":{"description":"成功\n```\n{\n  code: 200,\n  data: [area, area, ...],\n}\n```\n"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"440":{"$ref":"#/components/responses/440"},"500":{"$ref":"#/components/responses/500"}}}}}}
````

## 取得工作地點代碼

> \`\`\`\
> site = {\
> &#x20; "SITE\_ID": number,        //工作地點\_ID\
> &#x20; "CO\_ID": number,          //公司\_ID\
> &#x20; "AREA\_ID": number,        //工作區域\_ID\
> &#x20; "AREA\_CODE": string,      //工作區域代碼\
> &#x20; "AREA\_NAME": string,      //工作區域名稱\
> &#x20; "AREA\_NAME\_JSON": boject, //工作區域名稱\_JSON\
> &#x20; "SITE\_CODE": string,      //工作地點代碼\
> &#x20; "SITE\_NAME": string,      //工作地點名稱\
> &#x20; "SITE\_NAME\_JSON": boject, //工作地點名稱\_JSON\
> &#x20; "IS\_ACT": number,         //使用狀態\
> &#x20; "SORT\_ORDER": number,     //排序\
> },\
> \`\`\`<br>

````json
{"openapi":"3.0.0","tags":[{"name":"人事參數","description":"查詢人事相關的參數代碼，包括：職位代碼查詢、職等代碼查詢、職級代碼查詢等。"}],"servers":[{"url":"https://104demotest-api-server.hrmax.104.com.tw"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"401":{"description":"認證失敗 (請更新 accessToken 再試一次)"},"403":{"description":"權限不足"},"440":{"description":"參數錯誤 (請檢查 parameters 或 request body 的欄位、格式是否完整及正確)"},"500":{"description":"系統異常 `{ code: 500, msg: string }`"}}},"paths":{"/api/ed/site":{"post":{"tags":["人事參數"],"summary":"取得工作地點代碼","description":"```\nsite = {\n  \"SITE_ID\": number,        //工作地點_ID\n  \"CO_ID\": number,          //公司_ID\n  \"AREA_ID\": number,        //工作區域_ID\n  \"AREA_CODE\": string,      //工作區域代碼\n  \"AREA_NAME\": string,      //工作區域名稱\n  \"AREA_NAME_JSON\": boject, //工作區域名稱_JSON\n  \"SITE_CODE\": string,      //工作地點代碼\n  \"SITE_NAME\": string,      //工作地點名稱\n  \"SITE_NAME_JSON\": boject, //工作地點名稱_JSON\n  \"IS_ACT\": number,         //使用狀態\n  \"SORT_ORDER\": number,     //排序\n},\n```\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["CO_ID"],"properties":{"CO_ID":{"type":"integer","description":"公司ID"}}}}}},"responses":{"200":{"description":"成功\n```\n{\n  code: 200,\n  data: [site, site, ...],\n}\n```\n"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"440":{"$ref":"#/components/responses/440"},"500":{"$ref":"#/components/responses/500"}}}}}}
````

## 取得廠別代碼

> \`\`\`\
> factory = {\
> &#x20; "FACTORY\_ID": number,        //廠別\_ID\
> &#x20; "CO\_ID": number,             //公司\_ID\
> &#x20; "FACTORY\_CODE": string,      //廠別代碼\
> &#x20; "FACTORY\_NAME": string,      //廠別名稱\
> &#x20; "FACTORY\_NAME\_JSON": boject, //廠別名稱\_JSON\
> &#x20; "IS\_ACT": number,            //使用狀態\
> &#x20; "SORT\_ORDER": number,        //排序\
> },\
> \`\`\`<br>

````json
{"openapi":"3.0.0","tags":[{"name":"人事參數","description":"查詢人事相關的參數代碼，包括：職位代碼查詢、職等代碼查詢、職級代碼查詢等。"}],"servers":[{"url":"https://104demotest-api-server.hrmax.104.com.tw"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"401":{"description":"認證失敗 (請更新 accessToken 再試一次)"},"403":{"description":"權限不足"},"440":{"description":"參數錯誤 (請檢查 parameters 或 request body 的欄位、格式是否完整及正確)"},"500":{"description":"系統異常 `{ code: 500, msg: string }`"}}},"paths":{"/api/ed/factory":{"post":{"tags":["人事參數"],"summary":"取得廠別代碼","description":"```\nfactory = {\n  \"FACTORY_ID\": number,        //廠別_ID\n  \"CO_ID\": number,             //公司_ID\n  \"FACTORY_CODE\": string,      //廠別代碼\n  \"FACTORY_NAME\": string,      //廠別名稱\n  \"FACTORY_NAME_JSON\": boject, //廠別名稱_JSON\n  \"IS_ACT\": number,            //使用狀態\n  \"SORT_ORDER\": number,        //排序\n},\n```\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["CO_ID"],"properties":{"CO_ID":{"type":"integer","description":"公司ID"}}}}}},"responses":{"200":{"description":"成功\n```\n{\n  code: 200,\n  data: [factory, factory, ...],\n}\n```\n"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"440":{"$ref":"#/components/responses/440"},"500":{"$ref":"#/components/responses/500"}}}}}}
````

## 取得異動原因代碼

> \`\`\`\
> vars\_cause = {\
> &#x20; "VARS\_CAUSE\_ID": number,     //異動原因\_ID\
> &#x20; "CO\_ID": number,             //公司\_ID\
> &#x20; "CAUSE\_CODE": string,        //異動原因代碼\
> &#x20; "CAUSE\_NAME": string,        //異動原因名稱\
> &#x20; "CAUSE\_NAME\_JSON": boject,   //異動原因名稱\_JSON\
> &#x20; "IS\_ACT": number,            //使用狀態\
> &#x20; "SORT\_ORDER": number,        //排序\
> },\
> \`\`\`<br>

````json
{"openapi":"3.0.0","tags":[{"name":"人事參數","description":"查詢人事相關的參數代碼，包括：職位代碼查詢、職等代碼查詢、職級代碼查詢等。"}],"servers":[{"url":"https://104demotest-api-server.hrmax.104.com.tw"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"401":{"description":"認證失敗 (請更新 accessToken 再試一次)"},"403":{"description":"權限不足"},"440":{"description":"參數錯誤 (請檢查 parameters 或 request body 的欄位、格式是否完整及正確)"},"500":{"description":"系統異常 `{ code: 500, msg: string }`"}}},"paths":{"/api/ed/vars_cause":{"post":{"tags":["人事參數"],"summary":"取得異動原因代碼","description":"```\nvars_cause = {\n  \"VARS_CAUSE_ID\": number,     //異動原因_ID\n  \"CO_ID\": number,             //公司_ID\n  \"CAUSE_CODE\": string,        //異動原因代碼\n  \"CAUSE_NAME\": string,        //異動原因名稱\n  \"CAUSE_NAME_JSON\": boject,   //異動原因名稱_JSON\n  \"IS_ACT\": number,            //使用狀態\n  \"SORT_ORDER\": number,        //排序\n},\n```\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["CO_ID"],"properties":{"CO_ID":{"type":"integer","description":"公司ID"}}}}}},"responses":{"200":{"description":"成功\n```\n{\n  code: 200,\n  data: [vars_cause, vars_cause, ...],\n}\n```\n"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"440":{"$ref":"#/components/responses/440"},"500":{"$ref":"#/components/responses/500"}}}}}}
````

## 取得留停離職原因代碼

> \`\`\`\
> vars\_cause = {\
> &#x20; "QUIT\_CAUSE\_ID": number,     //留停離職原因\_ID\
> &#x20; "CO\_ID": number,             //公司\_ID\
> &#x20; "CAUSE\_CODE": string,        //留停離職原因代碼\
> &#x20; "CAUSE\_NAME": string,        //留停離職原因名稱\
> &#x20; "CAUSE\_NAME\_JSON": boject,   //留停離職原因名稱\_JSON\
> &#x20; "IS\_ACT": number,            //使用狀態\
> &#x20; "SORT\_ORDER": number,        //排序\
> },\
> \`\`\`<br>

````json
{"openapi":"3.0.0","tags":[{"name":"人事參數","description":"查詢人事相關的參數代碼，包括：職位代碼查詢、職等代碼查詢、職級代碼查詢等。"}],"servers":[{"url":"https://104demotest-api-server.hrmax.104.com.tw"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"401":{"description":"認證失敗 (請更新 accessToken 再試一次)"},"403":{"description":"權限不足"},"440":{"description":"參數錯誤 (請檢查 parameters 或 request body 的欄位、格式是否完整及正確)"},"500":{"description":"系統異常 `{ code: 500, msg: string }`"}}},"paths":{"/api/ed/quit_cause":{"post":{"tags":["人事參數"],"summary":"取得留停離職原因代碼","description":"```\nvars_cause = {\n  \"QUIT_CAUSE_ID\": number,     //留停離職原因_ID\n  \"CO_ID\": number,             //公司_ID\n  \"CAUSE_CODE\": string,        //留停離職原因代碼\n  \"CAUSE_NAME\": string,        //留停離職原因名稱\n  \"CAUSE_NAME_JSON\": boject,   //留停離職原因名稱_JSON\n  \"IS_ACT\": number,            //使用狀態\n  \"SORT_ORDER\": number,        //排序\n},\n```\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["CO_ID"],"properties":{"CO_ID":{"type":"integer","description":"公司ID"}}}}}},"responses":{"200":{"description":"成功\n```\n{\n  code: 200,\n  data: [quit_cause, quit_cause, ...],\n}\n```\n"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"440":{"$ref":"#/components/responses/440"},"500":{"$ref":"#/components/responses/500"}}}}}}
````

## 取得訓練課程分類代碼

> \`\`\`\
> vars\_cause = {\
> &#x20; "COURSE\_TYPE\_ID": number,          //訓練課程分類\_ID\
> &#x20; "CO\_ID": number,                   //公司\_ID\
> &#x20; "COURSE\_TYPE\_CODE": string,        //訓練課程分類代碼\
> &#x20; "COURSE\_TYPE\_NAME": string,        //訓練課程分類名稱\
> &#x20; "COURSE\_TYPE\_NAME\_JSON": boject,   //訓練課程分類名稱\_JSON\
> &#x20; "IS\_ACT": number,                  //使用狀態\
> &#x20; "SORT\_ORDER": number,              //排序\
> },\
> \`\`\`<br>

````json
{"openapi":"3.0.0","tags":[{"name":"人事參數","description":"查詢人事相關的參數代碼，包括：職位代碼查詢、職等代碼查詢、職級代碼查詢等。"}],"servers":[{"url":"https://104demotest-api-server.hrmax.104.com.tw"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"401":{"description":"認證失敗 (請更新 accessToken 再試一次)"},"403":{"description":"權限不足"},"440":{"description":"參數錯誤 (請檢查 parameters 或 request body 的欄位、格式是否完整及正確)"},"500":{"description":"系統異常 `{ code: 500, msg: string }`"}}},"paths":{"/api/ed/course_type":{"post":{"tags":["人事參數"],"summary":"取得訓練課程分類代碼","description":"```\nvars_cause = {\n  \"COURSE_TYPE_ID\": number,          //訓練課程分類_ID\n  \"CO_ID\": number,                   //公司_ID\n  \"COURSE_TYPE_CODE\": string,        //訓練課程分類代碼\n  \"COURSE_TYPE_NAME\": string,        //訓練課程分類名稱\n  \"COURSE_TYPE_NAME_JSON\": boject,   //訓練課程分類名稱_JSON\n  \"IS_ACT\": number,                  //使用狀態\n  \"SORT_ORDER\": number,              //排序\n},\n```\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["CO_ID"],"properties":{"CO_ID":{"type":"integer","description":"公司ID"}}}}}},"responses":{"200":{"description":"成功\n```\n{\n  code: 200,\n  data: [course_type, course_type, ...],\n}\n```\n"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"440":{"$ref":"#/components/responses/440"},"500":{"$ref":"#/components/responses/500"}}}}}}
````

## 取得獎懲項目代碼

> \`\`\`\
> reward = {\
> &#x20; "REWARD\_ID": number,          //獎懲項目\_ID\
> &#x20; "CO\_ID": number,              //公司\_ID\
> &#x20; "REWARD\_CODE": string,        //獎懲項目代碼\
> &#x20; "REWARD\_NAME": string,        //獎懲項目名稱\
> &#x20; "REWARD\_NAME\_JSON": boject,   //獎懲項目名稱\_JSON\
> &#x20; "REWARD\_TYPE": string,        //獎懲類別名稱\
> &#x20; "REWARD\_VALUE": number,       //獎懲點數\
> &#x20; "IS\_ACT": number,             //使用狀態\
> &#x20; "SORT\_ORDER": number,         //排序\
> },\
> \`\`\`<br>

````json
{"openapi":"3.0.0","tags":[{"name":"人事參數","description":"查詢人事相關的參數代碼，包括：職位代碼查詢、職等代碼查詢、職級代碼查詢等。"}],"servers":[{"url":"https://104demotest-api-server.hrmax.104.com.tw"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"401":{"description":"認證失敗 (請更新 accessToken 再試一次)"},"403":{"description":"權限不足"},"440":{"description":"參數錯誤 (請檢查 parameters 或 request body 的欄位、格式是否完整及正確)"},"500":{"description":"系統異常 `{ code: 500, msg: string }`"}}},"paths":{"/api/ed/reward":{"post":{"tags":["人事參數"],"summary":"取得獎懲項目代碼","description":"```\nreward = {\n  \"REWARD_ID\": number,          //獎懲項目_ID\n  \"CO_ID\": number,              //公司_ID\n  \"REWARD_CODE\": string,        //獎懲項目代碼\n  \"REWARD_NAME\": string,        //獎懲項目名稱\n  \"REWARD_NAME_JSON\": boject,   //獎懲項目名稱_JSON\n  \"REWARD_TYPE\": string,        //獎懲類別名稱\n  \"REWARD_VALUE\": number,       //獎懲點數\n  \"IS_ACT\": number,             //使用狀態\n  \"SORT_ORDER\": number,         //排序\n},\n```\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["CO_ID"],"properties":{"CO_ID":{"type":"integer","description":"公司ID"}}}}}},"responses":{"200":{"description":"成功\n```\n{\n  code: 200,\n  data: [reward, reward, ...],\n}\n```\n"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"440":{"$ref":"#/components/responses/440"},"500":{"$ref":"#/components/responses/500"}}}}}}
````

## 取得績效種類代碼

> \`\`\`\
> perf\_type = {\
> &#x20; "PERF\_TYPE\_ID": number,          //績效種類\_ID\
> &#x20; "CO\_ID": number,                 //公司\_ID\
> &#x20; "PERF\_TYPE\_CODE": string,        //績效種類代碼\
> &#x20; "PERF\_TYPE\_NAME": string,        //績效種類名稱\
> &#x20; "PERF\_TYPE\_NAME\_JSON": boject,   //績效種類名稱\_JSON\
> &#x20; "IS\_ACT": number,                //使用狀態\
> &#x20; "SORT\_ORDER": number,            //排序\
> },\
> \`\`\`<br>

````json
{"openapi":"3.0.0","tags":[{"name":"人事參數","description":"查詢人事相關的參數代碼，包括：職位代碼查詢、職等代碼查詢、職級代碼查詢等。"}],"servers":[{"url":"https://104demotest-api-server.hrmax.104.com.tw"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"401":{"description":"認證失敗 (請更新 accessToken 再試一次)"},"403":{"description":"權限不足"},"440":{"description":"參數錯誤 (請檢查 parameters 或 request body 的欄位、格式是否完整及正確)"},"500":{"description":"系統異常 `{ code: 500, msg: string }`"}}},"paths":{"/api/ed/perf_type":{"post":{"tags":["人事參數"],"summary":"取得績效種類代碼","description":"```\nperf_type = {\n  \"PERF_TYPE_ID\": number,          //績效種類_ID\n  \"CO_ID\": number,                 //公司_ID\n  \"PERF_TYPE_CODE\": string,        //績效種類代碼\n  \"PERF_TYPE_NAME\": string,        //績效種類名稱\n  \"PERF_TYPE_NAME_JSON\": boject,   //績效種類名稱_JSON\n  \"IS_ACT\": number,                //使用狀態\n  \"SORT_ORDER\": number,            //排序\n},\n```\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["CO_ID"],"properties":{"CO_ID":{"type":"integer","description":"公司ID"}}}}}},"responses":{"200":{"description":"成功\n```\n{\n  code: 200,\n  data: [perf_type, perf_type, ...],\n}\n```\n"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"440":{"$ref":"#/components/responses/440"},"500":{"$ref":"#/components/responses/500"}}}}}}
````

## 取得績效評核等級代碼

> \`\`\`\
> perf\_rating = {\
> &#x20; "PERF\_RATING\_ID": number,          //評等等級\_ID\
> &#x20; "CO\_ID": number,                   //公司\_ID\
> &#x20; "RATING\_RULE\_CODE": string,        //評核等級規則代碼\
> &#x20; "RATING\_RULE\_NAME": string,        //評核等級規則名稱\
> &#x20; "RATING\_RULE\_NAME\_JSON": boject,   //評核等級規則名稱\_JSON\
> &#x20; "PERF\_RATING\_CODE": string,        //評等等級代碼\
> &#x20; "PERF\_RATING\_NAME": string,        //評等等級名稱\
> &#x20; "PERF\_RATING\_NAME\_JSON": boject,   //評等等級名稱\_JSON\
> &#x20; "IS\_ACT": number,                  //使用狀態\
> &#x20; "SORT\_ORDER": number,              //排序\
> },\
> \`\`\`<br>

````json
{"openapi":"3.0.0","tags":[{"name":"人事參數","description":"查詢人事相關的參數代碼，包括：職位代碼查詢、職等代碼查詢、職級代碼查詢等。"}],"servers":[{"url":"https://104demotest-api-server.hrmax.104.com.tw"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"401":{"description":"認證失敗 (請更新 accessToken 再試一次)"},"403":{"description":"權限不足"},"440":{"description":"參數錯誤 (請檢查 parameters 或 request body 的欄位、格式是否完整及正確)"},"500":{"description":"系統異常 `{ code: 500, msg: string }`"}}},"paths":{"/api/ed/perf_rating":{"post":{"tags":["人事參數"],"summary":"取得績效評核等級代碼","description":"```\nperf_rating = {\n  \"PERF_RATING_ID\": number,          //評等等級_ID\n  \"CO_ID\": number,                   //公司_ID\n  \"RATING_RULE_CODE\": string,        //評核等級規則代碼\n  \"RATING_RULE_NAME\": string,        //評核等級規則名稱\n  \"RATING_RULE_NAME_JSON\": boject,   //評核等級規則名稱_JSON\n  \"PERF_RATING_CODE\": string,        //評等等級代碼\n  \"PERF_RATING_NAME\": string,        //評等等級名稱\n  \"PERF_RATING_NAME_JSON\": boject,   //評等等級名稱_JSON\n  \"IS_ACT\": number,                  //使用狀態\n  \"SORT_ORDER\": number,              //排序\n},\n```\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["CO_ID"],"properties":{"CO_ID":{"type":"integer","description":"公司ID"}}}}}},"responses":{"200":{"description":"成功\n```\n{\n  code: 200,\n  data: [perf_rating, perf_rating, ...],\n}\n```\n"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"440":{"$ref":"#/components/responses/440"},"500":{"$ref":"#/components/responses/500"}}}}}}
````


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://104ha-docs.gitbook.io/104-ha-openapi/clients/104-hr-max/ren-shi-can-shu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
