소스 검색

成果首页实用技术、政策

liliang4869 7 년 전
부모
커밋
d9f71ba79e

+ 7 - 0
src/main/java/com/goafanti/achievement/service/AchievementService.java

@@ -7,6 +7,7 @@ import com.goafanti.achievement.bo.AchievementListBo;
 import com.goafanti.achievement.bo.AchievementOrgOwnerDetailBo;
 import com.goafanti.achievement.bo.AchievementPartnerListBo;
 import com.goafanti.achievement.bo.AchievementUserOwnerDetailBo;
+import com.goafanti.common.bo.PolicyEntity;
 import com.goafanti.common.model.Achievement;
 import com.goafanti.core.mybatis.page.Pagination;
 import com.goafanti.demand.bo.DemandAchievementListBo;
@@ -110,4 +111,10 @@ public List<AchievementObject> recentAchievements(int size,String url,String sho
 
 public List<AchievementObject>getHotAchievements(int size,String url,String showLocation);
 
+public List<AchievementObject>getPatentList(int size,String url,String showLocation);
+
+public List<AchievementObject>getPracticalTechnologys(int size,String url,String showLocation);
+
+List<PolicyEntity> getIntellectualProperty(int size);
+
 }

+ 19 - 0
src/main/java/com/goafanti/achievement/service/impl/AchievementServiceImpl.java

@@ -24,6 +24,7 @@ import com.goafanti.achievement.bo.AchievementOrgOwnerDetailBo;
 import com.goafanti.achievement.bo.AchievementPartnerListBo;
 import com.goafanti.achievement.bo.AchievementUserOwnerDetailBo;
 import com.goafanti.achievement.service.AchievementService;
+import com.goafanti.common.bo.PolicyEntity;
 import com.goafanti.common.constant.AFTConstants;
 import com.goafanti.common.dao.AchievementDemandCountMapper;
 import com.goafanti.common.dao.AchievementDemandMapper;
@@ -886,6 +887,24 @@ public class AchievementServiceImpl extends BaseMybatisDao<AchievementMapper> im
 		// TODO Auto-generated method stub
 		return achievementMapper.getHotAchievements( size,  url,  showLocation);
 	}
+
+	@Override
+	public List<AchievementObject> getPatentList(int size, String url, String showLocation) {
+		// TODO Auto-generated method stub
+		return achievementMapper.getPatentList(size,url,showLocation);
+	}
+
+	@Override
+	public List<AchievementObject> getPracticalTechnologys(int size, String url, String showLocation) {
+		// TODO Auto-generated method stub
+		return achievementMapper.getPracticalTechnologys(size,url,showLocation);
+	}
+
+	@Override
+	public List<PolicyEntity> getIntellectualProperty(int size) {
+		// TODO Auto-generated method stub
+		return achievementMapper.getIntellectualProperty(size);
+	}
 	
 	
 	

+ 79 - 0
src/main/java/com/goafanti/common/bo/PolicyEntity.java

@@ -0,0 +1,79 @@
+package com.goafanti.common.bo;
+
+import java.sql.Date;
+
+public class PolicyEntity {
+Date createTime;
+Date editTime;
+String title;
+Integer province;
+String provinceS;
+Integer city;
+String cityS;
+String summary;
+String content;
+String titleImg;
+//String firstPictureUrl;
+public Date getCreateTime() {
+	return createTime;
+}
+public void setCreateTime(Date createTime) {
+	this.createTime = createTime;
+}
+public Date getEditTime() {
+	return editTime;
+}
+public void setEditTime(Date editTime) {
+	this.editTime = editTime;
+}
+public String getTitle() {
+	return title;
+}
+public void setTitle(String title) {
+	this.title = title;
+}
+public Integer getProvince() {
+	return province;
+}
+public void setProvince(Integer province) {
+	this.province = province;
+}
+public String getProvinceS() {
+	return provinceS;
+}
+public void setProvinceS(String provinceS) {
+	this.provinceS = provinceS;
+}
+public Integer getCity() {
+	return city;
+}
+public void setCity(Integer city) {
+	this.city = city;
+}
+public String getCityS() {
+	return cityS;
+}
+public void setCityS(String cityS) {
+	this.cityS = cityS;
+}
+public String getSummary() {
+	return summary;
+}
+public void setSummary(String summary) {
+	this.summary = summary;
+}
+public String getContent() {
+	return content;
+}
+public void setContent(String content) {
+	this.content = content;
+}
+public String getTitleImg() {
+	return titleImg;
+}
+public void setTitleImg(String titleImg) {
+	this.titleImg = titleImg;
+}
+
+
+}

