Przeglądaj źródła

首页热门推荐 文字的显示问题修改

limin 7 lat temu
rodzic
commit
a518a9cab2

+ 8 - 1
src/main/java/com/goafanti/common/controller/WebpageController.java

@@ -679,7 +679,14 @@ public class WebpageController extends BaseController {
 			if (project.getMaxImgUrl() != null && project.getMaxImgUrl().length() <= 0)
 				project.setMaxImgUrl(null);
 			if (project.getMinImgUrl() != null && project.getMinImgUrl().length() <= 0)
-				project.setMinImgUrl(null);
+				project.setMinImgUrl(null);
+			
+			//去除数据中的标签
+			if(StringUtils.isNotBlank(project.getIntroduce())){
+				project.setIntroduce(project.getIntroduce().replaceAll("\\<.*?>", "")); 
+			}
+				
+			
 		}
 		modelview.addObject("projects", jtBusinessProjects);
 		List<PolicyResult> policies = (List<PolicyResult>) policyService

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

@@ -645,6 +645,9 @@
   <if test="module == 0">
   and jtbc1.module &gt; 1
   </if>
+  <if test="isHot != null">
+  and jtbp.is_hot = #{isHot,jdbcType=INTEGER}
+  </if>
   <!-- <if test="module == 1">
   and jtbc1.module =1
   </if> -->
@@ -703,6 +706,9 @@
  <if test="module == 0">
   and jtbc1.module &gt; 1
   </if>
+  <if test="isHot != null">
+  and jtbp.is_hot = #{isHot,jdbcType=INTEGER}
+  </if>
  <!--  <if test="module == 1">
   and jtbc1.module =1
   </if> -->