删除网站分类

This commit is contained in:
cyk
2023-12-24 18:19:32 +08:00
parent 74df52c3aa
commit 6fdbb36e6b
9 changed files with 77 additions and 11 deletions

View File

@@ -20,4 +20,9 @@ public interface UrlCateListService {
public int insertSelective(UrlCateList urlCateList);
public int updateByUrlCateList(UrlCateList urlCateList);
public List<String> selectChildrenByCateId(Integer id);
public int deleteByPrimaryKey(Integer id);
}

View File

@@ -15,4 +15,7 @@ public interface UrlListService {
public List<UrlList> selectUrListByNeedLogin();
public int insertUrlByUser(UrlList urlList);
public int deleteByPrimaryKey(Long id);
public int deleteByCateId(Long id);
}

View File

@@ -72,6 +72,14 @@ public class UrlCateListServiceImpl implements UrlCateListService {
{
return urlCateListDao.updateByPrimaryKeySelective(urlCateList);
}
public List<String> selectChildrenByCateId(Integer id)
{
return urlCateListDao.selectChildrenByCateId(id);
}
public UrlCateList selectByPrimaryKey(Integer id)
{
return urlCateListDao.selectByPrimaryKey(id);
@@ -145,4 +153,8 @@ public class UrlCateListServiceImpl implements UrlCateListService {
}
return jsonArray;
}
public int deleteByPrimaryKey(Integer id){
return urlCateListDao.deleteByPrimaryKey(id);
}
}

View File

@@ -79,4 +79,12 @@ public class UrlLiserServiceImpl implements UrlListService {
}
}
public int deleteByPrimaryKey(Long id){
return urlListDao.deleteByPrimaryKey(id);
}
public int deleteByCateId(Long id)
{
return urlListDao.deleteByCateId(id);
}
}