Forráskód Böngészése

完成政务新媒体

hyx 2 éve
szülő
commit
b9c76bc32b

+ 9 - 3
nngkxxdp/src/main/java/com/example/nngkxxdp/controller/TjController.java

@@ -2,6 +2,7 @@ package com.example.nngkxxdp.controller;
 
 import java.util.Date;
 import java.util.HashMap;
+import java.util.List;
 import java.util.Map;
 
 import com.example.nngkxxdp.util.*;
@@ -19,10 +20,8 @@ import com.example.nngkxxdp.util.Blank;
 import com.example.nngkxxdp.util.ConstStr;
 import com.example.nngkxxdp.util.SendUtil;
 
-import cn.hutool.core.date.DateUtil;
 import cn.hutool.crypto.SecureUtil;
 import cn.hutool.http.HttpRequest;
-import cn.hutool.json.JSONUtil;
 
 import javax.annotation.Resource;
 
@@ -85,7 +84,14 @@ public class TjController {
 	@PostMapping("websiteRating")
 	public Map<String, Object> websiteRating(Integer type, Integer childrenType, Integer deptId, Integer hasDept, String newMon) {
 		return SendUtil.send(true, null, tjService.websiteRating(type, childrenType, deptId, hasDept, null, newMon));
-		
+	}
+
+	/**
+	 * 政务新媒体
+	 */
+	@GetMapping("newMedia")
+	public Map<String, Object> newMedia() {
+		return SendUtil.send(true,null,tjService.newMedia());
 	}
 	
 	@GetMapping("task")

+ 4 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/dao/TjDao.java

@@ -201,4 +201,8 @@ public interface TjDao {
 	 * @return
 	 */
 	List<Map<String, Object>> getPartitionGroup();
+
+	List<Map<String, Object>> findOfficialAccount();
+
+	List<Map<String, Object>> findHeadLines();
 }

+ 3 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/service/TjService.java

@@ -1,5 +1,6 @@
 package com.example.nngkxxdp.service;
 
+import java.util.List;
 import java.util.Map;
 
 /** 
@@ -42,4 +43,6 @@ public interface TjService {
 	Map<String, Object> task(String strDate);
 	
 	Map<String, Object> sendSms();
+
+	List<Map<String, Object>> newMedia();
 }

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 548 - 545
nngkxxdp/src/main/java/com/example/nngkxxdp/service/impl/TjServiceImpl.java


+ 32 - 0
nngkxxdp/src/main/resources/mapper/TjDao.xml

@@ -352,5 +352,37 @@
 	<select id="getPartitionGroup" resultType="java.util.Map">
 		SELECT * FROM t_partition_group
 	</select>
+
+	<select id="findOfficialAccount" resultType="java.util.Map">
+		SELECT
+			id,
+			official_account,
+			title,
+			url,
+			sort,
+			create_time
+		FROM
+			sort_article
+		GROUP BY
+			official_account
+		ORDER BY
+			create_time
+	</select>
+
+	<select id="findHeadLines" resultType="java.util.Map">
+		SELECT
+			id,
+			official_account,
+			title,
+			url,
+			sort,
+			create_time
+		FROM
+			sort_article_headlines
+		GROUP BY
+			official_account
+		ORDER BY
+			create_time
+	</select>
 	
 </mapper>

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 2353 - 2293
nngkxxdp/src/main/resources/static/wzkp/wzkp.html


Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott