/* 新增虚拟管理员对于 智能搜索 的权限  BT-00186869 */
/* 以下分为四组情况，三组是三权分立情况下给三个虚拟管理员添加“智能搜索”下的四个表单，一组是超级管理权限策略下给administrator添加 */

DELETE FROM t_perm_adminschemedetail where FDETAILID in(621334583413065858, 621334583413065859,621334583413065860,621334583413065861);
INSERT INTO t_perm_adminschemedetail (FENTRYID, FDETAILID, FSEQ, FBIZAPPID, FENTITYNUM) VALUES (586840171824022529, 621334583413065858, 0, '0ZQNLAW1/TKF', 'ais_entity_relation');  /* 实体配置引用关系 */
INSERT INTO t_perm_adminschemedetail (FENTRYID, FDETAILID, FSEQ, FBIZAPPID, FENTITYNUM) VALUES (586840171824022529, 621334583413065859, 0, '0ZQNLAW1/TKF', 'ais_es_query');         /* ES查询 */
INSERT INTO t_perm_adminschemedetail (FENTRYID, FDETAILID, FSEQ, FBIZAPPID, FENTITYNUM) VALUES (586840171824022529, 621334583413065860, 0, '0ZQNLAW1/TKF', 'ais_entity_cfg');       /* 全局搜索对象 */
INSERT INTO t_perm_adminschemedetail (FENTRYID, FDETAILID, FSEQ, FBIZAPPID, FENTITYNUM) VALUES (586840171824022529, 621334583413065861, 0, '0ZQNLAW1/TKF', 'ais_entity_cfg_ref');   /* 被引用的实体 */

DELETE FROM t_perm_adminschemedetail where FDETAILID in(621334583413065862, 621334583413065863,621334583413065864,621334583413065865);
INSERT INTO t_perm_adminschemedetail (FENTRYID, FDETAILID, FSEQ, FBIZAPPID, FENTITYNUM) VALUES (586840171824022530, 621334583413065862, 0, '0ZQNLAW1/TKF', 'ais_entity_relation');
INSERT INTO t_perm_adminschemedetail (FENTRYID, FDETAILID, FSEQ, FBIZAPPID, FENTITYNUM) VALUES (586840171824022530, 621334583413065863, 0, '0ZQNLAW1/TKF', 'ais_es_query');
INSERT INTO t_perm_adminschemedetail (FENTRYID, FDETAILID, FSEQ, FBIZAPPID, FENTITYNUM) VALUES (586840171824022530, 621334583413065864, 0, '0ZQNLAW1/TKF', 'ais_entity_cfg');
INSERT INTO t_perm_adminschemedetail (FENTRYID, FDETAILID, FSEQ, FBIZAPPID, FENTITYNUM) VALUES (586840171824022530, 621334583413065865, 0, '0ZQNLAW1/TKF', 'ais_entity_cfg_ref');

DELETE FROM t_perm_adminschemedetail where FDETAILID in(621334583413065866, 621334583413065867,621334583413065868,621334583413065869);
INSERT INTO t_perm_adminschemedetail (FENTRYID, FDETAILID, FSEQ, FBIZAPPID, FENTITYNUM) VALUES (586840171824022531, 621334583413065866, 0, '0ZQNLAW1/TKF', 'ais_entity_relation');
INSERT INTO t_perm_adminschemedetail (FENTRYID, FDETAILID, FSEQ, FBIZAPPID, FENTITYNUM) VALUES (586840171824022531, 621334583413065867, 0, '0ZQNLAW1/TKF', 'ais_es_query');
INSERT INTO t_perm_adminschemedetail (FENTRYID, FDETAILID, FSEQ, FBIZAPPID, FENTITYNUM) VALUES (586840171824022531, 621334583413065868, 0, '0ZQNLAW1/TKF', 'ais_entity_cfg');
INSERT INTO t_perm_adminschemedetail (FENTRYID, FDETAILID, FSEQ, FBIZAPPID, FENTITYNUM) VALUES (586840171824022531, 621334583413065869, 0, '0ZQNLAW1/TKF', 'ais_entity_cfg_ref');

DELETE FROM t_perm_adminschemedetail where FDETAILID in(621334583413065870, 621334583413065871,621334583413065872,621334583413065873);
INSERT INTO t_perm_adminschemedetail (FENTRYID, FDETAILID, FSEQ, FBIZAPPID, FENTITYNUM) VALUES (586817719983145985, 621334583413065870, 0, '0ZQNLAW1/TKF', 'ais_entity_relation');
INSERT INTO t_perm_adminschemedetail (FENTRYID, FDETAILID, FSEQ, FBIZAPPID, FENTITYNUM) VALUES (586817719983145985, 621334583413065871, 0, '0ZQNLAW1/TKF', 'ais_es_query');
INSERT INTO t_perm_adminschemedetail (FENTRYID, FDETAILID, FSEQ, FBIZAPPID, FENTITYNUM) VALUES (586817719983145985, 621334583413065872, 0, '0ZQNLAW1/TKF', 'ais_entity_cfg');
INSERT INTO t_perm_adminschemedetail (FENTRYID, FDETAILID, FSEQ, FBIZAPPID, FENTITYNUM) VALUES (586817719983145985, 621334583413065873, 0, '0ZQNLAW1/TKF', 'ais_entity_cfg_ref');

