...
|
...
|
@@ -6,6 +6,7 @@ import com.tianbo.warehouse.controller.response.ResultJson; |
|
|
import com.tianbo.warehouse.model.PERMISSION;
|
|
|
import com.tianbo.warehouse.service.PermissionService;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
...
|
...
|
@@ -66,7 +67,8 @@ public class PermssionController { |
|
|
@DeleteMapping("/del")
|
|
|
public ResultJson reomve(@RequestBody PERMISSION permission, HttpServletRequest request, HttpServletResponse response){
|
|
|
|
|
|
int i =permissionService.deleteByPrimaryKey(permission.getPermissionId().toString());
|
|
|
Integer permissionId = permission.getPermissionId();
|
|
|
int i =permissionService.deleteByPrimaryKey(permission.getPermissionId());
|
|
|
|
|
|
ResultJson resultJson = new ResultJson();
|
|
|
if (1==i){
|
...
|
...
|
@@ -78,15 +80,15 @@ public class PermssionController { |
|
|
}
|
|
|
|
|
|
@LogAnnotation(moduleName = "权限管理",operate = "权限批量删除")
|
|
|
@GetMapping("/batchremove")
|
|
|
public ResultJson reomve(String ids, HttpServletRequest request, HttpServletResponse response){
|
|
|
@PostMapping("/batchremove")
|
|
|
public ResultJson reomve(@RequestBody List<Integer> ids, HttpServletRequest request, HttpServletResponse response){
|
|
|
|
|
|
ResultJson resultJson = new ResultJson();
|
|
|
|
|
|
if (permissionService.deleteByPrimaryKey(ids)>0){
|
|
|
if (permissionService.deleteByPrimaryKeys(ids)>0){
|
|
|
resultJson = new ResultJson("200","删除成功");
|
|
|
}else {
|
|
|
resultJson = new ResultJson("500","insert faild");
|
|
|
resultJson = new ResultJson("400","删除失败");
|
|
|
}
|
|
|
return resultJson;
|
|
|
}
|
...
|
...
|
|