260723_03_ENH: unitPrice의 Price BigDecimal로 변경
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user