JinWook Ock옥진욱
KO
All projects

AptERP SaaS

Apartment ERP · flagship long-term product

Cut the metering query from about 10 seconds to 3 to 4 seconds.

By splitting out a QueryDSL service layer. Measured in the browser network tab.

What I built

Multi-tenant SaaS ERP live across many sites — 20+ domains: accounting, billing, HR, assets, metering, etc. Meter-query response cut ~65% (~10s → 3–4s). cplxCd tenancy, shared QueryDSL layer, dual security chains. Owned Jenkins CI/CD and blue/green zero-downtime releases (SSH plugin invoking remote deploy scripts).

Key work

Meter query 65% faster
QueryDSL + service-layer split, ~10s → 3–4s (network tab)
PrintOrderCode enum with NumberPath
11 sort modes without if/switch
RangeCondition
one method reused across 20+ domains
Oracle MyBatis XML 400–500 lines → single QueryDSL method
Dual Spring Security chains
JWT (@Order 1) / session (@Order 2)
Jenkins CI/CD and blue/green
SSH plugin runs remote deploy scripts for zero-downtime cutovers
Feign-based MSA REST
e-vote, parking, and other service integrations
nginx outage from OpenSSL/needrestart
systemd RestartSec/retries + AWS SMTP team alerts

Code

PrintOrderCode.java
// Enum이 QEntity 경로를 직접 보유 → 서비스 코드 분기 제거
public enum PrintOrderCode {
 
FLOOR_ASC ("FLUP", QBaseEntity.entity.sortFloorAsc, "층 오름"),
FLOOR_DESC("FLDN", QBaseEntity.entity.sortFloorDesc, "층 내림"),
// ... 총 11가지 정렬
 
private String code;
private NumberPath<Long> sortPath;
}
 
// 정렬 조합: 동 기본 정렬 + Enum 경로 정렬 (if/switch 없음)
specs.add(new OrderSpecifier<>(Order.ASC, entity.blockNo));
specs.add(new OrderSpecifier<>(Order.ASC, code.getSortPath()));
Next projectMarket System