[feat] negodata: 결렬 폐지→개찰 마감 개편 + 낙찰기준 견적 단위 이관 + 세팅 컬럼 정리 (백엔드+DB)

Co-Authored-By: Claude Opus 4.8뀨 <noreply@anthropic.com>
This commit is contained in:
minaChoiandClaude Opus 4.8뀨 committed 2026-07-06 16:36:00 +09:00
1 parent 1a7674b1e3
commit 38709b3098
14 files changed
+314 -415

No files matched your search

@@ -65,11 +65,7 @@ class QuotationSettingService:
setting = quotation_settings(
user_id=uuid.UUID(user_id),
target_margin_rate=req.target_margin_rate,
anchoring_value=req.anchoring_value,
card_count=req.card_count,
mid_action=req.mid_action.value,
over_action=req.over_action.value,
regen_limit=req.regen_limit,
)
err_type = await DB_SESSION_MNG.execute_lambda_run(
[quotation_settings.DBType()],
@@ -86,11 +82,6 @@ class QuotationSettingService:
user_uuid = uuid.UUID(user_id)
setting_uuid = uuid.UUID(qt_setting_id)
data = req.model_dump(exclude_unset=True)
# PriceGateAction enum → SMALLINT 코드값으로 변환(모델 컬럼이 int)
for k in ("mid_action", "over_action"):
v = data.get(k)
if v is not None and hasattr(v, "value"):
data[k] = v.value
# 소유권 확인
err_type, _ = await self._fetch_owned(user_uuid, setting_uuid)