This commit is contained in:
landaiqing 2023-12-29 00:25:23 +08:00
parent 7753dbe753
commit 98921c4650

View File

@ -89,7 +89,7 @@ public class UrlCateListServiceImpl implements UrlCateListService {
public String countCateContainUrlNumber(Integer userId){
List<UrlCateList> urlCateLists =urlCateListDao.selectUrListByUserId(3);
List<UrlCateList> urlCateLists =urlCateListDao.selectUrListByUserId(userId);
List<UrlList> urlLists = urlListDao.selectUrList();
HashMap<String,Integer> CateNumber = new HashMap<>();
@ -108,7 +108,7 @@ public class UrlCateListServiceImpl implements UrlCateListService {
if(str.equals("0")) continue;
for(UrlCateList urlCateList :urlCateLists)
{
if(urlCateList.getId() == Integer.valueOf(str)){
if(String.valueOf(urlCateList.getId()).equals(str)){
int cateNum = CateNumber.get(urlCateList.getName())+1;
CateNumber.put(urlCateList.getName(),cateNum);
// System.out.println(urlCateList.getName());