update了UrlCheck工具类

This commit is contained in:
sjm
2023-12-23 15:34:05 +08:00
parent 32ec34633c
commit 1b4bf28371
11 changed files with 100 additions and 25 deletions

View File

@@ -1,6 +1,6 @@
package com.lovenav.service.serviceImpl;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson2.JSON;
import com.lovenav.dao.BannersDao;
import com.lovenav.entity.Banners;
import com.lovenav.service.BannersService;
@@ -59,9 +59,8 @@ public class BannersServiceImpl implements BannersService {
}
// 展示banner
@Override
public String View_banner(){
List<Banners> list = bannersDao.selectByAllBanners();
List<Banners> list = bannersDao.selectAllBanners();
return JSON.toJSONString(list);
}
}

View File

@@ -6,11 +6,8 @@ import com.lovenav.dao.CommentDao;
import com.lovenav.dao.UserDao;
import com.lovenav.entity.Comment;
import com.lovenav.service.CommentService;
import org.apache.ibatis.jdbc.Null;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.List;
@@ -69,7 +66,7 @@ public class CommentServiceImpl implements CommentService {
// 显示评论
public String View_comment(){
List<Comment> list = commentDao.selectByAllComment();
List<Comment> list = commentDao.selectAllComment();
return JSON.toJSONString(list);
}