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

修改接口文字错误

hyx 2 éve
szülő
commit
05a2008e60

+ 4 - 4
nngkxxdp/src/main/java/com/example/nngkxxdp/controller/ArticleController.java

@@ -84,8 +84,8 @@ public class ArticleController {
         return SendUtil.send(true, null, articleService.getAllOfficialAccount(official));
     }
 
-    @GetMapping("getOffocoalAccountByPaging")
-    public Map<String, Object> getOffocoalAccountByPaging(String name, Integer page, Integer limit) {
+    @GetMapping("getOfficialAccountByPaging")
+    public Map<String, Object> getOfficialAccountByPaging(String name, Integer page, Integer limit) {
         if (Blank.isEmpty(limit, page)) {
             return SendUtil.send(false, ConstStr.REQUEST_WRONGPARAMS);
         }
@@ -93,13 +93,13 @@ public class ArticleController {
         map.put("name", name);
         map.put("page", (page - 1) * limit);
         map.put("limit", limit);
-        Map<String, Object> picture = articleService.getOffocoalAccountByPaging(map);
+        Map<String, Object> picture = articleService.getOfficialAccountByPaging(map);
 //        for (int i=0;i<picture.size();i++){
 //            System.out.println(i);
 //        }
 //        System.out.println();
 //       JSONObject jsonObject=JSONObject.parseObject(picture.toString());
-        return articleService.getOffocoalAccountByPaging(map);
+        return articleService.getOfficialAccountByPaging(map);
     }
 
     /**

+ 1 - 1
nngkxxdp/src/main/java/com/example/nngkxxdp/dao/SmsMessageDao.java

@@ -44,7 +44,7 @@ public interface SmsMessageDao {
 
 	Integer getCountOffocoalAccount(Map<String, Object> map);
 
-	List<Map<String, Object>> getOffocoalAccountByPaging(Map<String, Object> map);
+	List<Map<String, Object>> getOfficialAccountByPaging(Map<String, Object> map);
 
 	List<Map<String, Object>> getAllJRTT();
 	

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

@@ -5,6 +5,7 @@ import java.util.List;
 import java.util.Map;
 
 import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
 
 /**
  * @author Mr.wang
@@ -12,6 +13,7 @@ import org.apache.ibatis.annotations.Param;
  * @date 2021年9月22日 下午7:58:07
  * @Description
  */
+@Repository
 public interface TjDao {
 
     /**

+ 1 - 1
nngkxxdp/src/main/java/com/example/nngkxxdp/service/ArticleService.java

@@ -147,7 +147,7 @@ public interface ArticleService {
      */
     Map<String, Object> getAllOfficialAccount(String official);
 
-    Map<String, Object> getOffocoalAccountByPaging(Map<String, Object> map);
+    Map<String, Object> getOfficialAccountByPaging(Map<String, Object> map);
 
     /**
      * 按时间获取南岸发布的wx文章

+ 2 - 2
nngkxxdp/src/main/java/com/example/nngkxxdp/service/impl/ArticleServiceImpl.java

@@ -414,12 +414,12 @@ public class ArticleServiceImpl implements ArticleService {
     }
 
     @Override
-    public Map<String, Object> getOffocoalAccountByPaging(Map<String, Object> map) {
+    public Map<String, Object> getOfficialAccountByPaging(Map<String, Object> map) {
         Integer count = smsMessageDao.getCountOffocoalAccount(map);
         if (!Blank.notBlank(count) || count == 0) {
             return SendUtil.layuiTable(0, null);
         }
-        return SendUtil.layuiTable(count, smsMessageDao.getOffocoalAccountByPaging(map));
+        return SendUtil.layuiTable(count, smsMessageDao.getOfficialAccountByPaging(map));
     }
 
     @Override

+ 1 - 1
nngkxxdp/src/main/resources/mapper/SmsMessageDao.xml

@@ -128,7 +128,7 @@
         WHERE official_account = #{name}
     </select>
 
-    <select id="getOffocoalAccountByPaging" resultType="java.util.Map" parameterType="java.util.Map">
+    <select id="getOfficialAccountByPaging" resultType="java.util.Map" parameterType="java.util.Map">
         SELECT *, DATE_FORMAT(create_time, '%Y-%m-%d') AS nowTime
         FROM sort_article
         WHERE official_account = #{name}

+ 1 - 1
nngkxxdp/src/main/resources/static/mxt/js/index.js

@@ -178,7 +178,7 @@ function wechartClick(that) {
 function initWeChartListByRight(name) {
     $.ajax({
         type: 'GET',
-        url: '/article/getOffocoalAccountByPaging',
+        url: '/article/getOfficialAccountByPaging',
         dataType: 'json',
         data: {
             'page': page,

+ 1 - 1
nngkxxdp/src/main/resources/static/newMedia/officialAccounts.html

@@ -140,7 +140,7 @@
             function getMessage(page,name) {
                 $.ajax({
                     type: 'GET',
-                    url: '/article/getOffocoalAccountByPaging',
+                    url: '/article/getOfficialAccountByPaging',
                     dataType: 'json',
                     data: {
                         'page': page,