v11.3.1.sql 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. SET FOREIGN_KEY_CHECKS=0;
  2. ALTER TABLE `wk_crm_field` ADD COLUMN `style_percent` int(3) NULL DEFAULT 50 COMMENT '样式百分比%';
  3. ALTER TABLE `wk_crm_field` ADD COLUMN `precisions` int(2) NULL COMMENT '精度,允许的最大小数位' AFTER `style_percent`;
  4. ALTER TABLE `wk_crm_field` ADD COLUMN `form_position` varchar(10) NULL COMMENT '表单定位 坐标格式: 1,1' AFTER `precisions`;
  5. ALTER TABLE `wk_crm_field` ADD COLUMN `max_num_restrict` varchar(20) NULL COMMENT '限制的最大数值' AFTER `form_position`;
  6. ALTER TABLE `wk_crm_field` ADD COLUMN `min_num_restrict` varchar(20) NULL COMMENT '限制的最小数值' AFTER `max_num_restrict`;
  7. ALTER TABLE `wk_oa_examine_field` ADD COLUMN `style_percent` int(3) NULL DEFAULT 50 COMMENT '样式百分比%';
  8. ALTER TABLE `wk_oa_examine_field` ADD COLUMN `precisions` int(2) NULL COMMENT '精度,允许的最大小数位' AFTER `style_percent`;
  9. ALTER TABLE `wk_oa_examine_field` ADD COLUMN `form_position` varchar(10) NULL COMMENT '表单定位 坐标格式: 1,1' AFTER `precisions`;
  10. ALTER TABLE `wk_oa_examine_field` ADD COLUMN `max_num_restrict` varchar(20) NULL COMMENT '限制的最大数值' AFTER `form_position`;
  11. ALTER TABLE `wk_oa_examine_field` ADD COLUMN `min_num_restrict` varchar(20) NULL COMMENT '限制的最小数值' AFTER `max_num_restrict`;
  12. ALTER TABLE `wk_crm_field` MODIFY COLUMN `default_value` varchar(5000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '默认值' AFTER `max_length`;
  13. ALTER TABLE `wk_oa_examine_field` MODIFY COLUMN `default_value` varchar(5000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '默认值' AFTER `max_length`;
  14. ALTER TABLE `wk_admin_user` ADD COLUMN `is_del` int(1) NOT NULL DEFAULT 0 COMMENT '是否删除 0 未删除 1 已删除';
  15. ALTER TABLE `wk_admin_dept` ADD COLUMN `owner_user_id` bigint(20) NULL COMMENT '部门负责人' AFTER `remark`;
  16. INSERT INTO `wk_admin_menu`(`menu_id`, `parent_id`, `menu_name`, `realm`, `realm_url`, `realm_module`, `menu_type`, `sort`, `status`, `remarks`) VALUES (928, 440, '导入', 'excelimport', '/crmInstrument/importRecordList', NULL, 3, 5, 1, NULL);
  17. INSERT INTO `wk_admin_menu`(`menu_id`, `parent_id`, `menu_name`, `realm`, `realm_url`, `realm_module`, `menu_type`, `sort`, `status`, `remarks`) VALUES (929, 440, '导出', 'excelexport', '/crmInstrument/exportRecordList', NULL, 3, 6, 1, NULL);
  18. UPDATE `wk_admin_menu` SET `parent_id` = 440, `menu_name` = '查看', `realm` = 'read', `realm_url` = '/crmInstrument/queryRecordList', `realm_module` = NULL, `menu_type` = 3, `sort` = 1, `status` = 1, `remarks` = NULL WHERE `menu_id` = 441;
  19. UPDATE `wk_admin_menu` SET `parent_id` = 440, `menu_name` = '新建', `realm` = 'save', `realm_url` = '/crmActivity/addCrmActivityRecord', `realm_module` = NULL, `menu_type` = 3, `sort` = 2, `status` = 1, `remarks` = NULL WHERE `menu_id` = 442;
  20. UPDATE `wk_admin_menu` SET `parent_id` = 440, `menu_name` = '编辑', `realm` = 'update', `realm_url` = '/crmActivity/updateActivityRecord', `realm_module` = NULL, `menu_type` = 3, `sort` = 3, `status` = 1, `remarks` = NULL WHERE `menu_id` = 443;
  21. UPDATE `wk_admin_menu` SET `parent_id` = 440, `menu_name` = '删除', `realm` = 'delete', `realm_url` = '/crmActivity/deleteCrmActivityRecord/*', `realm_module` = NULL, `menu_type` = 3, `sort` = 4, `status` = 1, `remarks` = NULL WHERE `menu_id` = 444;
  22. ALTER TABLE `wk_oa_examine_field`
  23. MODIFY COLUMN `operating` int(1) NULL DEFAULT 255 COMMENT '是否可以删除修改' AFTER `options`;
  24. ALTER TABLE `wk_crm_field`
  25. MODIFY COLUMN `operating` int(1) NULL DEFAULT 255 COMMENT '是否可以删除修改' AFTER `options`;
  26. UPDATE `wk_crm_field` SET `style_percent` = 50;
  27. UPDATE `wk_crm_field` SET `operating` = 255 WHERE field_type='0';
  28. UPDATE `wk_crm_field` SET `operating` = 189 WHERE label='1' and field_name='leads_name';
  29. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='1' and field_name='source';
  30. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='1' and field_name='mobile';
  31. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='1' and field_name='telephone';
  32. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='1' and field_name='email';
  33. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='1' and field_name='industry';
  34. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='1' and field_name='level';
  35. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='1' and field_name='address';
  36. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='1' and field_name='remark';
  37. UPDATE `wk_crm_field` SET `operating` = 63 WHERE label='1' and field_name='next_time';
  38. UPDATE `wk_crm_field` SET `operating` = 189 WHERE label='2' and field_name='customer_name';
  39. UPDATE `wk_crm_field` SET `operating` = 63 WHERE label='2' and field_name='level';
  40. UPDATE `wk_crm_field` SET `operating` = 63 WHERE label='2' and field_name='next_time';
  41. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='2' and field_name='industry';
  42. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='2' and field_name='source';
  43. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='2' and field_name='mobile';
  44. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='2' and field_name='website';
  45. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='2' and field_name='email';
  46. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='2' and field_name='remark';
  47. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='2' and field_name='telephone';
  48. UPDATE `wk_crm_field` SET `operating` = 181 WHERE label='3' and field_name='name';
  49. UPDATE `wk_crm_field` SET `operating` = 159 WHERE label='3' and field_name='customer_id';
  50. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='3' and field_name='post';
  51. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='3' and field_name='sex';
  52. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='3' and field_name='mobile';
  53. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='3' and field_name='telephone';
  54. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='3' and field_name='email';
  55. UPDATE `wk_crm_field` SET `operating` = 190 WHERE label='3' and field_name='policymakers';
  56. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='3' and field_name='address';
  57. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='3' and field_name='next_time';
  58. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='3' and field_name='remark';
  59. UPDATE `wk_crm_field` SET `operating` = 177 WHERE label='4' and field_name='name';
  60. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='4' and field_name='unit';
  61. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='4' and field_name='num';
  62. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='4' and field_name='description';
  63. UPDATE `wk_crm_field` SET `operating` = 181 WHERE label='4' and field_name='price';
  64. UPDATE `wk_crm_field` SET `operating` = 181 WHERE label='5' and field_name='business_name';
  65. UPDATE `wk_crm_field` SET `operating` = 149 WHERE label='5' and field_name='customer_id';
  66. UPDATE `wk_crm_field` SET `operating` = 189 WHERE label='5' and field_name='money';
  67. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='5' and field_name='deal_date';
  68. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='5' and field_name='remark';
  69. UPDATE `wk_crm_field` SET `operating` = 177 WHERE label='6' and field_name='num';
  70. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='6' and field_name='name';
  71. UPDATE `wk_crm_field` SET `operating` = 149 WHERE label='6' and field_name='customer_id';
  72. UPDATE `wk_crm_field` SET `operating` = 159 WHERE label='6' and field_name='business_id';
  73. UPDATE `wk_crm_field` SET `operating` = 181 WHERE label='6' and field_name='order_date';
  74. UPDATE `wk_crm_field` SET `operating` = 189 WHERE label='6' and field_name='money';
  75. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='6' and field_name='start_time';
  76. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='6' and field_name='end_time';
  77. UPDATE `wk_crm_field` SET `operating` = 159 WHERE label='6' and field_name='contacts_id';
  78. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='6' and field_name='company_user_id';
  79. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='6' and field_name='remark';
  80. UPDATE `wk_crm_field` SET `operating` = 177 WHERE label='7' and field_name='number';
  81. UPDATE `wk_crm_field` SET `operating` = 159 WHERE label='7' and field_name='contract_id';
  82. UPDATE `wk_crm_field` SET `operating` = 149 WHERE label='7' and field_name='customer_id';
  83. UPDATE `wk_crm_field` SET `operating` = 181 WHERE label='7' and field_name='return_time';
  84. UPDATE `wk_crm_field` SET `operating` = 181 WHERE label='7' and field_name='money';
  85. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='7' and field_name='return_type';
  86. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='7' and field_name='remark';
  87. UPDATE `wk_crm_field` SET `operating` = 177 WHERE label='17' and field_name='visit_number';
  88. UPDATE `wk_crm_field` SET `operating` = 181 WHERE label='17' and field_name='visit_time';
  89. UPDATE `wk_crm_field` SET `operating` = 149 WHERE label='17' and field_name='owner_user_id';
  90. UPDATE `wk_crm_field` SET `operating` = 149 WHERE label='17' and field_name='customer_id';
  91. UPDATE `wk_crm_field` SET `operating` = 159 WHERE label='17' and field_name='contacts_id';
  92. UPDATE `wk_crm_field` SET `operating` = 159 WHERE label='17' and field_name='contract_id';
  93. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='17' and field_name='return_visit_type';
  94. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='17' and field_name='satisficing';
  95. UPDATE `wk_crm_field` SET `operating` = 191 WHERE label='17' and field_name='flied_itvzix';
  96. SET FOREIGN_KEY_CHECKS=1;