[feat] negodata: 결렬 폐지→개찰 마감 개편 + 낙찰기준 견적 단위 이관 + 세팅 컬럼 정리 (백엔드+DB)
Co-Authored-By: Claude Opus 4.8뀨 <noreply@anthropic.com>
This commit is contained in:
1 parent
1a7674b1e3
commit
38709b3098
14 files changed
+314
-415
No files matched your search
@@ -31,15 +31,15 @@ async def _close_each(service: QuotationService, qt_ids) -> Counter:
|
||||
|
||||
def _format_results(results: Counter) -> str:
|
||||
return (
|
||||
f"낙찰 {results[CloseOutcome.AWARDED]} / 재생성 {results[CloseOutcome.REGENERATED]} / "
|
||||
f"재생성실패 {results[CloseOutcome.REGEN_FAILED]} / 마감 {results[CloseOutcome.CLOSED]} / 오류 {results['error']}"
|
||||
f"낙찰 {results[CloseOutcome.AWARDED]} / 개찰 {results[CloseOutcome.OPENED]} / "
|
||||
f"마감 {results[CloseOutcome.CLOSED]} / 오류 {results['error']}"
|
||||
)
|
||||
|
||||
|
||||
async def close_expired_quotations() -> int:
|
||||
"""[잡①] 마감일이 지난 견적을 자동 마감 처리한다. 하루 한 번 실행.
|
||||
대상: 마감 시각이 이미 지났는데 아직 마감되지 않은(삭제되지도 않은) 견적.
|
||||
처리: 견적마다 close_and_decide 로 결과 판정(낙찰 확정 / 다음 라운드 재생성 / 그냥 마감).
|
||||
처리: 견적마다 close_and_decide 로 결과 판정(낙찰 확정 / 개찰=낙찰자 미정 마감).
|
||||
반환: 처리한 견적 수."""
|
||||
crud = QuotationCRUD()
|
||||
service = QuotationService(crud)
|
||||
|
||||
Reference in new issue
Block a user