feat: PMPLUS20(v2) 테이블 매핑 완료 및 쿼리 수정

- config.py: PMPLUS20 서버(192.168.0.201\PMPLUS20) 및 SA 비밀번호 수정
- v2_pmplus20.py: PS_MAIN→TBSID040_03, CD_SUNAB→TBSIR000_01 매핑 적용
  - 컬럼 매핑: PRICE_T→TOT_PRICE, PRICE_C→INS_PRICE, PRICE_P→EXE_PRICE 등
  - Drug_T4 = NON_DRUG_PRICE + EXP_EXE_PRICE
  - Holiday = HD_ADD + PRES_TIME_GUBUN 조합
  - PreGubun = MPRE_TYPE (차상위 F 별도 처리)
  - PRES_GUBUN='E' 재고보정 레코드 제외
- PMPLUS20_MIGRATION_GUIDE.md: 전체 매핑 가이드 문서 추가
- app.py: 포트 5060→5050 변경

20260324 기준 검증: 건수/금액/보험별/결제별 일치 확인
PRICE_N(수납) 2건 차이(23,420원)는 비급여 수납 처리 개선에 의한 정상 차이

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-04-01 14:45:31 +00:00
parent 8e6552724a
commit 8b4e8f7a0a
4 changed files with 269 additions and 32 deletions

View File

@@ -4,7 +4,7 @@ import os
# PharmIT3000 (v1)
PHARMIT3000_CONFIG = {
'server': os.getenv('PHARMIT_SERVER', '192.168.0.4\\PM2014'),
'server': os.getenv('PHARMIT_SERVER', '192.168.0.201\\PM2014'),
'database': 'PM_PRES',
'username': os.getenv('PHARMIT_USER', 'sa'),
'password': os.getenv('PHARMIT_PASS', 'tmddls214!%('),
@@ -12,8 +12,8 @@ PHARMIT3000_CONFIG = {
# PMPLUS20 (v2)
PMPLUS20_CONFIG = {
'server': os.getenv('PMPLUS_SERVER', '192.168.0.4\\PM2014'),
'server': os.getenv('PMPLUS_SERVER', '192.168.0.201\\PMPLUS20'),
'database': 'PM_MAIN',
'username': os.getenv('PMPLUS_USER', 'sa'),
'password': os.getenv('PMPLUS_PASS', 'tmddls214!%('),
'password': os.getenv('PMPLUS_PASS', 'newpro2020!@'),
}