Project

General

Profile

Feature #25698

[Call System][Call Terminal] Create Request Work : เพิ่ม Record ที่ถัง request_work_detail

Added by Parujee Pangsriuthai 2 months ago. Updated 22 days ago.

Status:
Closed
Priority:
Normal
Start date:
02/13/2026
Due date:
% Done:

0%

Estimated time:

Description

Figma: https://www.figma.com/design/fgAAmzcwIGYDgB5zCQw36g/Spec-Call-System?node-id=5660-7064&t=vo4X01RtMu80YDt6-4

- ทำการเพิ่ม Record ที่ถัง request_work_detail หลังจากที่กดสร้าง Request_work นี้ขึ้นมาด้วยค่ะะ โดย

INSERT INTO request_work_detail (
    id,
    created_date,
    updated_date,
    request_id,
    creation_status,
    is_active
)
VALUES (
    gen_random_uuid(),
    now(),
    now(),
    @current_request_work.id, -- บันทึก uuid ของ request_work ที่พึ่งสร้าง
    ‘Incomplete’,
    true
);


Files

image (29).png (720 KB) image (29).png เพิ่ม Record หลังจากที่กด Confirm สร้าง request_work Parujee Pangsriuthai, 02/13/2026 03:53 PM

History

#1

Updated by Parujee Pangsriuthai about 2 months ago

- เพิ่มเติม condition การ save ข้อมูลลง DB ของถัง request_work_detail โดย

  • ถ้า request_work นั้น มี work_type = ‘Trouble’ จะให้ save request_work_detail.history_type = ‘Suddenly’
  • ถ้า request_work นั้น มี work_type = ‘Consult’ จะให้ save request_work_detail.history_type = ‘Consultation/Plan’
#2

Updated by kittipong banawitit 25 days ago

  • Status changed from New to In Progress
#3

Updated by kittipong banawitit 24 days ago

  • Status changed from In Progress to Resolved
  • Assignee changed from kittipong banawitit to Parujee Pangsriuthai
#4

Updated by Parujee Pangsriuthai 22 days ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF