소스 검색

需求修改,首页字数限制

liliang4869 7 년 전
부모
커밋
d6fdf856de

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

@@ -1083,7 +1083,7 @@ left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchI
    from demand d
   left join aft.industry_category  fg  on fg.id=d.industry_category_a
     left join aft.industry_category fgg  on fgg.id=d.industry_category_b
-    where d.id=#{0} and d.data_category=#{1}
+    where d.id=#{0}
   </select>
   <select id="getBoutiqueDemandList" resultType="com.goafanti.demand.bo.DemandListBo">
  select d.id,d.name,picture_url as picture_url,data_category as dataCategory,problem_des as problemDes

+ 3 - 0
src/main/java/com/goafanti/news/controller/AdminPolicyApiController.java

@@ -24,6 +24,7 @@ import com.goafanti.common.model.Policy;
 import com.goafanti.common.utils.StringUtils;
 import com.goafanti.core.mybatis.JDBCIdGenerator;
 import com.goafanti.news.bo.InputNews;
+import com.goafanti.news.bo.newsInterestBo;
 import com.goafanti.news.service.PolicyService;
 
 
@@ -56,6 +57,7 @@ public class AdminPolicyApiController extends BaseApiController {
 				return result;
 			}
 			policy.setCreateTime(new Date());
+			policy.setEditTime(new Date());
 			policy.setId(idGenerator.generateId());
 			policy.setType(0);
 			if(policy.getAuditStatus()!=null &&policy.getAuditStatus() == 2) {
@@ -142,6 +144,7 @@ public class AdminPolicyApiController extends BaseApiController {
 				if(policy.getAuditStatus()!=null &&policy.getAuditStatus() == 2) {
 					policy.setReleaseDate(new Date());
 				}
+				policy.setEditTime(new Date());
 		
 				result.setData(policyService.updateSelectively( policy,webPages,appPages)); 
 	

+ 4 - 4
src/main/webapp/WEB-INF/views/portal/index.html

@@ -220,13 +220,13 @@
 					<div class="indexServe_bots">
 					<div class="wrapper">
 						<h3 th:text="${'什么是'+pj.name+'?'}"></h3>
-						<p th:text="${pj.introduce}"></p>
+						<p th:text="${#strings.abbreviate(pj.introduce,128)}"></p>
 						</div>
 						<img th:src="${pj.maxImgUrl}==null?${portalHost+'/img/indexNew8.jpg'}:${avatarUploadHost+pj.maxImgUrl}" alt="" />
 					</div>
 					<div class="indexServe_bot">
 						<div>认定好处</div>
-						<p th:text="${pj.value}"></p>
+						<p th:text="${#strings.abbreviate(pj.value,128)}"></p>
 					</div>
 					<a th:href="@{/portal/service/serviceDetail(id=${pj.id})}">
 					<div class="indexServe_img">
@@ -239,11 +239,11 @@
 					<img th:src="${pj1.maxImgUrl}==null?${portalHost+'/img/indexNew8.jpg'}:${avatarUploadHost+pj1.maxImgUrl}" alt="" />
 					<div class="indexServe_bots">
 							<h3 th:text="${'什么是'+pj1.name+'?'}"></h3>
-						<p th:text="${pj1.introduce}"></p>
+						<p th:text="${#strings.abbreviate(pj1.introduce,100)}"></p>
 					</div>
 					<div class="indexServe_bot">
 						<div>认定好处</div>
-							<p th:text="${pj1.value}"></p>
+							<p th:text="${#strings.abbreviate(pj1.value,100)}"></p>
 							<a th:href="@{/portal/service/serviceDetail(id=${pj1.id})}">
 					<div class="indexServe_img">
 						<p>