요금 사용내역 캐시 표시 수정

This commit is contained in:
hylee 2024-07-11 11:06:10 +09:00
parent 38fa6d56a8
commit 608894d5e1
3 changed files with 10 additions and 8 deletions

View File

@ -204,7 +204,7 @@ public class MjonMsgVO extends ComDefaultVO{
private int failSendCnt;
private double succSendPrice;
private double failSendPrice;
private double totSuccSendPrice;
private String totSuccSendPrice;
private String bookmarkYn = "N";
@ -1634,10 +1634,10 @@ public class MjonMsgVO extends ComDefaultVO{
public void setFailSendPrice(double failSendPrice) {
this.failSendPrice = failSendPrice;
}
public double getTotSuccSendPrice() {
public String getTotSuccSendPrice() {
return totSuccSendPrice;
}
public void setTotSuccSendPrice(double totSuccSendPrice) {
public void setTotSuccSendPrice(String totSuccSendPrice) {
this.totSuccSendPrice = totSuccSendPrice;
}
public String getBookmarkYn() {

View File

@ -2803,11 +2803,11 @@ public class MjonPayController {
model.addAttribute("paginationInfo", paginationInfo);
model.addAttribute("payUserSWList", payUserSWList);
if(payUserSWList.size() > 0) {
model.addAttribute("totSuccSendPrice", payUserSWList.get(0).getTotSuccSendPrice());
}else {
model.addAttribute("totSuccSendPrice", 0);
}
String totSuccSendPrice = payUserSWList.get(0).getTotSuccSendPrice();
model.addAttribute("totSuccSendPrice", payUserSWList.size() > 0 ? totSuccSendPrice : 0);
model.addAttribute("mjonMsgVO", mjonMsgVO);

View File

@ -24,7 +24,9 @@ $(document).ready(function(){
// 사용금액 캐시 노출
var succPrice = '${totSuccSendPrice}';
console.log('succPrice : ', succPrice);
$('#cashTxtId').text(succPrice.replace(/\B(?=(\d{3})+(?!\d))/g, ','));
// $('#cashTxtId').text(succPrice);
$('#startDate').val('${mjonMsgVO.startDate}');