Bladeren bron

政策新闻图片修改

liliang4869 7 jaren geleden
bovenliggende
commit
e2c39123a9

+ 1 - 1
src/main/java/com/goafanti/common/mapper/JtBusinessProjectMapper.xml

@@ -100,7 +100,7 @@
       This element was generated on Wed Jun 20 11:08:54 CST 2018.
     -->
     id, name, category_id as categoryId, number, price, activity_price as activityPrice, member_price as memberPrice, offset, activity_flag as activityFlag, 
-    introduce, province, city, create_time as createTime, min_img_url as minImgUrl, max_img_url as maxImgUrl, value, apply_conditions as applyConditions
+    introduce, province, city, create_time as createTime, min_img_url as minImgUrl, max_img_url as maxImgUrl, value, apply_conditions as applyConditions,owner_id as ownerId
   </sql>
   
     <sql id="My_Base_Column_List">

+ 1 - 1
src/main/java/com/goafanti/portal/controller/PortalNewsController.java

@@ -155,7 +155,7 @@ public class PortalNewsController extends BaseController {
 		}
 		if(newsDetail.getTitleImg()!=null) {
 			String[] imgs=newsDetail.getTitleImg().split(",");
-			modelview.addObject("imgs",imgs);
+			modelview.addObject("imgs",imgs[0]);
 		}
 		modelview.addObject("newsDetail", newsDetail);
 		modelview.addObject("newsList", newsList.getList());