포인트 전환 요청시 음수(-)값 처리를 위해 절대값 변경 추가

This commit is contained in:
woo 2023-08-24 11:59:27 +09:00
parent 218471a8ad
commit e296be7a7a

View File

@ -3811,6 +3811,10 @@ public class MjonPayController {
refundVO.setMberId(user.getId()); refundVO.setMberId(user.getId());
RefundVO mberInfoVO = refundService.selectRefundMberInfo(refundVO); RefundVO mberInfoVO = refundService.selectRefundMberInfo(refundVO);
//포인트 교환요청에서 포인트 정보가 음수(-) 넘어오는 경우 처리를 위해 절대값 처리 해줌. - 20230824 우영두
mjonPayVO.setPoint(Math.abs(mjonPayVO.getPoint()));
if(Double.parseDouble(mberInfoVO.getMberPoint()) if(Double.parseDouble(mberInfoVO.getMberPoint())
< mjonPayVO.getPoint()) { < mjonPayVO.getPoint()) {