浏览代码

샵링커 상품등록-제너레이팅 이미지 보완건

jmh 4 年之前
父节点
当前提交
a7cafeddc1

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

@@ -409,7 +409,7 @@ public class TsaShoplinkerService {
 					dtlDesc += "<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>";
 					dtlDesc += "<div class=\"st_view\" style=\"margin-top: 40px;\">";
 					for(String img : dImgModelList) {
-						dtlDesc += "<img src=\""+ img +"\" alt=\"\" style=\"display: block;margin: 10px auto 0;\">";
+						dtlDesc += "<img src=\""+ img +"\" alt=\"\" style=\"display: block;margin: 10px auto 0; max-width: 100%;\">";
 					}
 					dtlDesc += "</div>";
 					dtlDesc += "</div>";
@@ -421,7 +421,7 @@ public class TsaShoplinkerService {
 					dtlDesc += "<span class=\"st_tit_view\" style=\"display: block;color: #222;font-size: 32px;font-weight: 300;text-align: center;\">PRODUCT VIEW</span>";
 					dtlDesc += "<div class=\"st_view\" style=\"margin-top: 40px;\">";
 					for(String img : dImgDetailList) {
-						dtlDesc += "<img src=\""+ img +"\" alt=\"\" style=\"display: block;margin: 10px auto 0;\">";
+						dtlDesc += "<img src=\""+ img +"\" alt=\"\" style=\"display: block;margin: 10px auto 0; max-width: 100%;\">";
 					}
 	                dtlDesc += "</div>";
 	        		dtlDesc += " </div>";
@@ -432,7 +432,7 @@ public class TsaShoplinkerService {
 	        		dtlDesc += "<div class=\"st_view_fabric_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;\">FABRIC</span>";
 	        		dtlDesc += "<div class=\"st_view\" style=\"margin-top: 40px;\">";
-	        		dtlDesc += "<img src=\""+dMaterial +"\" alt=\"\" style=\"display: block;margin: 10px auto 0;margin-top: 0;\">";
+	        		dtlDesc += "<img src=\""+dMaterial +"\" alt=\"\" style=\"display: block;margin: 10px auto 0;margin-top: 0; max-width: 100%;\">";
 	                dtlDesc += "</div>";
 	                dtlDesc += "</div>";
 				}
@@ -444,7 +444,7 @@ public class TsaShoplinkerService {
 	                dtlDesc += "<div class=\"st_view\" style=\"margin-top: 40px;\">";
 	                dtlDesc += "<span style=\"display:inline-block;\">";
 	                for(String img : dLabelList) {
-						dtlDesc += "<img src=\""+ img +"\" alt=\"\" style=\"float:left; margin-top:0; margin-left:20px;\">";
+						dtlDesc += "<img src=\""+ img +"\" alt=\"\" style=\"float:left; margin-top:0; margin-left:20px; max-width: 100%;\">";
 					}
 	                dtlDesc += "</span>";
 	                dtlDesc += "</div>";

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

@@ -121,7 +121,7 @@
         	AND A.MAIN_COLOR_CD = B.COLOR_CD
         </if>
         <if test='colorListYn != null and colorListYn == "Y"'>
-			AND (B.SYS_IMG_NM LIKE '%_01.jpg' or B.SYS_IMG_NM LIKE '%_02.jpg' )
+			AND (B.SYS_IMG_NM LIKE CONCAT('%',B.COLOR_CD,'_01%') OR B.SYS_IMG_NM LIKE CONCAT('%',B.COLOR_CD,'_02%' ))
         </if>
 		ORDER BY B.COLOR_CD, B.DISP_ORD
 	</select>