260723_03_ENH: unitPrice의 Price BigDecimal로 변경

This commit is contained in:
2026-07-23 16:45:48 +09:00
parent 209b34720e
commit 1428f7e133
4 changed files with 6 additions and 5 deletions

View File

@@ -47,14 +47,14 @@ public class SendCostSummaryWithItrntPrjctDto {
Short sendTy,
Short sendCorp,
Long sendCnt,
Integer unitPrice
BigDecimal unitPrice
) {
this.reqstSvc = reqstSvc;
this.itrntPrjctCd = itrntPrjctCd;
this.sendTy = sendTy;
this.sendCorp = sendCorp;
this.sendCnt = sendCnt;
this.unitPrice = unitPrice != null ? BigDecimal.valueOf(unitPrice) : BigDecimal.ZERO;
this.unitPrice = unitPrice != null ? unitPrice : BigDecimal.ZERO;
this.totalPrice = this.unitPrice.multiply(BigDecimal.valueOf(sendCnt != null ? sendCnt : 0L));
}
}