提交
This commit is contained in:
@@ -3,6 +3,7 @@ package com.xinda.itsm.controller;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.xinda.common.core.domain.entity.SysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
@@ -41,11 +42,13 @@ public class PrePlanController extends BaseController
|
||||
/**
|
||||
* 查询预案管理列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:prePlan:list')")
|
||||
//@PreAuthorize("@ss.hasPermi('itsm:prePlan:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询预案管理列表")
|
||||
public TableDataInfo list(PrePlan prePlan)
|
||||
{
|
||||
SysUser user = getLoginUser().getUser();
|
||||
prePlan.setTenantId(user.getDeptId());
|
||||
startPage();
|
||||
List<PrePlan> list = prePlanService.selectPrePlanList(prePlan);
|
||||
return getDataTable(list);
|
||||
@@ -83,6 +86,8 @@ public class PrePlanController extends BaseController
|
||||
@ApiOperation("新增预案管理")
|
||||
public AjaxResult add(@RequestBody PrePlan prePlan)
|
||||
{
|
||||
SysUser user = getLoginUser().getUser();
|
||||
prePlan.setTenantId(user.getDeptId());
|
||||
return toAjax(prePlanService.insertPrePlan(prePlan));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user