| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- -- 样本采集通知人员角色(幂等)
- -- 仅插入角色,不挂菜单、不自动绑用户;由运营在「角色管理」中挂人。
- -- 对齐 docs/superpowers/specs/2026-10-23-sample-collect-wx-notify-design.md
- INSERT INTO sys_role (
- id,
- role_name,
- data_scope,
- status,
- tenant_no,
- order_num,
- remark,
- create_by,
- create_dept_id,
- create_time,
- update_by,
- update_time,
- del_flag
- )
- SELECT
- REPLACE(UUID(), '-', ''),
- '样本采集通知人员',
- '1',
- '1',
- 'zkxw',
- 0,
- '协议新增样本时接收服务号模板消息',
- 'system',
- '',
- NOW(),
- 'system',
- NOW(),
- 0
- FROM DUAL
- WHERE NOT EXISTS (
- SELECT 1
- FROM sys_role r
- WHERE r.tenant_no = 'zkxw'
- AND r.role_name = '样本采集通知人员'
- AND r.del_flag = 0
- );
|