fix : 프로모션 > 할인 이벤트 관리 > 이벤트 등록/복사/수정 - 이벤트 혜택 (할인) 개선

This commit is contained in:
이대환
2026-04-27 11:51:18 +09:00
parent 3d91eb6e52
commit 739cd09e1a
4 changed files with 87 additions and 113 deletions

View File

@@ -311,20 +311,6 @@ public class BOPurchsEvtService {
// 사은품 이벤트 // 사은품 이벤트
} else if ("02".equals(purchsEvtVO.getEvtDv())) { } else if ("02".equals(purchsEvtVO.getEvtDv())) {
/*
if (!StringUtils.isEmpty(Arrays.toString(purchsEvtVO.getDeleteGiftList()))) {
log.debug(" 삭제 리스트 확인 purchsEvtVO . get getDeleteGiftList : {}", purchsEvtVO.getDeleteGiftList());
for (String deleteGiftInnb : purchsEvtVO.getDeleteGiftList()) {
log.debug("deleteGiftInnb : {}", deleteGiftInnb);
purchsEvtVO.setDeleteGiftInnb(Integer.parseInt(deleteGiftInnb));
mapper.deleteBOPurchsEvtGiftDel(purchsEvtVO);
}
}
*/
if (!StringUtils.isEmpty(Arrays.toString(purchsEvtVO.getDeleteBnefList()))) { if (!StringUtils.isEmpty(Arrays.toString(purchsEvtVO.getDeleteBnefList()))) {
log.debug(" 삭제 리스트 확인 purchsEvtVO . get deleteList : {}", (Object) purchsEvtVO.getDeleteBnefList()); log.debug(" 삭제 리스트 확인 purchsEvtVO . get deleteList : {}", (Object) purchsEvtVO.getDeleteBnefList());
for (String deleteBnefInnb : purchsEvtVO.getDeleteBnefList()) { for (String deleteBnefInnb : purchsEvtVO.getDeleteBnefList()) {
@@ -334,7 +320,6 @@ public class BOPurchsEvtService {
} }
} }
if (purchsEvtVO.getDiscountBnefVOList() != null && !purchsEvtVO.getDiscountBnefVOList().isEmpty()) { if (purchsEvtVO.getDiscountBnefVOList() != null && !purchsEvtVO.getDiscountBnefVOList().isEmpty()) {
log.debug("사은품 혜택 진입"); log.debug("사은품 혜택 진입");
for (BOPurchsEvtDiscountBnefVO tempVO : purchsEvtVO.getDiscountBnefVOList()) { for (BOPurchsEvtDiscountBnefVO tempVO : purchsEvtVO.getDiscountBnefVOList()) {

View File

@@ -393,14 +393,6 @@ public class PurchsEvtController {
tempVO.setEndAmt(null); tempVO.setEndAmt(null);
} }
if ("01".equals(purchsEvtVO.getDscntBnefDvCd())) {
tempVO.setBgnAmt("0");
tempVO.setEndAmt("0");
} else if ("02".equals(purchsEvtVO.getDscntBnefDvCd())) {
tempVO.setBgnCnt("0");
tempVO.setEndCnt("0");
}
} }
for (BOPurchsEvtDiscountBnefVO tempVO : purchsEvtVO.getDiscountBnefVOList()) { for (BOPurchsEvtDiscountBnefVO tempVO : purchsEvtVO.getDiscountBnefVOList()) {

View File

@@ -413,16 +413,14 @@
REGIST_DT, REGIST_DT,
UPDUSR, UPDUSR,
UPDT_DT UPDT_DT
) SELECT ) VALUES (
#{seq}, #{seq},
#{sopmalCd}, #{sopmalCd},
#{evtInnb}, #{evtInnb},
]]> ]]>
<if test="@com.wb.domainserver.util.dataaccess.MybaitsUtil@isNotEmpty(bgnCnt)"> <if test="@com.wb.domainserver.util.dataaccess.MybaitsUtil@isNotEmpty(bgnCnt)">REPLACE(#{bgnCnt}, ',', ''),
REPLACE(#{bgnCnt}, ',', ''),
</if> </if>
<if test="@com.wb.domainserver.util.dataaccess.MybaitsUtil@isNotEmpty(endCnt)"> <if test="@com.wb.domainserver.util.dataaccess.MybaitsUtil@isNotEmpty(endCnt)">REPLACE(#{endCnt}, ',', ''),
REPLACE(#{endCnt}, ',', ''),
</if> </if>
<if test="@com.wb.domainserver.util.dataaccess.MybaitsUtil@isNotEmpty(bgnAmt)"> <if test="@com.wb.domainserver.util.dataaccess.MybaitsUtil@isNotEmpty(bgnAmt)">
REPLACE(#{bgnAmt}, ',', ''), REPLACE(#{bgnAmt}, ',', ''),
@@ -457,8 +455,7 @@
SYSDATE(), SYSDATE(),
#{updusr}, #{updusr},
SYSDATE() SYSDATE()
FROM )
GC_EVENT_BENEFITS
ON DUPLICATE KEY UPDATE ON DUPLICATE KEY UPDATE
BGN_CNT = VALUES(BGN_CNT), BGN_CNT = VALUES(BGN_CNT),
END_CNT = VALUES(END_CNT), END_CNT = VALUES(END_CNT),

View File

@@ -1998,18 +1998,18 @@ since : 2024-01-30 추지훈 최초 생성
</button> </button>
</th> </th>
<th class="border-right"> <th class="border-right">
<input class="input-text xsm number right" value="0" type="text" name="bgnCnt" <input class="input-text xsm number right evt_benf_cnt" value="0" type="text" name="bgnCnt"
title="해당 인풋에 대한 설명"> title="해당 인풋에 대한 설명">
개 이상 ~ 개 이상 ~
<input class="input-text xsm number right" value="0" type="text" name="endCnt" <input class="input-text xsm number right evt_benf_cnt" value="0" type="text" name="endCnt"
title="해당 인풋에 대한 설명"> title="해당 인풋에 대한 설명">
개 미만 개 미만
</th> </th>
<th class="border-right"> <th class="border-right">
<input class="input-text xsm number right" value="0" type="text" name="bgnAmt" <input class="input-text xsm number right evt_benf_amt" value="0" type="text" name="bgnAmt"
title="해당 인풋에 대한 설명"> title="해당 인풋에 대한 설명">
${curUnit} 이상 ~ ${curUnit} 이상 ~
<input class="input-text xsm number right" value="0" type="text" name="endAmt" <input class="input-text xsm number right evt_benf_amt" value="0" type="text" name="endAmt"
title="해당 인풋에 대한 설명"> title="해당 인풋에 대한 설명">
${curUnit} 미만 ${curUnit} 미만
</th> </th>