ssm 대량 삭제

673 단어
mapper.xml
 
        delete from repository
        where repository_id in
        
            #{item}
        
    

다오층
 public void deleteRepository(Integer [] repository_id);//    

controller층
@RequestMapping(value = "/deleteRepository")
    public void deleteRepository(Integer[] repository_id, HttpServletResponse response){
            repositoryService.deleteRepository(repository_id);//    ,          
    }

좋은 웹페이지 즐겨찾기