Commit 0dd8012b authored by hongguangwu's avatar hongguangwu

去除客户查询权限

parent d6d065a5
......@@ -54,7 +54,6 @@ public class TCustomerInfoController {
*/
@Operation(summary = "分页查询", description = "分页查询")
@GetMapping("/page")
@PreAuthorize("@pms.hasPermission('demo_tcustomerinfo_get')")
public R<IPage<TCustomerInfo>> getTCustomerInfoPage(Page<TCustomerInfo> page, TCustomerInfo tCustomerInfo) {
return R.ok(tCustomerInfoService.page(page, Wrappers.query(tCustomerInfo)));
}
......@@ -68,7 +67,6 @@ public class TCustomerInfoController {
*/
@Operation(summary = "通过id查询", description = "通过id查询")
@GetMapping("/{id}")
@PreAuthorize("@pms.hasPermission('demo_tcustomerinfo_get')")
public R<TCustomerInfo> getById(@PathVariable("id") String id) {
return R.ok(tCustomerInfoService.getById(id));
}
......@@ -82,7 +80,7 @@ public class TCustomerInfoController {
@Operation(summary = "新增客户信息", description = "新增客户信息")
@SysLog("新增客户信息")
@PostMapping
@PreAuthorize("@pms.hasPermission('demo_tcustomerinfo_add')")
@PreAuthorize("@pms.hasPermission('tcustomerinfo_add')")
public R<Boolean> save(@RequestBody TCustomerInfo tCustomerInfo) {
return R.ok(tCustomerInfoService.save(tCustomerInfo));
}
......@@ -96,7 +94,7 @@ public class TCustomerInfoController {
@Operation(summary = "修改客户信息", description = "修改客户信息")
@SysLog("修改客户信息")
@PutMapping
@PreAuthorize("@pms.hasPermission('demo_tcustomerinfo_edit')")
@PreAuthorize("@pms.hasPermission('tcustomerinfo_edit')")
public R<Boolean> updateById(@RequestBody TCustomerInfo tCustomerInfo) {
return R.ok(tCustomerInfoService.updateById(tCustomerInfo));
}
......@@ -110,7 +108,7 @@ public class TCustomerInfoController {
@Operation(summary = "通过id删除客户信息", description = "通过id删除客户信息")
@SysLog("通过id删除客户信息")
@DeleteMapping("/{id}")
@PreAuthorize("@pms.hasPermission('demo_tcustomerinfo_del')")
@PreAuthorize("@pms.hasPermission('tcustomerinfo_del')")
public R<Boolean> removeById(@PathVariable String id) {
return R.ok(tCustomerInfoService.removeById(id));
}
......
......@@ -60,7 +60,6 @@ public class TSettleDomainController {
*/
@Operation(summary = "分页查询", description = "分页查询")
@GetMapping("/page")
@PreAuthorize("@pms.hasPermission('demo_tsettledomain_get')")
public R<IPage<TSettleDomain>> getTSettleDomainPage(Page<TSettleDomain> page, TSettleDomain tSettleDomain) {
return R.ok(tSettleDomainService.page(page, Wrappers.query(tSettleDomain)));
}
......@@ -74,7 +73,6 @@ public class TSettleDomainController {
*/
@Operation(summary = "通过id查询", description = "通过id查询")
@GetMapping("/{id}")
@PreAuthorize("@pms.hasPermission('demo_tsettledomain_get')")
public R<TSettleDomain> getById(@PathVariable("id") String id) {
return R.ok(tSettleDomainService.getById(id));
}
......@@ -88,7 +86,7 @@ public class TSettleDomainController {
@Operation(summary = "新增项目表", description = "新增项目表")
@SysLog("新增项目表")
@PostMapping
@PreAuthorize("@pms.hasPermission('demo_tsettledomain_add')")
@PreAuthorize("@pms.hasPermission('tsettledomain_add')")
public R<Boolean> save(@RequestBody TSettleDomain tSettleDomain) {
return R.ok(tSettleDomainService.save(tSettleDomain));
}
......@@ -102,7 +100,7 @@ public class TSettleDomainController {
@Operation(summary = "修改项目表", description = "修改项目表")
@SysLog("修改项目表")
@PutMapping
@PreAuthorize("@pms.hasPermission('demo_tsettledomain_edit')")
@PreAuthorize("@pms.hasPermission('tsettledomain_edit')")
public R<Boolean> updateById(@RequestBody TSettleDomain tSettleDomain) {
return R.ok(tSettleDomainService.updateById(tSettleDomain));
}
......@@ -116,7 +114,7 @@ public class TSettleDomainController {
@Operation(summary = "通过id删除项目表", description = "通过id删除项目表")
@SysLog("通过id删除项目表")
@DeleteMapping("/{id}")
@PreAuthorize("@pms.hasPermission('demo_tsettledomain_del')")
@PreAuthorize("@pms.hasPermission('tsettledomain_del')")
public R<Boolean> removeById(@PathVariable String id) {
return R.ok(tSettleDomainService.removeById(id));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment