待更新脚本.txt 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. ---2024-5-30日 购物车mysql脚本
  2. create table cf_apply_form
  3. (
  4. applyId varchar(50) not null,
  5. applyUserId varchar(50),
  6. applyUserName varchar(50),
  7. status int comment '1、审核中2、审核通过3、驳回',
  8. applyDate datetime comment '申请时间',
  9. reason varchar(300) comment '申请原因',
  10. primary key (applyId)
  11. );
  12. create table cf_apply_form_reviewer
  13. (
  14. reviewerId varchar(50) not null,
  15. applyId varchar(50),
  16. reviewerUserId varchar(50),
  17. reviewerUserName varchar(50),
  18. reviewerAction int,
  19. comments varchar(300),
  20. reviewerDate datetime,
  21. primary key (reviewerId)
  22. );
  23. alter table cf_apply_form_reviewer add constraint FK_Reference_34 foreign key (applyId)
  24. references cf_apply_form (applyId) on delete restrict on update restrict;
  25. create table cf_apply_form_well_file
  26. (
  27. wellFileId varchar(50) not null,
  28. applyId varchar(50) comment '关联申请单',
  29. well_common_name varchar(200) comment '井',
  30. file_name varchar(200) comment '文件名称',
  31. primary key (wellFileId)
  32. );
  33. alter table cf_apply_form_well_file add constraint FK_Reference_35 foreign key (applyId)
  34. references cf_apply_form (applyId) on delete restrict on update restrict;
  35. INSERT INTO sys_function_code (FunctionCode, FunctionName, ParentFunctionCode, OrderNo) VALUES ('T0111', '我的审批', 'T01', 9);
  36. INSERT INTO sys_menu (MenuNo, OrderNo, MenuName, Icon, ViewPath, Url, ParentMenuNo, Description, IsTopMenu, IsVisible, IsLeaf, FunctionCode, RecordStatus, ShortcutIcon)
  37. VALUES ('T0111', 4, '我的审批', 'MailOutlined', 'views/reviewer', '/reviewer', 'T01', null, 0, 1, 1, 'T0111', 1, null);
  38. INSERT INTO sys_menu (MenuNo, OrderNo, MenuName, Icon, ViewPath, Url, ParentMenuNo, Description, IsTopMenu, IsVisible, IsLeaf, FunctionCode, RecordStatus, ShortcutIcon)
  39. VALUES ('T011101', 1, '我的审批', '', 'views/reviewerList', '/reviewer/list', 'T0111', null, 0, 0, 1, 'T0111', 1, null);
  40. INSERT INTO sys_function_code (FunctionCode, FunctionName, ParentFunctionCode, OrderNo) VALUES ('T0110', '我的申请', 'T01', 9);
  41. INSERT INTO sys_menu (MenuNo, OrderNo, MenuName, Icon, ViewPath, Url, ParentMenuNo, Description, IsTopMenu, IsVisible, IsLeaf, FunctionCode, RecordStatus, ShortcutIcon)
  42. VALUES ('T0110', 4, '我的申请', 'FileDoneOutlined', 'views/apply', '/apply', 'T01', null, 0, 1, 1, 'T0110', 1, null);
  43. INSERT INTO sys_menu (MenuNo, OrderNo, MenuName, Icon, ViewPath, Url, ParentMenuNo, Description, IsTopMenu, IsVisible, IsLeaf, FunctionCode, RecordStatus, ShortcutIcon)
  44. VALUES ('T011001', 1, '我的申请', '', 'views/applyList', '/apply/list', 'T0110', null, 0, 0, 1, 'T0110', 1, null);
  45. UPDATE sys_menu SET OrderNo=6 WHERE MenuNo='T0108';
  46. UPDATE sys_menu SET OrderNo=5 WHERE MenuNo='T0109';
  47. insert into sys_dictionary value('applyFormStatus','申请单状态',1,1);
  48. insert into sys_dictionary_item values (uuid(),'','applyFormStatus',1,'审核中',1,1,1);
  49. insert into sys_dictionary_item values (uuid(),'','applyFormStatus',2,'通过',2,1,1);
  50. insert into sys_dictionary_item values (uuid(),'','applyFormStatus',3,'驳回',3,1,1);