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

(cherry picked from commit 739cd09e1a)
This commit is contained in:
이대환
2026-04-27 11:51:18 +09:00
parent 5bce776193
commit 174657ac2c
4 changed files with 87 additions and 113 deletions

View File

@@ -311,20 +311,6 @@ public class BOPurchsEvtService {
// 사은품 이벤트
} 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()))) {
log.debug(" 삭제 리스트 확인 purchsEvtVO . get deleteList : {}", (Object) purchsEvtVO.getDeleteBnefList());
for (String deleteBnefInnb : purchsEvtVO.getDeleteBnefList()) {
@@ -334,7 +320,6 @@ public class BOPurchsEvtService {
}
}
if (purchsEvtVO.getDiscountBnefVOList() != null && !purchsEvtVO.getDiscountBnefVOList().isEmpty()) {
log.debug("사은품 혜택 진입");
for (BOPurchsEvtDiscountBnefVO tempVO : purchsEvtVO.getDiscountBnefVOList()) {

View File

@@ -393,14 +393,6 @@ public class PurchsEvtController {
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()) {

View File

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

View File

@@ -1998,18 +1998,18 @@ since : 2024-01-30 추지훈 최초 생성
</button>
</th>
<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="해당 인풋에 대한 설명">
개 이상 ~
<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="해당 인풋에 대한 설명">
개 미만
</th>
<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="해당 인풋에 대한 설명">
${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="해당 인풋에 대한 설명">
${curUnit} 미만
</th>