+ 12 - 6
src/main/java/com/goafanti/common/controller/WebpageController.java

@@ -16,6 +16,7 @@ import com.goafanti.achievement.bo.AchievementListBo;
 import com.goafanti.achievement.service.AchievementService;
 import com.goafanti.banners.enums.BannersType;
 import com.goafanti.banners.service.BannersService;
+import com.goafanti.common.bo.PolicyEntity;
 import com.goafanti.common.bo.fieldGlossoryBo;
 import com.goafanti.common.constant.PageConstants;
 import com.goafanti.common.model.Banners;
@@ -536,14 +537,19 @@ public class WebpageController extends BaseController {
 		//最新成果
 		List<AchievementObject>recentAchievements=achievementService.recentAchievements(5,url,showLocation);
 		modelview.addObject("recentAchievements",recentAchievements);
-		for(AchievementObject achievementObject:recentAchievements) {
-			if(achievementObject.getTechnicalPictureUrl()==null || !achievementObject.getTechnicalPictureUrl().contains("."))achievementObject.setTechnicalPictureUrl(null);
-			else achievementObject.setTechnicalPictureUrl(achievementObject.getTechnicalPictureUrl().split(",")[0]);
-		}
-		
+		//热门关注
 		List<AchievementObject> hotAchievements=achievementService.getHotAchievements(6,url,showLocation);
 		modelview.addObject("hotAchievements",hotAchievements);
-		//热门关注
+		
+		//专利
+		List<AchievementObject>patentAchievements=achievementService.getPatentList(9,url,showLocation);
+		modelview.addObject("patents",patentAchievements);
+		//实用技术
+		List<AchievementObject>practicalTechnology=achievementService.getPracticalTechnologys(8,url,showLocation);
+		modelview.addObject("practicalTechnology",practicalTechnology); 
+		
+		List<PolicyEntity>intellectualPropertyPolicyList=achievementService.getIntellectualProperty(5);
+		modelview.addObject("policyList",intellectualPropertyPolicyList);
 		return modelview;
 	}
 

+ 7 - 0
src/main/java/com/goafanti/common/dao/AchievementMapper.java

@@ -11,6 +11,7 @@ import com.goafanti.achievement.bo.AchievementPartnerListBo;
 import com.goafanti.achievement.bo.AchievementRecommended;
 import com.goafanti.achievement.bo.AchievementUserOwnerDetailBo;
 import com.goafanti.app.bo.HomeAchievemend;
+import com.goafanti.common.bo.PolicyEntity;
 import com.goafanti.common.model.Achievement;
 import com.goafanti.portal.bo.AchievementDetailBo;
 import com.goafanti.portal.bo.AchievementObject;
@@ -83,4 +84,10 @@ public interface AchievementMapper {
 	
 	List<AchievementObject>getHotAchievements(int size,String url,String showLocation);
 	
+	List<AchievementObject>getPatentList(int size,String url,String showLocation);
+	
+	List<AchievementObject>getPracticalTechnologys(int size,String url,String showLocation);
+	
+	List<PolicyEntity>getIntellectualProperty(int size);
+	
 }

+ 41 - 0
src/main/java/com/goafanti/common/enums/AchievementDataCategory.java

@@ -0,0 +1,41 @@
+package com.goafanti.common.enums;
+
+public enum AchievementDataCategory {
+	 IntellectualProperty(0,"知识产权"),
+	PracticalTechnology(1,"实用技术"),
+	TechieProduct(2,"科技产品"),
+	Unknow(-1,"未知类型")
+	;
+		int i;
+		String name;
+		
+		private AchievementDataCategory(int i, String name) {
+			this.i = i;
+			this.name = name;
+		}
+
+		public int getI() {
+			return i;
+		}
+
+		public void setI(int i) {
+			this.i = i;
+		}
+
+		public String getName() {
+			return name;
+		}
+
+		public void setName(String name) {
+			this.name = name;
+		}
+		public static AchievementDataCategory find(int i)
+		{
+			for(AchievementDataCategory achievementCategory:values())
+			{
+				if(achievementCategory.getI()==i)return achievementCategory;
+			}
+			return Unknow;
+		}
+
+}

