权限标识
This commit is contained in:
parent
d1d6874178
commit
822650135c
|
|
@ -42,7 +42,7 @@ public class PollTaskController {
|
|||
* 查询任务列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
// @RequiresPermissions("store:task:list")
|
||||
@RequiresPermissions("store:task:list")
|
||||
public AjaxResult findList(TaskQuery taskQuery) {
|
||||
return AjaxResult.success(pollingTaskService.findList(taskQuery));
|
||||
}
|
||||
|
|
@ -51,7 +51,6 @@ public class PollTaskController {
|
|||
* 查询顶级任务列表
|
||||
*/
|
||||
@GetMapping("/list/top")
|
||||
// @RequiresPermissions("store:task:top")
|
||||
public AjaxResult findTopList(){
|
||||
return AjaxResult.success(pollingTaskService.findTopList(CommonParam.buildPageRequest()));
|
||||
}
|
||||
|
|
@ -60,7 +59,6 @@ public class PollTaskController {
|
|||
* 查询顶级任务配置
|
||||
*/
|
||||
@GetMapping("/config/{taskId}")
|
||||
// @RequiresPermissions("store:task:config")
|
||||
public AjaxResult findTaskConfig(@PathVariable Long taskId) {
|
||||
return AjaxResult.success(pollingTaskService.findTaskConfig(taskId));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ public class TemplateController {
|
|||
* 模板列表页面
|
||||
*/
|
||||
@GetMapping(value = "/page")
|
||||
// @RequiresPermissions(value = "ins:template:page")
|
||||
@RequiresPermissions(value = "ins:template:page")
|
||||
public AjaxResult pageList(Template template){
|
||||
return AjaxResult.success(tbTemplateService.pageList(template));
|
||||
}
|
||||
|
|
@ -59,7 +59,7 @@ public class TemplateController {
|
|||
*/
|
||||
@SysLog(value = "模板", businessType = BusinessType.INSERT)
|
||||
@PostMapping(value = "/save")
|
||||
// @RequiresPermissions(value = "ins:template:save")
|
||||
@RequiresPermissions(value = "ins:template:save")
|
||||
public AjaxResult save(@RequestBody@Validated(Create.class) Template template){
|
||||
return AjaxResult.success(tbTemplateService.saveTemplate(template));
|
||||
}
|
||||
|
|
@ -68,7 +68,7 @@ public class TemplateController {
|
|||
*/
|
||||
@SysLog(value = "模板", businessType = BusinessType.UPDATE)
|
||||
@PostMapping(value = "/update")
|
||||
// @RequiresPermissions(value = "ins:template:update")
|
||||
@RequiresPermissions(value = "ins:template:update")
|
||||
public AjaxResult update(@RequestBody@Validated(Create.class) Template template){
|
||||
return AjaxResult.success(tbTemplateService.updateTemplate(template));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ public class WrkProjectController {
|
|||
* 修改 项目
|
||||
*/
|
||||
@PostMapping(value = "/update")
|
||||
@RequiresPermissions("inspection:project:save")
|
||||
@RequiresPermissions("inspection:project:update")
|
||||
@SysLog(value = "项目",businessType = BusinessType.UPDATE)
|
||||
public AjaxResult update(@RequestBody @Validated(Update.class) ProjectDTO project){
|
||||
Long projectId = project.getProjectId();
|
||||
|
|
@ -148,7 +148,7 @@ public class WrkProjectController {
|
|||
* 根据 项目Id 获取
|
||||
*/
|
||||
@GetMapping(value = "/payMentData")
|
||||
@RequiresPermissions("inspection:contract:list")
|
||||
@RequiresPermissions("inspection:caiwu:data")
|
||||
public AjaxResult payMentData(WrkProjectPayment query)
|
||||
{
|
||||
CommonParam commonParam = CommonParam.buildPageRequest();
|
||||
|
|
@ -195,7 +195,7 @@ public class WrkProjectController {
|
|||
* 人工数据
|
||||
*/
|
||||
@GetMapping(value = "/emp/data")
|
||||
// @RequiresPermissions("inspection:project:info")
|
||||
@RequiresPermissions("inspection:emp:data")
|
||||
public AjaxResult empData(ProjectQuery projectQuery)
|
||||
{
|
||||
return AjaxResult.success(projectService.empData(projectQuery));
|
||||
|
|
@ -217,7 +217,7 @@ public class WrkProjectController {
|
|||
*/
|
||||
@SysLog(value = "项目数据", businessType = BusinessType.EXPORT)
|
||||
@GetMapping(value = "/emp/data/export")
|
||||
// @RequiresPermissions("inspection:project:export")
|
||||
@RequiresPermissions("inspection:emp:export")
|
||||
public AjaxResult empDataExport(ProjectQuery projectQuery)
|
||||
{
|
||||
return AjaxResult.success("人员数据导出成功, 请在后台任务中查看, 任务id: ["+ projectService.projectDataExport(projectQuery) +"]");
|
||||
|
|
@ -229,7 +229,7 @@ public class WrkProjectController {
|
|||
*/
|
||||
@SysLog(value = "财务数据", businessType = BusinessType.EXPORT)
|
||||
@GetMapping(value = "/payMentData/data/export")
|
||||
// @RequiresPermissions("inspection:project:export")
|
||||
@RequiresPermissions("inspection:caiwu:export")
|
||||
public AjaxResult payMentDataExport(ProjectQuery projectQuery)
|
||||
{
|
||||
return AjaxResult.success("财务数据导出成功, 请在后台任务中查看, 任务id: ["+ projectService.projectDataExport(projectQuery) +"]");
|
||||
|
|
|
|||
|
|
@ -229,7 +229,7 @@ public class WrkInfoController {
|
|||
* 撤回
|
||||
*/
|
||||
@PostMapping("/withdraw")
|
||||
@RequiresPermissions("wrk:withdraw")
|
||||
@RequiresPermissions("wrk:info:withdraw")
|
||||
@SysLog(value = "工单撤回", businessType = BusinessType.DELETE)
|
||||
public AjaxResult withdraw(@RequestBody @Validated Delete delete) throws Exception{
|
||||
wrkInfoService.withdraw(delete.getIds());
|
||||
|
|
@ -240,7 +240,7 @@ public class WrkInfoController {
|
|||
* 工单数据
|
||||
*/
|
||||
@GetMapping(value = "/data")
|
||||
// @RequiresPermissions("wrk:info:data")
|
||||
@RequiresPermissions("wrk:info:data")
|
||||
public AjaxResult wrkData(WrkDataQuery wrkDataQuery)
|
||||
{
|
||||
return AjaxResult.success(wrkInfoService.wrkData(wrkDataQuery));
|
||||
|
|
@ -251,7 +251,7 @@ public class WrkInfoController {
|
|||
* @param wrkDataQuery 查询条件
|
||||
*/
|
||||
@GetMapping(value = "/data/export")
|
||||
// @RequiresPermissions("wrk:data:export")
|
||||
@RequiresPermissions("wrk:data:export")
|
||||
public AjaxResult wrkDataExport(WrkDataQuery wrkDataQuery)
|
||||
{
|
||||
return AjaxResult.success("工单数据导出成功, 请在后台任务中查看, 任务id: ["+ wrkInfoService.wrkDataExport(wrkDataQuery) +"]");
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public class WrkInfoTerminalRecordController {
|
|||
*/
|
||||
@SysLog(value = "我的终端池", businessType = BusinessType.QUERY)
|
||||
@GetMapping("/mine/page")
|
||||
// @RequiresPermissions("ins:terminal:mine")
|
||||
@RequiresPermissions("ins:terminal:mine")
|
||||
public AjaxResult minePageList(@Validated TerminalQuery query) {
|
||||
// 获取当前用户的
|
||||
query.setUserId(SecurityUtils.getUserId());
|
||||
|
|
|
|||
2
pom.xml
2
pom.xml
|
|
@ -21,7 +21,7 @@
|
|||
<id>cloud</id>
|
||||
<properties>
|
||||
<profiles.active>cloud</profiles.active>
|
||||
<nacos.host>192.168.1.168:16000,192.168.1.169:16000,192.168.1.98:16000</nacos.host>
|
||||
<nacos.host>119.97.184.163:16000,119.97.184.169:16000</nacos.host>
|
||||
<nacos.namespace>11c67dc3-423c-4195-b945-ace6cb2323a1</nacos.namespace>
|
||||
<nacos.group>DEFAULT_GROUP</nacos.group>
|
||||
<nacos.username>nacos</nacos.username>
|
||||
|
|
|
|||
Loading…
Reference in New Issue