权限按钮数据插入.sql 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('新增', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:system:role') a), (NOW()), '1', '1', '0', 'pc:system:role:add');
  2. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  3. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('修改', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:system:role') a), (NOW()), '1', '2', '0', 'pc:system:role:edit');
  4. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  5. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('删除', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:system:role') a), (NOW()), '1', '3', '0', 'pc:system:role:delete');
  6. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  7. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('新增', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:project') a), (NOW()), '1', '1', '0', 'pc:organization:project:add');
  8. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  9. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('修改', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:project') a), (NOW()), '1', '2', '0', 'pc:organization:project:edit');
  10. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  11. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('删除', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:project') a), (NOW()), '1', '3', '0', 'pc:organization:project:delete');
  12. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  13. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('审核', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:project') a), (NOW()), '1', '4', '0', 'pc:organization:project:approve');
  14. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  15. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('新增', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:build') a), (NOW()), '1', '1', '0', 'pc:organization:build:add');
  16. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  17. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('修改', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:build') a), (NOW()), '1', '2', '0', 'pc:organization:build:edit');
  18. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  19. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('删除', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:build') a), (NOW()), '1','3', '0', 'pc:organization:build:delete');
  20. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  21. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('审核', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:build') a), (NOW()), '1', '4', '0', 'pc:organization:build:approve');
  22. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  23. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('新增', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:company') a), (NOW()), '1', '1', '0', 'pc:organization:company:add');
  24. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  25. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('修改', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:company') a), (NOW()), '1', '2', '0', 'pc:organization:company:edit');
  26. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  27. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('删除', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:company') a), (NOW()), '1', '3', '0', 'pc:organization:company:delete');
  28. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  29. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('新增', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:dept') a), (NOW()), '1', '1', '0', 'pc:organization:dept:add');
  30. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  31. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('修改', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:dept') a), (NOW()), '1', '2', '0', 'pc:organization:dept:edit');
  32. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  33. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('删除', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:dept') a), (NOW()), '1', '3', '0', 'pc:organization:dept:delete');
  34. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  35. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('新增', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:enterprise-data') a), (NOW()), '1', '1', '0', 'pc:organization:enterprise-data:add');
  36. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  37. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('修改', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:enterprise-data') a), (NOW()), '1', '2', '0', 'pc:organization:enterprise-data:edit');
  38. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  39. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('删除', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:enterprise-data') a), (NOW()), '1', '3', '0', 'pc:organization:enterprise-data:delete');
  40. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  41. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('新增', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:floor') a), (NOW()), '1', '1', '0', 'pc:organization:floor:add');
  42. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  43. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('修改', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:floor') a), (NOW()), '1', '2', '0', 'pc:organization:floor:edit');
  44. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  45. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('删除', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:floor') a), (NOW()), '1', '3', '0', 'pc:organization:floor:delete');
  46. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  47. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('新增', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:enterprise') a), (NOW()), '1', '1', '0', 'pc:organization:enterprise:add');
  48. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  49. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('修改', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:enterprise') a), (NOW()), '1', '2', '0', 'pc:organization:enterprise:edit');
  50. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  51. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('删除', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:enterprise') a), (NOW()), '1', '3', '0', 'pc:organization:enterprise:delete');
  52. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  53. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('修改', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:organization:enterprise-account') a), (NOW()), '1', '2', '0', 'pc:organization:enterprise-account:edit');
  54. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  55. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('新增', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:setting:wechat') a), (NOW()), '1', '1', '0', 'pc:setting:wechat:add');
  56. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  57. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('修改', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:setting:wechat') a), (NOW()), '1', '2', '0', 'pc:setting:wechat:edit');
  58. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  59. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('删除', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:setting:wechat') a), (NOW()), '1', '3', '0', 'pc:setting:wechat:delete');
  60. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  61. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('新增', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:setting:service') a), (NOW()), '1', '1', '0', 'pc:setting:service:add');
  62. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  63. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('修改', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:setting:service') a), (NOW()), '1', '2', '0', 'pc:setting:service:edit');
  64. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  65. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('删除', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:setting:service') a), (NOW()), '1', '3', '0', 'pc:setting:service:delete');
  66. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  67. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('新增', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:setting:project') a), (NOW()), '1', '1', '0', 'pc:setting:project:add');
  68. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  69. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('修改', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:setting:project') a), (NOW()), '1', '2', '0', 'pc:setting:project:edit');
  70. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  71. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('删除', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:setting:project') a), (NOW()), '1', '3', '0', 'pc:setting:project:delete');
  72. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  73. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('新增', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:basics:dictionary') a), (NOW()), '1', '1', '0', 'pc:basics:dictionary:add');
  74. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  75. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('修改', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:basics:dictionary') a), (NOW()), '1', '2', '0', 'pc:basics:dictionary:edit');
  76. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  77. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('删除', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:basics:dictionary') a), (NOW()), '1', '3', '0', 'pc:basics:dictionary:delete');
  78. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  79. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('新增', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:basics:wxtemplate') a), (NOW()), '1', '1', '0', 'pc:basics:wxtemplate:add');
  80. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  81. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('修改', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:basics:wxtemplate') a), (NOW()), '1', '2', '0', 'pc:basics:wxtemplate:edit');
  82. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  83. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('删除', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:basics:wxtemplate') a), (NOW()), '1', '3', '0', 'pc:basics:wxtemplate:delete');
  84. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  85. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('新增', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:basics:email') a), (NOW()), '1', '1', '0', 'pc:basics:email:add');
  86. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  87. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('修改', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:basics:email') a), (NOW()), '1', '2', '0', 'pc:basics:email:edit');
  88. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  89. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('删除', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:basics:email') a), (NOW()), '1', '3', '0', 'pc:basics:email:delete');
  90. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  91. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('新增', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:basics:sms') a), (NOW()), '1', '1', '0', 'pc:basics:sms:add');
  92. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  93. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('修改', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:basics:sms') a), (NOW()), '1', '2', '0', 'pc:basics:sms:edit');
  94. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  95. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('删除', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:basics:sms') a), (NOW()), '1', '3', '0', 'pc:basics:sms:delete');
  96. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  97. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('新增', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:notice:list') a), (NOW()), '1', '1', '0', 'pc:notice:list:add');
  98. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  99. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('修改', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:notice:list') a), (NOW()), '1', '2', '0', 'pc:notice:list:edit');
  100. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  101. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('删除', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:notice:list') a), (NOW()), '1', '3', '0', 'pc:notice:list:delete');
  102. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  103. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('新增', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:washcar:list') a), (NOW()), '1', '1', '0', 'pc:washcar:list:add');
  104. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  105. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('修改', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:washcar:list') a), (NOW()), '1', '2', '0', 'pc:washcar:list:edit');
  106. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  107. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('删除', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:washcar:list') a), (NOW()), '1', '3', '0', 'pc:washcar:list:delete');
  108. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  109. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('审核', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:release:approval') a), (NOW()), '1', '4', '0', 'pc:release:approval:approve');
  110. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
  111. INSERT INTO `tb_app_function` (`FUNCTION_NAME`, `RIGHT_TYPE`, `PARENTCODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`) VALUES ('审核', '2', (SELECT a.ID FROM (SELECT ID FROM tb_app_function WHERE PERMS='pc:dormitory:checkout') a), (NOW()), '1', '4', '0', 'pc:dormitory:checkout:approve');
  112. update `tb_app_function` set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());