+ 44 - 0
src/main/java/com/goafanti/common/enums/TransferModes.java

@@ -0,0 +1,44 @@
+package com.goafanti.common.enums;
+
+public enum TransferModes {
+	TransferOfPropertyRights(0,"产权转让"),
+	AuthorizedProduction(1,"授权生产"),
+	Permissions(2,"实施许可"),
+	 Shareholder(3,"作家入股"),
+CooperativeDevelopment(4,"合作生产"),
+	Unknow(-1,"未知类型")
+	;
+		int i;
+		String name;
+		
+		private TransferModes(int i, String name) {
+			this.i = i;
+			this.name = name;
+		}
+
+		public int getI() {
+			return i;
+		}
+
+		public void setI(int i) {
+			this.i = i;
+		}
+
+		public String getName() {
+			return name;
+		}
+
+		public void setName(String name) {
+			this.name = name;
+		}
+		public static TransferModes find(int i)
+		{
+			for(TransferModes achievementCategory:values())
+			{
+				if(achievementCategory.getI()==i)return achievementCategory;
+			}
+			return Unknow;
+		}
+
+
+}

+ 86 - 10
src/main/java/com/goafanti/common/mapper/AchievementMapper.xml

@@ -2182,15 +2182,35 @@ order by
 </select> 	
 
 <select id="getRecentAchievements" resultType="com.goafanti.portal.bo.AchievementObject">
