Bladeren bron

무이자 혜택 오류 수정 커밋

card007 4 jaren geleden
bovenliggende
commit
c0000ef3c8

+ 1 - 1
src/main/java/com/style24/persistence/mybatis/shop/TsfGoods.xml

@@ -659,7 +659,7 @@
 		      INNER JOIN TB_COMMON_CODE D ON C.PRMT_TARGET_CD  = D.CD 
 		                                  AND D.CD_GB = 'G941'
 		                                  AND D.USE_YN ='Y'
-		      WHERE NOW() BETWEEN A.PRMT_STD AND A.PRMT_EDD
+		      WHERE NOW() BETWEEN A.PRMT_STD AND ADDDATE(A.PRMT_EDD, INTERVAL 1 DAY)
 		      AND A.DISP_YN  = 'Y'
 		      <if test="prmtGb != null and prmtGb != '' ">
 		      AND A.PRMT_GB = #{prmtGb} -- A:프로모션, B:무이자

+ 2 - 1
src/main/webapp/WEB-INF/views/mob/goods/CardPrmtFormMob.html

@@ -79,7 +79,8 @@
 				</div>
 				</th:block>
 				<th:block th:each="cardInfo, status : ${cardInfoList}" >
-				<div class="benefit_blk"  th:if="${cardInfo.prmtGb == 'B' and not #strings.isEmpty(cardInfo.note) and cardInfo.rownum ==  1}">
+<!--				<div class="benefit_blk"  th:if="${cardInfo.prmtGb == 'B' and not #strings.isEmpty(cardInfo.note) and cardInfo.rownum ==  1}">-->
+				<div class="benefit_blk"  th:if="${cardInfo.prmtGb == 'B' and cardInfo.note != '<p><br></p>' and cardInfo.rownum ==  1}">
 					<h6>부분 무이자 할부</h6>
 					<th:block th:utext="${#strings.unescapeJava(#strings.escapeJava(cardInfo.note))}"></th:block>
 				</div>

+ 2 - 1
src/main/webapp/WEB-INF/views/web/goods/CardPrmtFormWeb.html

@@ -83,7 +83,8 @@
 				</div>
 				</th:block>
 				<th:block th:each="cardInfo, status : ${cardInfoList}" >
-				<div class="benefit_blk"  th:if="${cardInfo.prmtGb == 'B' and not #strings.isEmpty(cardInfo.note) and cardInfo.rownum ==  1}">
+<!--				<div class="benefit_blk"  th:if="${cardInfo.prmtGb == 'B' and not #strings.isEmpty(cardInfo.note) and cardInfo.rownum ==  1}">-->
+				<div class="benefit_blk"  th:if="${cardInfo.prmtGb == 'B' and cardInfo.note != '<p><br></p>' and cardInfo.rownum ==  1}">
 					<h6>부분 무이자 할부</h6>
 					<th:block th:utext="${#strings.unescapeJava(#strings.escapeJava(cardInfo.note))}"></th:block>
 				</div>