수수료조회 년월 패딩처리

This commit is contained in:
Rinjae
2025-12-23 15:30:57 +09:00
parent 85fcbc01da
commit 980f96859a
@@ -195,7 +195,9 @@ public class CommissionController {
try {
Map<String, String> jsonMap = new HashMap<>();
jsonMap.put("partnerCode", search.getPartnerCode());
jsonMap.put("targetOnMonth", search.getYear() + search.getMonth());
// 월을 두 자리로 패딩 (예: 1 -> 01, 12 -> 12)
String paddedMonth = String.format("%02d", Integer.parseInt(search.getMonth()));
jsonMap.put("targetOnMonth", search.getYear() + paddedMonth);
return objectMapper.writeValueAsString(jsonMap);
} catch (Exception e) {