系统权限主要功能测试
This commit is contained in:
parent
61e7111bea
commit
2725f79c73
@ -38,7 +38,6 @@ public class SysDeptController extends BaseController
|
||||
/**
|
||||
* 获取部门列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:dept:list')")
|
||||
@GetMapping("/list")
|
||||
public AjaxResult list(SysDept dept)
|
||||
{
|
||||
@ -49,7 +48,6 @@ public class SysDeptController extends BaseController
|
||||
/**
|
||||
* 查询部门列表(排除节点)
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:dept:list')")
|
||||
@GetMapping("/list/exclude/{deptId}")
|
||||
public AjaxResult excludeChild(@PathVariable(value = "deptId", required = false) Long deptId)
|
||||
{
|
||||
|
@ -38,7 +38,6 @@ public class SysPostController extends BaseController
|
||||
/**
|
||||
* 获取岗位列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:post:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SysPost post)
|
||||
{
|
||||
@ -51,7 +50,6 @@ public class SysPostController extends BaseController
|
||||
* 查询所有有效岗位信息以List方式返回
|
||||
* @return
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:post:list')")
|
||||
@GetMapping("/listAll")
|
||||
public AjaxResult listAll(){
|
||||
SysPost post = new SysPost();
|
||||
|
@ -52,7 +52,6 @@ public class SysUserController extends BaseController
|
||||
/**
|
||||
* 获取用户列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:user:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SysUser user)
|
||||
{
|
||||
|
@ -2,9 +2,6 @@ package com.ktg.web.controller.system;
|
||||
|
||||
import com.ktg.common.core.controller.BaseController;
|
||||
import com.ktg.common.core.page.TableDataInfo;
|
||||
import com.ktg.mes.md.domain.MdVendor;
|
||||
import com.ktg.mes.pro.service.IProFeedbackService;
|
||||
import com.ktg.mes.wm.service.*;
|
||||
import com.ktg.system.domain.UserTask;
|
||||
import com.ktg.system.service.IUserTaskService;
|
||||
import io.swagger.annotations.Api;
|
||||
|
@ -39,7 +39,6 @@ public class MdUnitMeasureController extends BaseController
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@PreAuthorize("@ss.hasPermi('mes:md:unitmeasure:list')")
|
||||
@GetMapping("/listprimary")
|
||||
public AjaxResult listPrimary(){
|
||||
MdUnitMeasure mdUnitMeasure = new MdUnitMeasure();
|
||||
|
@ -52,7 +52,6 @@ public class ProProcessController extends BaseController
|
||||
* 查询所有可用工序的清单
|
||||
* @return
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('mes:pro:process:list')")
|
||||
@GetMapping("/listAll")
|
||||
public AjaxResult listAll(){
|
||||
ProProcess process = new ProProcess();
|
||||
|
@ -65,7 +65,6 @@ public class ProRouteProcessController extends BaseController
|
||||
* 查询指定产品的工艺组成
|
||||
* @return
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('mes:pro:proroute:list')")
|
||||
@GetMapping("/listProductProcess/{productId}")
|
||||
public AjaxResult listProductProcess(@PathVariable("productId") Long productId){
|
||||
ProRouteProduct proRouteProduct = new ProRouteProduct();
|
||||
|
@ -89,7 +89,6 @@ public class ProWorkorderController extends BaseController
|
||||
/**
|
||||
* 获取生产工单详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('mes:pro:workorder:query')")
|
||||
@GetMapping(value = "/{workorderId}")
|
||||
public AjaxResult getInfo(@PathVariable("workorderId") Long workorderId)
|
||||
{
|
||||
@ -251,7 +250,7 @@ public class ProWorkorderController extends BaseController
|
||||
* @param workorderId
|
||||
* @return
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('mes:wm:rtissue:edit')")
|
||||
@PreAuthorize("@ss.hasPermi('mes:pro:workorder:edit')")
|
||||
@Log(title = "生产工单", businessType = BusinessType.UPDATE)
|
||||
@Transactional
|
||||
@PutMapping("/{workorderId}")
|
||||
|
@ -87,7 +87,6 @@ public class QcDefectRecordController extends BaseController
|
||||
/**
|
||||
* 获取检验单缺陷记录详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('mes:qc:defectrecord:query')")
|
||||
@GetMapping(value = "/{recordId}")
|
||||
public AjaxResult getInfo(@PathVariable("recordId") Long recordId)
|
||||
{
|
||||
@ -97,7 +96,6 @@ public class QcDefectRecordController extends BaseController
|
||||
/**
|
||||
* 新增检验单缺陷记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('mes:qc:defectrecord:add')")
|
||||
@Log(title = "检验单缺陷记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody QcDefectRecord qcDefectRecord)
|
||||
@ -116,7 +114,6 @@ public class QcDefectRecordController extends BaseController
|
||||
/**
|
||||
* 修改来料检验单缺陷记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('mes:qc:defectrecord:edit')")
|
||||
@Log(title = "检验单缺陷记录", businessType = BusinessType.UPDATE)
|
||||
@Transactional
|
||||
@PutMapping
|
||||
@ -170,7 +167,6 @@ public class QcDefectRecordController extends BaseController
|
||||
/**
|
||||
* 删除检验单缺陷记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('mes:qc:defectrecord:remove')")
|
||||
@Log(title = "检验单缺陷记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{recordIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] recordIds)
|
||||
|
Loading…
Reference in New Issue
Block a user