2021-09-06_001(宫德财).sql 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. CREATE TABLE `settled_company_info` (
  2. `id` varchar(32) NOT NULL COMMENT '主键',
  3. `comp_id` varchar(32) DEFAULT NULL COMMENT '公司id',
  4. `comp_name` varchar(100) DEFAULT NULL COMMENT '公司名称',
  5. `create_phone` varchar(50) DEFAULT NULL COMMENT '创建人手机号',
  6. `main_business_type` varchar(100) DEFAULT NULL COMMENT '主营类型',
  7. `title` varchar(200) DEFAULT NULL COMMENT '标题',
  8. `company_profile` varchar(1000) DEFAULT NULL COMMENT '企业简介',
  9. `company_contant` varchar(1000) DEFAULT NULL COMMENT '企业概况',
  10. `longitude` varchar(50) DEFAULT NULL COMMENT '经度',
  11. `latitude` varchar(50) DEFAULT NULL COMMENT '纬度',
  12. `province` varchar(50) DEFAULT NULL COMMENT '省',
  13. `city` varchar(50) DEFAULT NULL COMMENT '市',
  14. `area` varchar(50) DEFAULT NULL COMMENT '区',
  15. `detailed_address` varchar(200) DEFAULT NULL COMMENT '详细地址',
  16. `attachment_address` varchar(200) DEFAULT NULL COMMENT '封面附件地址',
  17. `license_address` varchar(200) DEFAULT NULL COMMENT '营业执照地址',
  18. `label` varchar(500) DEFAULT NULL COMMENT '标签',
  19. `site_photo_address` varchar(2000) DEFAULT NULL COMMENT '场地照片地址',
  20. `email` varchar(50) DEFAULT NULL COMMENT '邮箱',
  21. `fax` varchar(50) DEFAULT NULL COMMENT '传真',
  22. `status_flag` varchar(50) DEFAULT NULL COMMENT '状态flag',
  23. `status` varchar(50) DEFAULT NULL COMMENT '状态',
  24. `approve_status` varchar(50) DEFAULT NULL COMMENT '审核状态',
  25. `workflow_id` varchar(50) DEFAULT NULL COMMENT '审核流id',
  26. `show_flag` varchar(20) DEFAULT NULL COMMENT '是否显示',
  27. `delete_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标识',
  28. `update_count` bigint(20) NOT NULL DEFAULT '0' COMMENT '更新次数',
  29. `create_date` datetime NOT NULL COMMENT '作成年月日',
  30. `create_user_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '作成用户ID',
  31. `update_date` datetime NOT NULL COMMENT '更新年月日',
  32. `update_user_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '更新用户ID',
  33. `update_flag` char(1) NOT NULL DEFAULT '0' COMMENT '更新标识',
  34. `now_version_no` bigint(20) NOT NULL DEFAULT '1' COMMENT '当前版本号',
  35. `prev_version_no` bigint(20) NOT NULL DEFAULT '0' COMMENT '更新前版本号',
  36. PRIMARY KEY (`id`) USING BTREE
  37. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='入驻公司信息';
  38. CREATE TABLE `settled_company_contacts` (
  39. `id` varchar(32) NOT NULL COMMENT '主键',
  40. `info_id` varchar(32) DEFAULT NULL COMMENT '信息id',
  41. `contacts` varchar(100) DEFAULT NULL COMMENT '联系人',
  42. `contacts_phone` varchar(50) DEFAULT NULL COMMENT '联系人电话',
  43. `delete_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标识',
  44. `update_count` bigint(20) NOT NULL DEFAULT '0' COMMENT '更新次数',
  45. `create_date` datetime NOT NULL COMMENT '作成年月日',
  46. `create_user_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '作成用户ID',
  47. `update_date` datetime NOT NULL COMMENT '更新年月日',
  48. `update_user_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '更新用户ID',
  49. `update_flag` char(1) NOT NULL DEFAULT '0' COMMENT '更新标识',
  50. `now_version_no` bigint(20) NOT NULL DEFAULT '1' COMMENT '当前版本号',
  51. `prev_version_no` bigint(20) NOT NULL DEFAULT '0' COMMENT '更新前版本号',
  52. PRIMARY KEY (`id`) USING BTREE
  53. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='入驻公司联系人信息';
  54. CREATE TABLE `settled_company_error` (
  55. `id` varchar(32) NOT NULL COMMENT '主键',
  56. `info_id` varchar(32) DEFAULT NULL COMMENT '信息id',
  57. `comp_name` varchar(100) DEFAULT NULL COMMENT '公司名称',
  58. `error` varchar(100) DEFAULT NULL COMMENT '举报/纠错',
  59. `address` varchar(50) DEFAULT NULL COMMENT '附件',
  60. `delete_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标识',
  61. `update_count` bigint(20) NOT NULL DEFAULT '0' COMMENT '更新次数',
  62. `create_date` datetime NOT NULL COMMENT '作成年月日',
  63. `create_user_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '作成用户ID',
  64. `update_date` datetime NOT NULL COMMENT '更新年月日',
  65. `update_user_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '更新用户ID',
  66. `update_flag` char(1) NOT NULL DEFAULT '0' COMMENT '更新标识',
  67. `now_version_no` bigint(20) NOT NULL DEFAULT '1' COMMENT '当前版本号',
  68. `prev_version_no` bigint(20) NOT NULL DEFAULT '0' COMMENT '更新前版本号',
  69. PRIMARY KEY (`id`) USING BTREE
  70. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='入驻公司举报纠错';
  71. CREATE TABLE `settled_company_dynamics` (
  72. `id` varchar(32) NOT NULL COMMENT '主键',
  73. `phone` varchar(32) DEFAULT NULL COMMENT '发布手机号',
  74. `comp_name` varchar(100) DEFAULT NULL COMMENT '公司名称',
  75. `city` varchar(100) DEFAULT NULL COMMENT '城市',
  76. `title` varchar(100) DEFAULT NULL COMMENT '标题',
  77. `content` varchar(1000) DEFAULT NULL COMMENT '动态内容',
  78. `address` varchar(50) DEFAULT NULL COMMENT '附件',
  79. `dynamics_date` datetime DEFAULT NULL COMMENT '发布日期',
  80. `status_flag` varchar(50) DEFAULT NULL COMMENT '状态flag',
  81. `status` varchar(50) DEFAULT NULL COMMENT '状态',
  82. `approve_status` varchar(50) DEFAULT NULL COMMENT '审核状态',
  83. `workflow_id` varchar(50) DEFAULT NULL COMMENT '审核流id',
  84. `show_flag` varchar(20) DEFAULT NULL COMMENT '是否显示',
  85. `delete_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标识',
  86. `update_count` bigint(20) NOT NULL DEFAULT '0' COMMENT '更新次数',
  87. `create_date` datetime NOT NULL COMMENT '作成年月日',
  88. `create_user_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '作成用户ID',
  89. `update_date` datetime NOT NULL COMMENT '更新年月日',
  90. `update_user_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '更新用户ID',
  91. `update_flag` char(1) NOT NULL DEFAULT '0' COMMENT '更新标识',
  92. `now_version_no` bigint(20) NOT NULL DEFAULT '1' COMMENT '当前版本号',
  93. `prev_version_no` bigint(20) NOT NULL DEFAULT '0' COMMENT '更新前版本号',
  94. PRIMARY KEY (`id`) USING BTREE
  95. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='入驻公司发布动态';
  96. CREATE TABLE `collection_company` (
  97. `id` varchar(32) NOT NULL COMMENT '主键',
  98. `info_id` varchar(32) DEFAULT NULL COMMENT '信息id',
  99. `comp_name` varchar(100) DEFAULT NULL COMMENT '公司名称',
  100. `phone` varchar(100) DEFAULT NULL COMMENT '手机号',
  101. `delete_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标识',
  102. `update_count` bigint(20) NOT NULL DEFAULT '0' COMMENT '更新次数',
  103. `create_date` datetime NOT NULL COMMENT '作成年月日',
  104. `create_user_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '作成用户ID',
  105. `update_date` datetime NOT NULL COMMENT '更新年月日',
  106. `update_user_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '更新用户ID',
  107. `update_flag` char(1) NOT NULL DEFAULT '0' COMMENT '更新标识',
  108. `now_version_no` bigint(20) NOT NULL DEFAULT '1' COMMENT '当前版本号',
  109. `prev_version_no` bigint(20) NOT NULL DEFAULT '0' COMMENT '更新前版本号',
  110. PRIMARY KEY (`id`) USING BTREE
  111. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='收藏公司';
  112. INSERT INTO `common_business_feature`(`id`, `name`, `name_en`, `code`, `index`, `category_code`, `parent_id`, `service_code`, `tenant_id`, `delete_flag`, `update_count`, `create_date`, `create_user_id`, `update_date`, `update_user_id`, `update_flag`, `now_version_no`, `prev_version_no`) VALUES ('mmmm1191c9f11ea9ff31831bf228000', '运输结算统计', NULL, 'TRANSPORTATION-SETTLEMENT-REPORT', 1, 'WORKFLOW', '4333b12601c9e11ea931831bf228010', 'transportationReport', NULL, '0', 1, '2019-12-29 00:53:31', 'sysadmin', '2020-02-25 14:55:24', 'sysadmin', '1', 2, 0);
  113. INSERT INTO `common_parameter_service`(`service_id`, `tenant_id`, `service_name`, `service_code`, `service_sort`, `plugin_id`, `parent_service_code`, `resource_id`, `form_flag`, `customization_flag`, `delete_flag`, `update_count`, `create_date`, `create_user_id`, `update_date`, `update_user_id`, `update_flag`, `now_version_no`, `prev_version_no`) VALUES ('report5', NULL, '运输结算统计', 'transportationReport', NULL, 'report', '-1', NULL, '0', NULL, '0', 0, '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', '0', 1, 0);
  114. INSERT INTO `common_resource_menu`(`id`, `resource_id`, `tenant_id`, `resource_name`, `menu_name`, `parent_menu_name`, `plugin_code`, `service_code`, `service_item_code`, `delete_flag`, `update_count`, `create_date`, `create_user_id`, `update_date`, `update_user_id`, `update_flag`, `now_version_no`, `prev_version_no`) VALUES ('report017', 'transportationReport-Edit', '', '运输结算统计修改', 'transportationReport.edit', 'transportationReport/report', 'report', 'transportationReport', NULL, '0', 0, '2021-06-05 10:14:32', '1', '2021-06-15 10:14:37', '1', '0', 1, 0);
  115. INSERT INTO `common_resource_menu`(`id`, `resource_id`, `tenant_id`, `resource_name`, `menu_name`, `parent_menu_name`, `plugin_code`, `service_code`, `service_item_code`, `delete_flag`, `update_count`, `create_date`, `create_user_id`, `update_date`, `update_user_id`, `update_flag`, `now_version_no`, `prev_version_no`) VALUES ('report018', 'transportationReport-Payment', '', '运输结算统计付款', 'transportationReport.payment', 'transportationReport/report', 'report', 'transportationReport', NULL, '0', 0, '2021-06-05 10:14:32', '1', '2021-06-15 10:14:37', '1', '0', 1, 0);
  116. INSERT INTO `common_resource_menu`(`id`, `resource_id`, `tenant_id`, `resource_name`, `menu_name`, `parent_menu_name`, `plugin_code`, `service_code`, `service_item_code`, `delete_flag`, `update_count`, `create_date`, `create_user_id`, `update_date`, `update_user_id`, `update_flag`, `now_version_no`, `prev_version_no`) VALUES ('report019', 'transportationReport-Draw', '', '运输结算统计开发票', 'transportationReport.draw', 'transportationReport/report', 'report', 'transportationReport', NULL, '0', 0, '2021-06-05 10:14:32', '1', '2021-06-15 10:14:37', '1', '0', 1, 0);
  117. INSERT INTO `common_resource_menu`(`id`, `resource_id`, `tenant_id`, `resource_name`, `menu_name`, `parent_menu_name`, `plugin_code`, `service_code`, `service_item_code`, `delete_flag`, `update_count`, `create_date`, `create_user_id`, `update_date`, `update_user_id`, `update_flag`, `now_version_no`, `prev_version_no`) VALUES ('report020', 'transportationReport-View', '', '运输结算统计查看', 'transportationReport.view', 'transportationReport/report', 'report', 'transportationReport', NULL, '0', 0, '2021-06-05 10:14:32', '1', '2021-06-15 10:14:37', '1', '0', 1, 0);
  118. INSERT INTO `notice_business_constant_info`(`id`, `business_type`, `business_type_desc`, `business_type_desc_en`, `business_code`, `receipt_name`, `receipt_name_en`, `resource_ids`, `delete_flag`, `update_count`, `create_date`, `create_user_id`, `update_date`, `update_user_id`, `update_flag`, `now_version_no`, `prev_version_no`) VALUES ('mm5faee5ddf011eb8fec00163e06000', 'REPORT', '统计报表', NULL, 'TRANSPORTATION-SETTLEMENT-REPORT', '运输结算统计', NULL, NULL, '0', 0, '2021-07-06 08:26:21', 'sysadmin', '2021-07-06 08:26:21', 'sysadmin', '0', 1, 0);