Explorar o código

테스트 수정

eskim %!s(int64=4) %!d(string=hai) anos
pai
achega
862e5af859

+ 2 - 2
src/main/java/com/style24/scm/biz/service/TssGoodsService.java

@@ -997,7 +997,7 @@ public class TssGoodsService {
 				if (index == 0) {
 					goodsDao.deleteGoodsNotiInfo(goods);
 				}
-				goodsNotiInfo.setNiContent(GagaStringUtil.replace(GagaStringUtil.replace(goodsNotiInfo.getNiContent(), "&lt;", "<"), "&gt;", ">"));
+//				goodsNotiInfo.setNiContent(GagaStringUtil.replace(GagaStringUtil.replace(goodsNotiInfo.getNiContent(), "&lt;", "<"), "&gt;", ">"));
 				goodsNotiInfo.setRegNo(goods.getRegNo());
 				goodsNotiInfo.setUpdNo(goods.getUpdNo());
 				goodsDao.saveGoodsNotiInfo(goodsNotiInfo);
@@ -3995,7 +3995,7 @@ public class TssGoodsService {
 
 		//상품코드 생성
 		regGoods.setGoodsType("G056_D");
-		regGoods.setGoodsNm(GagaStringUtil.replace(GagaStringUtil.replace(goods.getGoodsNm(), "&lt;", "<"), "&gt;", ">"));
+//		regGoods.setGoodsNm(GagaStringUtil.replace(GagaStringUtil.replace(goods.getGoodsNm(), "&lt;", "<"), "&gt;", ">"));
 		regGoods.setSexGb(goods.getSexGb());
 		regGoods.setMainColorCd("XX");
 		regGoods.setOriginCd(goods.getOriginCd());

+ 7 - 8
src/main/webapp/WEB-INF/views/goods/GoodsNoticeForm.html

@@ -68,7 +68,7 @@
 					<tr>
 						<th>공지제목</th>
 						<td>
-							<input name="noteicTitle" type="text" maxlength="200"/>
+							<input name="noticeTitle" type="text" maxlength="200"/>
 						</td>
 						<th>사용여부</th>
 						<td>
@@ -422,22 +422,21 @@
 			return;
 		}
 		
-		var removedData = gagaAgGrid.removeRowData(gridNoticeGoodsOptions, false);
-		
 		// 신규 상세 공지일경우 화면에서만 삭제
 		if (gagajf.isNull($('#goodsNoticeForm input[name=noticeSq]').val())){
 			return;
 		}
 		
-		var arrGoodsCd = [];
-		$.each(selectedData, function(idx, item) {
-			arrGoodsCd.push(item.goodsCd);
-		});
-		
 		mcxDialog.confirm('삭제하시겠습니까?',  {
 			cancelBtnText: "취소",
 			sureBtnText: "확인",
 			sureBtnClick: function(){
+				var removedData = gagaAgGrid.removeRowData(gridNoticeGoodsOptions, false);
+				var arrGoodsCd = [];
+				$.each(selectedData, function(idx, item) {
+					arrGoodsCd.push(item.goodsCd);
+				});
+				
 				var data = {arrGoodsCd : arrGoodsCd
 							,noticeSq : $('#goodsNoticeForm input[name=noticeSq]').val()
 			};