✨ 客户列表增加账单入口和权限
This commit is contained in:
+2
-2
@@ -46,7 +46,7 @@ public class CustomerBillController extends BaseController
|
||||
/**
|
||||
* 查询指定客户的应收账单(分页)。客户ID来自路径并覆盖查询对象中的同名参数。
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('customersupplier:customerinfo:list')")
|
||||
@PreAuthorize("@ss.hasPermi('customersupplier:customerinfo:bill')")
|
||||
@GetMapping("/list/{customerId}")
|
||||
public AjaxResult billList(@PathVariable("customerId") Long customerId, ArBillQuery query)
|
||||
{
|
||||
@@ -73,7 +73,7 @@ public class CustomerBillController extends BaseController
|
||||
/**
|
||||
* 按当前筛选条件导出指定客户的全部应收账单,不受列表分页参数影响。
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('customersupplier:customerinfo:export')")
|
||||
@PreAuthorize("@ss.hasPermi('customersupplier:customerinfo:bill') and @ss.hasPermi('customersupplier:customerinfo:export')")
|
||||
@Log(title = "客户账单", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export/{customerId}")
|
||||
public void export(HttpServletResponse response, @PathVariable("customerId") Long customerId, ArBillQuery query)
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
-- 客户信息列表-账单按钮权限
|
||||
-- 权限标识:customersupplier:customerinfo:bill,挂在「客户管理」(menu_id=2313) 下
|
||||
-- 默认不授予任何角色,需在系统管理-角色管理中按需授权。
|
||||
INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, query, route_name, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, remark)
|
||||
SELECT '账单', 2313, 7, '', '', '', NULL, 1, 0, 'F', '0', '0', 'customersupplier:customerinfo:bill', '#', 'admin', NOW(), '客户信息列表账单按钮'
|
||||
WHERE NOT EXISTS (
|
||||
SELECT 1 FROM sys_menu WHERE perms = 'customersupplier:customerinfo:bill'
|
||||
);
|
||||
|
||||
-- 若此前已执行过本脚本的旧版本,同步更新角色管理中显示的按钮名称。
|
||||
UPDATE sys_menu
|
||||
SET menu_name = '账单', remark = '客户信息列表账单按钮'
|
||||
WHERE perms = 'customersupplier:customerinfo:bill';
|
||||
Reference in New Issue
Block a user