增加高级功能菜单下的配置审核不通过、删除功能.

This commit is contained in:
zhangwenqing
2019-04-15 16:23:14 +08:00
parent ecb1fed2d5
commit a2f8cf56d3
13 changed files with 491 additions and 128 deletions

View File

@@ -160,12 +160,17 @@ public class AsnIpController extends BaseController{
}
@RequestMapping(value = {"/delete"})
@RequiresPermissions(value={"asn:ip:config"})
public String delete(Integer isValid
,String ids,Integer functionId
,RedirectAttributes redirectAttributes){
public String delete(Integer isValid, String ids, Integer functionId, RedirectAttributes redirectAttributes,
HttpServletRequest request, HttpServletResponse response, @ModelAttribute("cfg")AsnIpCfg cfg){
try{
asnIpCfgService.delete(ids);
addMessage(redirectAttributes,"success","delete_success");
if (!StringUtil.isEmpty(ids)) {
asnIpCfgService.delete(ids);
addMessage(redirectAttributes,"success","delete_success");
}else {
// 批量删除
Page<CfgIndexInfo> searchPage = new Page<CfgIndexInfo>(request, response, "a");
deleteAll(searchPage, functionId, cfg);
}
}catch(Exception e){
logger.error("Delete failed",e);
if(e instanceof MaatConvertException) {