Просмотр исходного кода

샵링커 상품전송-기술서수정

jmh 4 лет назад
Родитель
Сommit
41ad9c9e19
1 измененных файлов с 10 добавлено и 6 удалено
  1. 10 6
      src/main/java/com/style24/admin/biz/service/TsaShoplinkerService.java

+ 10 - 6
src/main/java/com/style24/admin/biz/service/TsaShoplinkerService.java

@@ -355,7 +355,9 @@ public class TsaShoplinkerService {
 				if( 0 < dImgModelList.size()) {
 				if( 0 < dImgModelList.size()) {
 					modelDesc += "<div class=\"st_view_outfit_box\" style=\"margin-top: 100px;text-align: center;\">";
 					modelDesc += "<div class=\"st_view_outfit_box\" style=\"margin-top: 100px;text-align: center;\">";
 					modelDesc += "<span class=\"st_tit_view\" style=\"display: block;color: #222;font-size: 32px;font-weight: 300;text-align: center;\">OUTFIT VIEW</span>";
 					modelDesc += "<span class=\"st_tit_view\" style=\"display: block;color: #222;font-size: 32px;font-weight: 300;text-align: center;\">OUTFIT VIEW</span>";
-					modelDesc += "<span class=\"st_model_info\" style=\"display: block;margin-top: 20px;color: #666;font-size: 16px;font-weight: 200;text-align: center;\">"+goodsMap.getModelInfo()+"</span>";
+					if(!StringUtils.isBlank(goodsMap.getModelInfo())) {
+						modelDesc += "<span class=\"st_model_info\" style=\"display: block;margin-top: 20px;color: #666;font-size: 16px;font-weight: 200;text-align: center;\">"+goodsMap.getModelInfo()+"</span>";
+					}
 					modelDesc += "<div class=\"st_view\" style=\"margin-top: 40px;\">";
 					modelDesc += "<div class=\"st_view\" style=\"margin-top: 40px;\">";
 					for(String img : dImgModelList) {
 					for(String img : dImgModelList) {
 						modelDesc += "<img src=\""+ img +"\" alt=\"\" style=\"display: block;margin: 10px auto 0; max-width:720px;width:auto;\">";
 						modelDesc += "<img src=\""+ img +"\" alt=\"\" style=\"display: block;margin: 10px auto 0; max-width:720px;width:auto;\">";
@@ -368,9 +370,9 @@ public class TsaShoplinkerService {
 				
 				
 				// 2) 상세내용 - 상품설명
 				// 2) 상세내용 - 상품설명
 				htmlDesc += "<div class=\"st_descrp_box\" style=\"max-height:1100px; overflow:hidden; text-align: left; color:#222;\">";
 				htmlDesc += "<div class=\"st_descrp_box\" style=\"max-height:1100px; overflow:hidden; text-align: left; color:#222;\">";
-				if( null != goodsMap.getDetailDescNew20()) {
+				if(!StringUtils.isBlank(goodsMap.getDetailDescNew20())) {
 					htmlDesc += "<div class=\"st_desc_simple\" style=\"position:relative; margin-top:0px; margin-left:auto; margin-right:auto;\">";
 					htmlDesc += "<div class=\"st_desc_simple\" style=\"position:relative; margin-top:0px; margin-left:auto; margin-right:auto;\">";
-					if( null != goodsMap.getDetailDescNew10()) {
+					if(!StringUtils.isBlank(goodsMap.getDetailDescNew10())) {
 						htmlDesc += "<span class=\"st_tit_desc\" style=\"display:block; margin-bottom:10px; font-size:18px; font-weight:500; letter-spacing:-0.025em;\">"+goodsMap.getDetailDescNew10()+"</span>";
 						htmlDesc += "<span class=\"st_tit_desc\" style=\"display:block; margin-bottom:10px; font-size:18px; font-weight:500; letter-spacing:-0.025em;\">"+goodsMap.getDetailDescNew10()+"</span>";
 					}
 					}
 					htmlDesc += "<span class=\"st_ptxt01\" style=\"font-size:16px;font-weight:200;line-height:1.5;word-break:keep-all;color:#666666;\">";
 					htmlDesc += "<span class=\"st_ptxt01\" style=\"font-size:16px;font-weight:200;line-height:1.5;word-break:keep-all;color:#666666;\">";
@@ -378,7 +380,7 @@ public class TsaShoplinkerService {
 					htmlDesc += "</span>";
 					htmlDesc += "</span>";
 					htmlDesc += "</div>";
 					htmlDesc += "</div>";
 				}
 				}
-				if( null != goodsMap.getDetailDescNew30()) {
+				if(!StringUtils.isBlank(goodsMap.getDetailDescNew30())) {
 					htmlDesc += "<div class=\"st_desc_character\" style=\"position:relative; margin-top:40px; margin-left:auto; margin-right:auto;\">";
 					htmlDesc += "<div class=\"st_desc_character\" style=\"position:relative; margin-top:40px; margin-left:auto; margin-right:auto;\">";
 					htmlDesc += "<span class=\"st_tit_desc\" style=\"display:block; margin-bottom:10px; font-size:18px; font-weight:500; letter-spacing:-0.025em;\">상품특징</span>";
 					htmlDesc += "<span class=\"st_tit_desc\" style=\"display:block; margin-bottom:10px; font-size:18px; font-weight:500; letter-spacing:-0.025em;\">상품특징</span>";
 					htmlDesc += "<span class=\"st_ptxt01\" style=\"font-size:16px;font-weight:200;line-height:1.5;word-break:keep-all;color:#666666;\">";
 					htmlDesc += "<span class=\"st_ptxt01\" style=\"font-size:16px;font-weight:200;line-height:1.5;word-break:keep-all;color:#666666;\">";
@@ -446,9 +448,11 @@ public class TsaShoplinkerService {
 	                dtlDesc += "<div class=\"st_view_label_box\" style=\"margin-top: 100px;text-align: center;\">";
 	                dtlDesc += "<div class=\"st_view_label_box\" style=\"margin-top: 100px;text-align: center;\">";
 	                dtlDesc += "<span class=\"st_tit_view\" style=\"display: block;color: #222;font-size: 32px;font-weight: 300;text-align: center;\">LABEL INFO</span>";
 	                dtlDesc += "<span class=\"st_tit_view\" style=\"display: block;color: #222;font-size: 32px;font-weight: 300;text-align: center;\">LABEL INFO</span>";
 	                dtlDesc += "<div class=\"st_view\" style=\"margin-top: 40px;\">";
 	                dtlDesc += "<div class=\"st_view\" style=\"margin-top: 40px;\">";
+	                dtlDesc += "<span style=\"display:inline-block;\">";
 	                for(String img : dLabelList) {
 	                for(String img : dLabelList) {
 						dtlDesc += "<img src=\""+ img +"\" alt=\"\" style=\"float:left; margin-top:0; margin-left:20px; max-width: 250px;width:100%;\">";
 						dtlDesc += "<img src=\""+ img +"\" alt=\"\" style=\"float:left; margin-top:0; margin-left:20px; max-width: 250px;width:100%;\">";
 					}
 					}
+	                dtlDesc += "</span>";
 	                dtlDesc += "</div>";
 	                dtlDesc += "</div>";
 	                dtlDesc += "</div>";
 	                dtlDesc += "</div>";
 				}
 				}
@@ -560,7 +564,7 @@ public class TsaShoplinkerService {
                 			if( null != certInfo.getCertDiv()) {
                 			if( null != certInfo.getCertDiv()) {
 	                			htmlDesc += "<div class=\"st_required_box\" style=\"margin-bottom:80px;\">";
 	                			htmlDesc += "<div class=\"st_required_box\" style=\"margin-bottom:80px;\">";
 	                			htmlDesc += "<div class=\"st_area_kcl\" style=\"color:#222;display:block; position:relative; min-height:160px; margin-top:100px; padding:40px 40px 40px 160px; box-sizing:border-box; background:#f5f5f5;\">";
 	                			htmlDesc += "<div class=\"st_area_kcl\" style=\"color:#222;display:block; position:relative; min-height:160px; margin-top:100px; padding:40px 40px 40px 160px; box-sizing:border-box; background:#f5f5f5;\">";
-	                			htmlDesc += "<i class=\"st_ico_kcl\" style=\"position:absolute;left:64px;top:50%;transform:translateY(-50%);z-index:2;background-image: url(/images/pc/ico_kcl.png);width: 32px;height: 50px;display: inline-block;vertical-align: middle;background-repeat: no-repeat;background-size: contain;background-position: 0% 0%;\"></i>";
+	                			htmlDesc += "<i class=\"st_ico_kcl\" style=\"position:absolute;left:64px;top:50%;transform:translateY(-50%);z-index:2;background-image: url(\"https://image.istyle24.com/Style24/images/pc/ico_kcl.png\");width: 32px;height: 50px;display: inline-block;vertical-align: middle;background-repeat: no-repeat;background-size: contain;background-position: 0% 0%;\"></i>";
 	                			htmlDesc += "<p class=\"st_tit\" style=\"margin-top:0;color:#222;font-size:16px;font-weight:300;line-height:1;letter-spacing:-0.025em;\">";
 	                			htmlDesc += "<p class=\"st_tit\" style=\"margin-top:0;color:#222;font-size:16px;font-weight:300;line-height:1;letter-spacing:-0.025em;\">";
 	                			htmlDesc += certInfo.getCertTargetNm() +"/"+ certInfo.getCertOrganName();
 	                			htmlDesc += certInfo.getCertTargetNm() +"/"+ certInfo.getCertOrganName();
 	                            htmlDesc += "</p>";
 	                            htmlDesc += "</p>";
@@ -577,7 +581,7 @@ public class TsaShoplinkerService {
                 		}else {
                 		}else {
                 			htmlDesc += "<div class=\"st_required_box\" style=\"margin-bottom:80px;\">";
                 			htmlDesc += "<div class=\"st_required_box\" style=\"margin-bottom:80px;\">";
                 			htmlDesc += "<div class=\"st_area_kcl\" style=\"display:block; position:relative; min-height:160px; margin-top:100px; padding:40px 40px 40px 160px; box-sizing:border-box; background:#f5f5f5;\">";
                 			htmlDesc += "<div class=\"st_area_kcl\" style=\"display:block; position:relative; min-height:160px; margin-top:100px; padding:40px 40px 40px 160px; box-sizing:border-box; background:#f5f5f5;\">";
-                			htmlDesc += "<i class=\"st_ico_kcl\" style=\"position:absolute;left:64px;top:50%;transform:translateY(-50%);z-index:2;background-image: url(/images/pc/ico_kcl.png);width: 32px;height: 50px;display: inline-block;vertical-align: middle;background-repeat: no-repeat;background-size: contain;background-position: 0% 0%;\"></i>";
+                			htmlDesc += "<i class=\"st_ico_kcl\" style=\"position:absolute;left:64px;top:50%;transform:translateY(-50%);z-index:2;background-image: url(\"https://image.istyle24.com/Style24/images/pc/ico_kcl.png\");width: 32px;height: 50px;display: inline-block;vertical-align: middle;background-repeat: no-repeat;background-size: contain;background-position: 0% 0%;\"></i>";
                 			htmlDesc += "<p class=\"st_tit\" style=\"margin-top:0;color:#222;font-size:16px;font-weight:300;line-height:1;letter-spacing:-0.025em;\">";
                 			htmlDesc += "<p class=\"st_tit\" style=\"margin-top:0;color:#222;font-size:16px;font-weight:300;line-height:1;letter-spacing:-0.025em;\">";
                 			htmlDesc += certInfo.getCertDiv() +"/"+ certInfo.getCertOrganName();
                 			htmlDesc += certInfo.getCertDiv() +"/"+ certInfo.getCertOrganName();
                             htmlDesc += "</p>";
                             htmlDesc += "</p>";