update
This commit is contained in:
parent
7753dbe753
commit
98921c4650
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user