Antiloveg лет назад: 8
Родитель
Сommit
26c4981d28

+ 4 - 1
src/main/java/com/goafanti/news/bo/NewsSummary.java

@@ -4,6 +4,8 @@ import java.util.Date;
 
 import org.apache.commons.lang3.time.DateFormatUtils;
 
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.fasterxml.jackson.annotation.JsonFormat.Shape;
 import com.goafanti.common.constant.AFTConstants;
 
 public class NewsSummary {
@@ -41,7 +43,8 @@ public class NewsSummary {
 	 * 简介
 	 */
 	private String	summary;
-
+	
+	@JsonFormat(shape = Shape.STRING)
 	public Long getId() {
 		return id;
 	}

+ 1 - 1
src/main/webapp/WEB-INF/views/portal/activity/activityIndex.html

@@ -81,7 +81,7 @@
 		<div class="active_content_list">
 			<ul>
 				<li th:each="it : ${activityList}">
-					<a href="details.html">
+					<a th:href="${'/portal/activity/activityDetails.html?id='+it.id}">
 						<div class="active_content_img">
 							<img th:if="${it.titleUrl} != null" th:src="${avatarUploadHost + it.titleUrl}">
 						</div>