후불제 협의단가 회원 포인트 적립 안되도록 변경
This commit is contained in:
parent
45c3ec7ec6
commit
1e2c13dca7
@ -2574,17 +2574,46 @@ public class MjonPayServiceImpl extends EgovAbstractServiceImpl implements MjonP
|
||||
UserManageVO umVO = new UserManageVO();
|
||||
umVO.setMberId(mjVO.getUserId());
|
||||
umVO.setCash((float)mjVO.getCash());
|
||||
|
||||
|
||||
/*
|
||||
* 후불고객 포인트 적립 기능 변경
|
||||
* 후불고객 중 협의단가를 적용받는 고객은 포인트 적립을 받지 않는다고 함 (장건영 팀장)
|
||||
* 2024.02.06일 변경처리 우영두
|
||||
*
|
||||
* */
|
||||
|
||||
//회원 협의 단가 정보 조회
|
||||
MberManageVO mberManageVO = mjonMsgDataDAO.selectMberManageInfo(mjVO.getUserId());
|
||||
|
||||
// point 값 넣기
|
||||
mjonPayVO = this.setAdvPointVO(umVO);
|
||||
|
||||
//POINT 테이블
|
||||
mjonPayDAO.insertPoint(mjonPayVO);
|
||||
float shortPrice = mberManageVO.getShortPrice();
|
||||
float longPrice = mberManageVO.getLongPrice();
|
||||
float picturePrice = mberManageVO.getPicturePrice() + mberManageVO.getPicture2Price() + mberManageVO.getPicture3Price();
|
||||
float kakaoAtPrice = mberManageVO.getKakaoAtPrice();
|
||||
float kakaoFtPrice = mberManageVO.getKakaoFtPrice();
|
||||
float totPrice = shortPrice + longPrice + picturePrice + kakaoAtPrice + kakaoFtPrice;
|
||||
|
||||
String negoPriceYn = "N";
|
||||
|
||||
//협의단가 총합이 0 이상이면 협의단가 대상으로 지정
|
||||
if(totPrice > 0) {
|
||||
negoPriceYn = "Y";
|
||||
}
|
||||
|
||||
//협의 단가 정보가 없는 경우만 포인트 적립을 해준다.
|
||||
if(negoPriceYn.equals("N")) {
|
||||
|
||||
// point 값 넣기
|
||||
mjonPayVO = this.setAdvPointVO(umVO);
|
||||
|
||||
//POINT 테이블
|
||||
mjonPayDAO.insertPoint(mjonPayVO);
|
||||
|
||||
//회원정보 POINT 업데이트
|
||||
mjonPayDAO.updateMemberPoint(mjonPayVO);
|
||||
|
||||
}
|
||||
|
||||
//회원정보 POINT 업데이트
|
||||
mjonPayDAO.updateMemberPoint(mjonPayVO);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user