- select d.name,d.id ,data_category as dataCategory,release_date as releaseDate,category,d.audit_status
- ,fg.name as industryCategory1,fgg.name as industryCategory2,d.technical_picture_url as technicalPictureUrl
- from achievement d 
-     left join aft.field_glossory  fg  on fg.id=d.field_a
-    left join aft.field_glossory fgg  on fgg.id=d.field_b
-  left join branch_information branchInfo on INSTR(branchInfo.domain_name,#{1})>0
-left join achievement_publish dp on dp.achievement_id=d.id and dp.publish_platform=branchInfo.id
- where audit_status=2 and dp.achievement_id=d.id and dp.publish_platform=branchInfo.id  and instr(dp.publish_page,#{2})>0
- order by  release_date  desc limit #{0}
+ select
+	d.name,
+	d.id ,
+	data_category as dataCategory,
+	release_date as releaseDate,
+	category,
+	d.audit_status ,
+	fg.name as industryCategory1,
+	fgg.name as industryCategory2,
+	d.technical_picture_url as technicalPictureUrl
+from
+	achievement d
+left join aft.field_glossory fg on
+	fg.id = d.field_a
+left join aft.field_glossory fgg on
+	fgg.id = d.field_b
+left join branch_information branchInfo on
+	instr( branchInfo.domain_name, #{1} )>0
+left join achievement_publish dp on
+	dp.achievement_id = d.id
+	and dp.publish_platform = branchInfo.id
+where
+	audit_status = 2
+	and dp.achievement_id = d.id
+	and dp.publish_platform = branchInfo.id
+	and instr( dp.publish_page, #{2} )>0
+	and info_sources = 1
+order by
+	release_date desc limit #{0}
 </select>
 
 <select id="getHotAchievements" resultType="com.goafanti.portal.bo.AchievementObject">
@@ -2199,7 +2219,8 @@ a.name as name ,
 a.id as id,
 a.technical_picture_url as technicalPictureUrl,
 b.ct as interestCount,
-a.category
+a.category,
+a.data_category as dataCategory
 from achievement a
 left join branch_information branchInfo 
 on INSTR(branchInfo.domain_name,#{1})>0
@@ -2219,6 +2240,61 @@ and ap.achievement_id=a.id
 and branchInfo.id = ap.publish_platform
 and instr(ap.publish_page,#{2})>0
 and is_hot=1
+and info_sources=1
 order by ct desc limit #{0}
 </select>
+
+<select id="getPatentList" resultType="com.goafanti.portal.bo.AchievementObject">
+select
+	a.id,
+	a.name,
+	a.technical_picture_url as technicalPictureUrl,
+	a.category,
+	release_date as releaseDate
+from
+	achievement a
+left join branch_information bi on instr(bi.domain_name,#{1})>0
+left join achievement_publish ap on ap.achievement_id=a.id
+where audit_status=2
+and bi.id =ap.publish_platform
+and category=0
+and instr(ap.publish_page,#{2})>0
+and info_sources=1
+order by release_date desc limit #{0}
+</select>
+
+<select id="getPracticalTechnologys" resultType="com.goafanti.portal.bo.AchievementObject">
+select
+	a.id,
+	a.name,
+	a.technical_picture_url as technicalPictureUrl,
+	a.category,
+	release_date as releaseDate,
+	a.data_category as dataCategory,
+	transfer_mode as transferMode,
+	fg.name as fieldAS,
+	fgg.name as fieldBS
+from
+	achievement a
+left join branch_information bi on instr(bi.domain_name,#{1})>0
+left join achievement_publish ap on ap.achievement_id=a.id
+left join aft.field_glossory fg on
+	fg.id = a.field_a
+left join aft.field_glossory fgg on
+	fgg.id = a.field_b
+where audit_status=2
+and bi.id =ap.publish_platform
+and data_category=1
+and instr(ap.publish_page,#{2})>0
+and info_sources=1
+order by release_date desc limit #{0}
+</select>
+
+<select id="getIntellectualProperty" resultType="com.goafanti.common.bo.PolicyEntity" >
+select p.id,p.title,p.title_img as titleImg,p.summary,dg1.name as provinceS,dg2.name as cityS,edit_time as editTime from policy p 
+left join district_glossory dg1 on dg1.id=p.province
+left join district_glossory dg2 on dg2.id=p.city
+order by edit_time
+limit #{0}
+</select>
 </mapper>

+ 48 - 0
src/main/java/com/goafanti/portal/bo/AchievementObject.java

@@ -4,6 +4,8 @@ import java.sql.Date;
 
 import com.goafanti.achievement.bo.InputAchievement;
 import com.goafanti.common.enums.AchievementCategory;
+import com.goafanti.common.enums.AchievementDataCategory;
+import com.goafanti.common.enums.TransferModes;
 
 public class AchievementObject extends InputAchievement {
 	private String		fieldAS;
@@ -17,7 +19,22 @@ public class AchievementObject extends InputAchievement {
 	private Integer isHot;
 	private Date releaseDate;
 	private int interestCount;
+	private String dataCategoryS;
+	private String firstPicture;
+
 	
+	public String getDataCategoryS() {
+		return dataCategoryS;
+	}
+	public void setDataCategoryS(String dataCategoryS) {
+		this.dataCategoryS = dataCategoryS;
+	}
+	public String getFirstPicture() {
+		return firstPicture;
+	}
+	public void setFirstPicture(String firstPicture) {
+		this.firstPicture = firstPicture;
+	}
 	public int getInterestCount() {
 		return interestCount;
 	}
@@ -87,4 +104,35 @@ public class AchievementObject extends InputAchievement {
 		super.setCategory(category);
 		setCategoryS(AchievementCategory.find(category.intValue()).getName());
 	}
+	
+	@Override
+	public void setTechnicalPictureUrl(String url) {
+	super.setTechnicalPictureUrl(url);
+	if(url!=null && url.contains(".")) {
+		setFirstPicture(url.split(",")[0]);
+	}
+	}
+	@Override
+	public void setDataCategory(Integer dataCategory) {
+		// TODO Auto-generated method stub
+		super.setDataCategory(dataCategory);
+		setDataCategoryS(AchievementDataCategory.find(dataCategory.intValue()).getName());
+	//todo
+	}
+	@Override
+	public Integer getTransferMode() {
+		// TODO Auto-generated method stub
+		return super.getTransferMode();
+	}
+	@Override
+	public void setTransferMode(Integer transferMode) {
+		// TODO Auto-generated method stub
+		super.setTransferMode(transferMode);
+		System.out.println(transferMode.intValue());
+		setTransferModeS(TransferModes.find(transferMode.intValue()).getName());
+	}
+	
+	
+	
+	
 }

+ 45 - 191
src/main/webapp/WEB-INF/views/portal/technologyTrading/achievement.html

@@ -221,10 +221,10 @@
             <div></div>
             <ul>
                 <li th:each="ra:${recentAchievements}">
-                    <img th:src="${ra.technicalPictureUrl}==null?${portalHost+'/img/newMenu/achievement_2.jpg'}:${avatarUploadHost+ra.technicalPictureUrl}" alt="">
+                    <img th:src="${ra.firstPicture}==null?${portalHost+'/img/newMenu/achievement_2.jpg'}:${avatarUploadHost+ra.firstPicture}" alt="">
                     <div>
                             <p th:text="${ra.name}"></p>
-                            <p><span class="orange" th:text="${ra.categoryS}"></span>
+                            <p><span class="orange" th:text="${ra.dataCategoryS}"></span>
                             <span class="blur" th:text="${ra.releaseDate}==null?'未知发布时间':${#dates.format(ra.releaseDate,'yyyy-MM-dd')}"></span></p> 
                         </div>
                 </li>
@@ -253,7 +253,7 @@
               
                 <li class="col-sm-4" th:each="hota:${hotAchievements}">
                     <div>
-                        <img th:src="${hota.technicalPictureUrl}==null?${portalHost+'/img/newMenu/achievement_8.jpg'}:${avatarUploadHost+hota.technicalPictureUrl}" alt="">
+                        <img th:src="${hota.firstPicture}==null?${portalHost+'/img/newMenu/achievement_8.jpg'}:${avatarUploadHost+hota.firstPicture}" alt="">
                         <div>
                             <h4 th:text="${hota.name}">高压电极加热技术和蓄热技术巨物无...</h4>
                             <p><span class="orange" th:text="${hota.interestCount}==null?'已关注:0人':${'已关注'+hota.interestCount+'人'}">
@@ -283,58 +283,11 @@
                 </div>
                 <div class="col-sm-8">
                     <ul class="row">
-                        <li class="col-sm-4">
+                     
+                        <li class="col-sm-4" th:each="pts:${patents}">
                             <div>
-                                <img th:src="${portalHost+'/img/newMenu/achievement_12.jpg'}" alt="">
-                                <p>寻求:高压电极加热技术和蓄热技术</p>
-                            </div>
-                        </li>
-                        <li class="col-sm-4">
-                            <div>
-                                <img th:src="${portalHost+'/img/newMenu/achievement_13.jpg'}" alt="">
-                                <p>寻求:21212高压电极加热技术和蓄热技术</p>
-                            </div>
-                        </li>
-                        <li class="col-sm-4">
-                            <div>
-                                <img th:src="${portalHost+'/img/newMenu/achievement_14.jpg'}" alt="">
-                                <p>寻求:高压电极加热技术和蓄热技术</p>
-                            </div>
-                        </li>
-                        <li class="col-sm-4">
-                            <div>
-                                <img th:src="${portalHost+'/img/newMenu/achievement_12.jpg'}" alt="">
-                                <p>寻求:高压电极加热技术和蓄热技术</p>
-                            </div>
-                        </li>
-                        <li class="col-sm-4">
-                            <div>
-                                <img th:src="${portalHost+'/img/newMenu/achievement_13.jpg'}" alt="">
-                                <p>寻求:高压电极加热技术和蓄热技术</p>
-                            </div>
-                        </li>
-                        <li class="col-sm-4">
-                            <div>
-                                <img th:src="${portalHost+'/img/newMenu/achievement_14.jpg'}" alt="">
-                                <p>寻求:高压电极加热技术和蓄热技术</p>
-                            </div>
-                        </li>
-                        <li class="col-sm-4">
-                            <div>
-                                <img th:src="${portalHost+'/img/newMenu/achievement_12.jpg'}" alt="">
-                                <p>寻求:高压电极加热技术和蓄热技术</p>
-                            </div>
-                        </li>
-                        <li class="col-sm-4">
-                            <div>
-                                <img th:src="${portalHost+'/img/newMenu/achievement_13.jpg'}" alt="">
-                                <p>寻求:高压电极加热技术和蓄热技术</p>
-                            </div>
-                        </li>
-                        <li class="col-sm-4">
-                            <div>
-                                <img th:src="${portalHost+'/img/newMenu/achievement_14.jpg'}" alt="">
-                                <p>寻求:高压电极加热技术和蓄热技术</p>
+                                <img th:src="${pts.firstPicture}==null?${portalHost+'/img/newMenu/achievement_14.jpg'}:${avatarUploadHost+pts.firstPicture}" alt="">
+                                <p th:text="${pts.name}"></p>
                             </div>
                         </li>
                     </ul>
@@ -352,123 +305,39 @@
         <div class="practical">
             <div class="practicalLeft">
                 <ul>
-                    <li>
-                        <div class="imgBj">
-                            <img th:src="${portalHost+'/img/newMenu/achievement_16.jpg'}" alt="">   
+                    
+                    <li th:each="pt,ptStat:${practicalTechnology}" th:if="${ptStat.index}<5">
+                        <div class="imgBj" >
+                            <img th:src="${pt.firstPicture}==null?${portalHost+'/img/newMenu/achievement_19.jpg'}:${avatarUploadHost+pt.firstPicture}" alt="">   
                             <span></span>
                         </div>
                         <div class="txts">
-                            <h5>高压电极加热技术哈...</h5>
-                            <p><span>实用技术</span><span>联合生产</span><span class="hotImg"></span></p>
+                            <h5 th:text="${pt.name}"></h5>
+                            <p><span th:text="${pt.dataCategoryS}">
+                            </span><span th:text="${pt.transferModeS}==null?'未知类型':${pt.transferModeS}"></span><span class="hotImg"></span></p>
                         </div>
                         <div class="hr"></div>
                         <div class="btnTxt">
-                            <span class="float-left">环保</span>
-                            <span class="float-right">医疗</span>
-                        </div>
-                    </li>
-                    <li>
-                        <div class="imgBj">
-                            <img th:src="${portalHost+'/img/newMenu/achievement_16.jpg'}" alt="">   
-                            <span></span>
-                        </div>
-                        <div class="txts">
-                            <h5>高压电极加热技术哈...</h5>
-                            <p><span>实用技术</span><span>联合生产</span><span class="hotImg"></span></p>
-                        </div>
-                        <div class="hr"></div>
-                        <div class="btnTxt">
-                            <span class="float-left">环保</span>
-                            <span class="float-right">医疗</span>
-                        </div>
-                    </li>
-                    <li>
-                        <div class="imgBj">
-                            <img th:src="${portalHost+'/img/newMenu/achievement_17.jpg'}" alt="">   
-                            <span></span>
-                        </div>
-                        <div class="txts">
-                            <h5>高压电极加热技术哈...</h5>
-                            <p><span>实用技术</span><span>联合生产</span><span class="hotImg"></span></p>
-                        </div>
-                        <div class="hr"></div>
-                        <div class="btnTxt">
-                            <span class="float-left">环保</span>
-                            <span class="float-right">医疗</span>
-                        </div>
-                    </li>
-                    <li>
-                        <div class="imgBj">
-                            <img th:src="${portalHost+'/img/newMenu/achievement_16.jpg'}" alt="">   
-                            <span></span>
-                        </div>
-                        <div class="txts">
-                            <h5>高压电极加热技术哈...</h5>
-                            <p><span>实用技术</span><span>联合生产</span><span class="hotImg"></span></p>
-                        </div>
-                        <div class="hr"></div>
-                        <div class="btnTxt">
-                            <span class="float-left">环保</span>
-                            <span class="float-right">医疗</span>
-                        </div>
-                    </li>
-                    <li>
-                        <div class="imgBj">
-                            <img th:src="${portalHost+'/img/newMenu/achievement_19.jpg'}" alt="">   
-                            <span></span>
-                        </div>
-                        <div class="txts">
-                            <h5>高压电极加热技术哈...</h5>
-                            <p><span>实用技术</span><span>联合生产</span><span class="hotImg"></span></p>
-                        </div>
-                        <div class="hr"></div>
-                        <div class="btnTxt">
-                            <span class="float-left">环保</span>
-                            <span class="float-right">医疗</span>
+                            <span class="float-left" th:text="${pt.fieldAS}==null?'未知类型':${pt.fieldAS}">环保</span>
+                            <span class="float-right" th:text="${pt.fieldBS}==null?'未知类型':${pt.fieldBS}">医疗</span>
                         </div>
                     </li>
                 </ul>
                 <div class="practicalGrounp">
                     <ol>
-                        <li>
-                            <img th:src="${portalHost+'/img/newMenu/achievement_17.jpg'}" alt="">
-                            <div class="practicalGrounpTxt">
-                                <div class="txts">
-                                    <h5>高压电极加热技术哈...</h5>
-                                    <p><span>实用技术</span><span>联合生产</span><span class="hotImg"></span></p>
-                                </div>
-                                <div class="hr"></div>
-                                <div class="btnTxt">
-                                    <span class="float-left">环保</span>
-                                    <span class="float-right">医疗</span>
-                                </div>
-                            </div>
-                        </li>
-                        <li>
-                            <img th:src="${portalHost+'/img/newMenu/achievement_17.jpg'}" alt="">
-                            <div class="practicalGrounpTxt">
-                                <div class="txts">
-                                    <h5>高压电极加热技术哈...</h5>
-                                    <p><span>实用技术</span><span>联合生产</span><span class="hotImg"></span></p>
-                                </div>
-                                <div class="hr"></div>
-                                <div class="btnTxt">
-                                    <span class="float-left">环保</span>
-                                    <span class="float-right">医疗</span>
-                                </div>
-                            </div>
-                        </li>
-                        <li>
-                            <img th:src="${portalHost+'/img/newMenu/achievement_17.jpg'}" alt="">
+                      
+                        <li  th:each="pt,ptStat:${practicalTechnology}" th:if="${ptStat.index}>=5 and ${ptStat.index}<8">
+                            <img th:src="${pt.firstPicture}==null?${portalHost+'/img/newMenu/achievement_19.jpg'}:${avatarUploadHost+pt.firstPicture}" alt="">
                             <div class="practicalGrounpTxt">
                                 <div class="txts">
-                                    <h5>高压电极加热技术哈...</h5>
-                                    <p><span>实用技术</span><span>联合生产</span><span class="hotImg"></span></p>
+                                    <h5 th:text="${pt.name}"></h5>
+                                    <p><span th:text="${pt.dataCategoryS}"></span>
+                                    <span th:text="${pt.transferModeS}==null?'未知类型':${pt.transferModeS}"></span><span class="hotImg"></span></p>
                                 </div>
                                 <div class="hr"></div>
                                 <div class="btnTxt">
-                                    <span class="float-left">环保</span>
-                                    <span class="float-right">医疗</span>
+                                    <span class="float-left" th:text="${pt.fieldAS}==null?'未知类型':${pt.fieldAS}">环保</span>
+                            <span class="float-right" th:text="${pt.fieldBS}==null?'未知类型':${pt.fieldBS}">医疗</span>
                                 </div>
                             </div>
                         </li>
@@ -518,60 +387,45 @@
         <div class="transaction">
             <div class="transactionImg">
                 <img th:src="${portalHost+'/img/newMenu/achievement_29.jpg'}" alt="">
-                <div>
-                    <address><img th:src="${portalHost+'/img/newMenu/achievement_28.jpg'}" alt=""><span>长沙市</span><time>2018-04-23</time></address>
-                    <h5>《<span>湖南省关于2018支持科技成果转化..</span>》</h5>
-                    <p>最高补贴200万,国家免税,签订技术交易合同国家补贴,将数据为你很懂事印花税行就剩</p>
+                <div th:each="policy,policyStat:${policyList}" th:if="${policyStat.index}==0">
+                    <address><img th:src="${policy.titleImg}==null?${portalHost+'/img/newMenu/achievement_28.jpg'}:${avatarUploadHost+policy.titleImg}" alt="">
+                    <span th:text="${policy.provinceS+policy.cityS}"></span>
+                    <time th:text="${#dates.format(policy.editTime,'yyyy-MM-dd')}"></time>
+                    </address>
+                    <h5>《<span th:text="${policy.title}"></span>》</h5>
+                    <p th:text="${policy.summary}"></p>
                     <a href="#">查看更多 > </a>
                 </div>
             </div>
             <ul>
-                <li>
-                    <div class="time">
-                        <p>23</p>
-                        <hr>
-                        <span>2018-06</span>
-                    </div>
-                    <div class="introduce">
-                       <address><img th:src="${portalHost+'/img/newMenu/achievement_28.jpg'}" alt=""><span>长沙市</span><span class="title">《<span>湖南省关于2018支持科技..</span>》</span></address>
-                        <p>最高补贴200万,国家免税,签订技术交易合同国事印花税行就剩下和风度父爱和任何地方如何...</p>
-                    </div>
-                </li>
-                <li>
+                <li th:each="policy,policyStat:${policyList}" th:if="${policyStat.index}>0 and ${policyStat.index}<3">
                     <div class="time">
-                        <p>23</p>
+                        <p th:text="${#dates.format(policy.editTime,'dd')}"></p>
                         <hr>
-                        <span>2018-06</span>
+                        <span th:text="${#dates.format(policy.editTime,'yyyy-MM')}"></span>
                     </div>
                     <div class="introduce">
-                       <address><img th:src="${portalHost+'/img/newMenu/achievement_28.jpg'}" alt=""><span>长沙市</span><span class="title">《<span>湖南省关于2018支持科技..</span>》</span></address>
-                        <p>最高补贴200万,国家免税,签订技术交易合同国事印花税行就剩下和风度父爱和任何地方如何...</p>
+                       <address><img th:src="${policy.titleImg}==null?${portalHost+'/img/newMenu/achievement_28.jpg'}:${avatarUploadHost+policy.firstPicture}" alt="">
+                       <span th:text="${policy.provinceS+policy.cityS}"></span>
+                       <span class="title" >《<span th:text="${policy.title}"></span>》</span></address>
+                        <p  th:text="${policy.summary}"></p>
                     </div>
                 </li>
             </ul>
         </div>
         <div class="transactionList">
             <ol>
-                <li>
-                    <div class="time">
-                        <p>23</p>
-                        <hr>
-                        <span>2018-06</span>
-                    </div>
-                    <div class="introduce">
-                       <address><img th:src="${portalHost+'/img/newMenu/achievement_28.jpg'}" alt=""><span>长沙市</span><span class="title">《<span>湖南省关于2018支持科技..</span>》</span></address>
-                        <p>最高补贴200万,国家免税,签订技术交易合同国事印花税行就剩下和风度父爱和任何地方如何...</p>
-                    </div>
-                </li>
-                <li>
+                <li  th:each="policy,policyStat:${policyList}" th:if="${policyStat.index}>=3 and ${policyStat.index}<5">
                     <div class="time">
-                        <p>23</p>
+                        <p th:text="${#dates.format(policy.editTime,'dd')}">23</p>
                         <hr>
-                        <span>2018-06</span>
+                        <span  th:text="${#dates.format(policy.editTime,'yyyy-MM')}">2018-06</span>
                     </div>
                     <div class="introduce">
-                       <address><img th:src="${portalHost+'/img/newMenu/achievement_28.jpg'}" alt=""><span>长沙市</span><span class="title">《<span>湖南省关于2018支持科技..</span>》</span></address>
-                        <p>最高补贴200万,国家免税,签订技术交易合同国事印花税行就剩下和风度父爱和任何地方如何...</p>
+                       <address><img th:src="${policy.titleImg}==null?${portalHost+'/img/newMenu/achievement_28.jpg'}:${avatarUploadHost+policy.firstPicture}" alt="">
+                       <span th:text="${policy.provinceS+policy.cityS}"></span>
+                       <span class="title">《<span th:text="${policy.title}"></span>》</span></address>
+                        <p th:text="${policy.summary}"></p>
                     </div>
                 </li>
             </ol>