summaryrefslogtreecommitdiff
path: root/lib/bidding/pre-quote/service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bidding/pre-quote/service.ts')
-rw-r--r--lib/bidding/pre-quote/service.ts16
1 files changed, 5 insertions, 11 deletions
diff --git a/lib/bidding/pre-quote/service.ts b/lib/bidding/pre-quote/service.ts
index cad77a6b..0f284297 100644
--- a/lib/bidding/pre-quote/service.ts
+++ b/lib/bidding/pre-quote/service.ts
@@ -57,13 +57,7 @@ interface PrItemQuotation {
technicalSpecification?: string
}
-interface PreQuoteDocumentUpload {
- fileName: string
- originalFileName: string
- fileSize: number
- mimeType: string
- filePath: string
-}
+
// 사전견적용 업체 추가 - biddingCompanies와 company_condition_responses 레코드 생성
export async function createBiddingCompany(input: CreateBiddingCompanyInput) {
@@ -448,7 +442,8 @@ export async function getBiddingCompaniesForPartners(biddingId: number, companyI
contractType: biddings.contractType,
biddingType: biddings.biddingType,
awardCount: biddings.awardCount,
- contractPeriod: biddings.contractPeriod,
+ contractStartDate: biddings.contractStartDate,
+ contractEndDate: biddings.contractEndDate,
preQuoteDate: biddings.preQuoteDate,
biddingRegistrationDate: biddings.biddingRegistrationDate,
submissionStartDate: biddings.submissionStartDate,
@@ -743,7 +738,7 @@ export async function respondToPreQuoteInvitation(
}
}
-// 벤더에서 사전견적 참여 여부 결정 (isPreQuoteSelected, isPreQuoteParticipated 사용)
+// 벤더에서 사전견적 참여 여부 결정 (isPreQuoteParticipated 사용)
export async function setPreQuoteParticipation(
biddingCompanyId: number,
isParticipating: boolean
@@ -752,7 +747,6 @@ export async function setPreQuoteParticipation(
await db.update(biddingCompanies)
.set({
isPreQuoteParticipated: isParticipating,
- isPreQuoteSelected: isParticipating,
respondedAt: new Date(),
updatedAt: new Date()
})
@@ -1433,7 +1427,7 @@ export async function sendBiddingBasicContracts(
message: `${results.length}개의 기본계약이 생성되었습니다.`,
results,
savedContracts,
- totalContracts: savedContracts.length
+ totalContracts: savedContracts.length,
}
})