작업계획서대로 진행

This commit is contained in:
2026-01-11 01:29:46 +09:00
parent 1b8cd8577e
commit 01bd66d524
51 changed files with 11124 additions and 273 deletions

View File

@@ -10,6 +10,7 @@ interface CreateProjectBody {
startDate?: string
endDate?: string
contractAmount?: number
businessId?: number | null
}
/**
@@ -62,9 +63,9 @@ export default defineEventHandler(async (event) => {
const project = await insertReturning(`
INSERT INTO wr_project_info (
project_code, project_name, project_type, client_name, project_description,
start_date, end_date, contract_amount,
start_date, end_date, contract_amount, business_id,
created_ip, created_email, updated_ip, updated_email
) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $9, $10)
) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $10, $11)
RETURNING *
`, [
projectCode,
@@ -75,6 +76,7 @@ export default defineEventHandler(async (event) => {
body.startDate || null,
body.endDate || null,
body.contractAmount || null,
body.businessId || null,
clientIp,
userEmail
])
@@ -85,7 +87,8 @@ export default defineEventHandler(async (event) => {
projectId: project.project_id,
projectCode: project.project_code,
projectName: project.project_name,
projectType: project.project_type
projectType: project.project_type,
businessId: project.business_id
}
}
})