diff options
| author | joonhoekim <26rote@gmail.com> | 2025-09-29 21:22:00 +0900 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-09-29 21:22:00 +0900 |
| commit | e41e3af4e72870d44a94b03e0f3246d6ccaaca48 (patch) | |
| tree | aa9ddebd930ed0c571cc1561cad0ea3f0911ce2f /lib/vendors/service.ts | |
| parent | b33d6909064b9aeba77e6b05f3dbabce7b551b6b (diff) | |
(김준회) RFQ PR 아이템 dialog 및 견적히스토리 구매요구사항 반영
1. RFQ PR 아이템 dialog: 주요 품목 카드 및 개수 표시 제거, 컬럼명 변경
2. 견적히스토리: where condition 누락건 처리
Diffstat (limited to 'lib/vendors/service.ts')
| -rw-r--r-- | lib/vendors/service.ts | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/vendors/service.ts b/lib/vendors/service.ts index e6a2a139..6132832f 100644 --- a/lib/vendors/service.ts +++ b/lib/vendors/service.ts @@ -1396,10 +1396,7 @@ export async function getRfqHistory(input: GetRfqHistorySchema, vendorId: number )) .leftJoin(rfqLastDetails, eq(rfqLastVendorResponses.rfqLastDetailsId, rfqLastDetails.id)) .leftJoin(projects, eq(rfqsLast.projectId, projects.id)) - .where(and( - advancedWhere, - globalWhere - )) + .where(finalWhere) .orderBy(...orderBy) .limit(input.perPage) .offset(offset); @@ -1449,10 +1446,7 @@ export async function getRfqHistory(input: GetRfqHistorySchema, vendorId: number )) .leftJoin(rfqLastDetails, eq(rfqLastVendorResponses.rfqLastDetailsId, rfqLastDetails.id)) .leftJoin(projects, eq(rfqsLast.projectId, projects.id)) - .where(and( - advancedWhere, - globalWhere - )); + .where(finalWhere); const totalCount = total[0]?.count ?? 0; logger.debug({ totalCount }, "RFQ history total count"); |
