690519:2118 224 to 226 AI #03
This commit is contained in:
@@ -58,7 +58,7 @@ describe('AI Tool Services (RFA, Drawing, Transmittal)', () => {
|
||||
statusCode: 'APPROVED',
|
||||
},
|
||||
items: [{}, {}],
|
||||
respondedAt: new Date('2026-01-02T00:00:00Z'),
|
||||
approvedDate: new Date('2026-01-02T00:00:00Z'),
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
@@ -52,13 +52,9 @@ export class DrawingToolService {
|
||||
};
|
||||
}
|
||||
try {
|
||||
// แปลง projectPublicId → internal project id (ADR-019)
|
||||
const internalProjectId = await this.uuidResolver.resolveProjectId(
|
||||
context.projectPublicId
|
||||
);
|
||||
// ดึงข้อมูล Shop Drawing
|
||||
// ดึงข้อมูล Shop Drawing (ใช้ projectUuid ตาม ADR-019)
|
||||
const result = await this.shopDrawingService.findAll({
|
||||
projectId: internalProjectId,
|
||||
projectUuid: context.projectPublicId,
|
||||
page: 1,
|
||||
limit: 20,
|
||||
});
|
||||
|
||||
@@ -71,9 +71,9 @@ export class RfaToolService {
|
||||
submittedAt: currentRevision?.issuedDate
|
||||
? currentRevision.issuedDate.toISOString()
|
||||
: null,
|
||||
respondedAt: rfaRevision?.respondedAt
|
||||
respondedAt: rfaRevision?.approvedDate
|
||||
? new Date(
|
||||
rfaRevision.respondedAt as string | number | Date
|
||||
rfaRevision.approvedDate as string | number | Date
|
||||
).toISOString()
|
||||
: null,
|
||||
contractPublicId: '', // Contract publicId — ถ้า contract entity มี publicId ให้เพิ่มทีหลัง
|
||||
|
||||
Reference in New Issue
Block a user