new-p.sql 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. CREATE TABLE `resource_plan_staff` (
  2. `id` varchar(50) NOT NULL,
  3. `user_id` varchar(50) DEFAULT NULL,
  4. `user_name` varchar(50) DEFAULT NULL COMMENT '用户名称',
  5. `oa_fun_classification_id` varchar(50) DEFAULT NULL COMMENT '职能分类ID',
  6. `oa_fun_classification_name` varchar(255) DEFAULT NULL COMMENT '职能分类名称',
  7. `post_id` varchar(50) DEFAULT NULL COMMENT '岗位职级(oa_user_cost)',
  8. `post_level_name` varchar(50) DEFAULT NULL COMMENT '岗位职级',
  9. `pro_id` varchar(50) DEFAULT NULL COMMENT '项目',
  10. `pro_name` varchar(255) DEFAULT NULL COMMENT '项目名称',
  11. `group_id` varchar(50) DEFAULT NULL COMMENT '集团',
  12. `cust_name` varchar(255) DEFAULT NULL COMMENT '客户',
  13. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  14. `create_by` varchar(255) DEFAULT NULL COMMENT '创建人',
  15. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  16. `update_by` varchar(100) DEFAULT NULL COMMENT '修改人',
  17. PRIMARY KEY (`id`),
  18. KEY `staff_pro_id_index` (`pro_id`) USING BTREE,
  19. KEY `staff_user_id_index` (`user_id`)
  20. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='资源计划人员基础表';
  21. CREATE TABLE `resource_plan_staff_detail` (
  22. `id` varchar(50) NOT NULL,
  23. `plan_staff_id` varchar(50) DEFAULT NULL COMMENT '资源计划人员ID',
  24. `user_id` varchar(50) DEFAULT NULL,
  25. `pro_id` varchar(50) DEFAULT NULL,
  26. `year_no` int(11) DEFAULT NULL COMMENT '年',
  27. `month_no` int(11) DEFAULT NULL COMMENT '月',
  28. `year_month_str` varchar(50) DEFAULT NULL COMMENT '年月',
  29. `year_mon` int(11) DEFAULT NULL COMMENT '年月',
  30. `multiple_hour` double DEFAULT NULL COMMENT '倍数',
  31. `workload` double DEFAULT NULL COMMENT '工作量 (倍数*工作天数)',
  32. `cost` double DEFAULT NULL COMMENT '成本',
  33. `group_id` varchar(50) DEFAULT NULL,
  34. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  35. `create_by` varchar(255) DEFAULT NULL COMMENT '创建人',
  36. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  37. `update_by` varchar(100) DEFAULT NULL COMMENT '修改人',
  38. `month_days` int(11) DEFAULT NULL COMMENT '每月工作天数',
  39. PRIMARY KEY (`id`)
  40. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='资源计划人员详情表';
  41. INSERT INTO `frame_permission` (`id`, `name`, `descripion`, `url`, `pid`, `perms`, `type`, `icon`, `order_num`, `description`) VALUES ('106924579035545666', '资源计划', NULL, 'resourcePlan', '1', '', 1, 'wechat', 15, NULL);
  42. INSERT INTO `frame_permission` (`id`, `name`, `descripion`, `url`, `pid`, `perms`, `type`, `icon`, `order_num`, `description`) VALUES ('106924579035584697', '资源计划', NULL, 'resourcePlanView', '106924579035545666', '/resourcePlan/resourcePlanView', 1, 'wechat', 15, NULL);
  43. INSERT INTO `frame_permission` (`id`, `name`, `descripion`, `url`, `pid`, `perms`, `type`, `icon`, `order_num`, `description`) VALUES ('106924579035597982', '资源计划编制', NULL, 'resourcePlanSaff', '106924579035545666', '/resourcePlan/resourcePlanStaff', 1, 'wechat', 15, NULL);
  44. INSERT INTO `sys_dict` (`id`, `dict_name`, `dict_code`, `dict_value`, `sys_id`) VALUES ('1034127877685116928', '签约状态1', 'dc_sign_status_s', '[{\"id\":1666596882416,\"label\":\"待签约\",\"value\":\"0\",\"isSearch\":false},{\"id\":1666596886759,\"label\":\"应签约\",\"value\":\"2\",\"isSearch\":false},{\"id\":1666596890359,\"label\":\"已签约\",\"value\":\"3\",\"isSearch\":false},{\"id\":1734659407092,\"label\":\"无需签约\",\"value\":\"6\",\"isSearch\":false},{\"id\":1734659437710,\"label\":\"中止\",\"value\":\"4\",\"isSearch\":false}]', 'BIZ_OA');
  45. alter table resource_plan_staff
  46. add post_level varchar(255) null comment '职级';
  47. alter table resource_plan_staff
  48. add posts varchar(255) null comment '岗位(frame_post)';