Skip to content

Commit

Permalink
Merge pull request alldatacenter#690 from LMR-up/master
Browse files Browse the repository at this point in the history
LGTD, thanks a lot, respect!!
  • Loading branch information
alldatafounder authored Nov 8, 2023
2 parents 2dc05ef + e9f082e commit 9709b08
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 0 deletions.
27 changes: 27 additions & 0 deletions bi_quickstart.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#### (BI模块配置流程)

##### 根据官方部署文档,部署项目https://github.com/alldatacenter/alldata/blob/master/install.md

###### 部署可能会遇到的问题:

1. 在修改完配置文件后应该在alldata根目录进行打包,而不是单独模块打包,这样有些模块,无法打包成功

2. 切记认真查阅部署文档

##### 部署成功之后,点击BI模块点击修改操作进入修改界面,alldata-metadata-service模块会报错

![image](https://github.com/LMR-up/alldata/assets/80820139/d7957d60-3d5b-490b-aa48-413c696bb277)




该模块爆的应该是数据库的错误,其实主要是因为该项目提供的数据库只有studio,缺少了foodmart2和robot数据库

1:我们只需要新建这两个数据库并且把数据导入即可以下为数据库连接,https://gitee.com/zrxjava/srt-data/tree/master/db可以自己下载导入,我会把数据库文件放在项目根目录

2:在数据库中新建完这两个数据库之后,主要查看studio数据库中metadata_source表中的db_schema字段注意该字段的数据,端口和用户名,密码是否和foodmart2库和robot库相匹配,并且注意数据库的访问权限

##### 数据库补充完毕,就可以愉快的使用bi功能了
![image](https://github.com/LMR-up/alldata/assets/80820139/a4033dd8-8b7f-4995-adfd-6863565c8388)

![image](https://github.com/LMR-up/alldata/assets/80820139/18b097c8-f957-43b6-bdfb-f902a6eede45)
Binary file added studio/install/sql/foodmart2.zip
Binary file not shown.
86 changes: 86 additions & 0 deletions studio/install/sql/robot.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
/*
Navicat Premium Data Transfer
Source Server : 本地
Source Server Type : MySQL
Source Server Version : 50730
Source Host : localhost:3306
Source Schema : robot
Target Server Type : MySQL
Target Server Version : 50730
File Encoding : 65001
Date: 03/05/2022 12:07:48
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for robot_patient
-- ----------------------------
DROP TABLE IF EXISTS `robot_patient`;
CREATE TABLE `robot_patient` (
`id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键',
`patient_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '患者姓名',
`patient_sex` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '患者性别(1男2女)',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '患者表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of robot_patient
-- ----------------------------
INSERT INTO `robot_patient` VALUES ('0479951f8964175e624b2ca61ee0e835', '侯玉宇', '2');
INSERT INTO `robot_patient` VALUES ('34ddebc05f7c9fb769fcd020028203d6', '庞日成', '1');
INSERT INTO `robot_patient` VALUES ('7b137ca2d563086b9e4fadee385b50b8', '', '2');

-- ----------------------------
-- Table structure for robot_symptom_part
-- ----------------------------
DROP TABLE IF EXISTS `robot_symptom_part`;
CREATE TABLE `robot_symptom_part` (
`id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键',
`part_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部位名称',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '部位表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of robot_symptom_part
-- ----------------------------
INSERT INTO `robot_symptom_part` VALUES ('3244c36870e4a47ef1fc6e2c1acf00a2', '眼耳口鼻');
INSERT INTO `robot_symptom_part` VALUES ('4c4c0e819fc95c09dde308cc04df6256', '双下肢');
INSERT INTO `robot_symptom_part` VALUES ('608dd4772103c7b3a198641cf842a4e1', '双上肢');
INSERT INTO `robot_symptom_part` VALUES ('62207ec3cd713e906c461dfbfddf6504', '肩部');
INSERT INTO `robot_symptom_part` VALUES ('6b866f5e2ee092c0d2d0ffd5d9fea78b', '腰部');
INSERT INTO `robot_symptom_part` VALUES ('88806113c934137edd261d1e8a4f1f72', '颈部');
INSERT INTO `robot_symptom_part` VALUES ('92edaaa5ee8d304d9f01950e7979d2ab', '头部');
INSERT INTO `robot_symptom_part` VALUES ('96f7f70bf165d11a1161e19e2917ad65', '其他');
INSERT INTO `robot_symptom_part` VALUES ('a43438901e6b5f56d8aff49ea0c423d6', '生殖器');
INSERT INTO `robot_symptom_part` VALUES ('aaecbc8d28a302e5b89740e3d4ccf3b8', '臀部');
INSERT INTO `robot_symptom_part` VALUES ('c752554d2a789e07774532201a0876d9', '背部');
INSERT INTO `robot_symptom_part` VALUES ('c826bc719672e94482422eb355bcdee6', '皮肤');
INSERT INTO `robot_symptom_part` VALUES ('d311f223dd97959e447bcc4e63e38c22', '胸部');
INSERT INTO `robot_symptom_part` VALUES ('e7d8dc2171ec4f64b895b82c5d627459', '排泄部');
INSERT INTO `robot_symptom_part` VALUES ('ea4766dfb3950d787b4fae051c525a13', '腹部');

-- ----------------------------
-- Table structure for robot_symptom_type
-- ----------------------------
DROP TABLE IF EXISTS `robot_symptom_type`;
CREATE TABLE `robot_symptom_type` (
`id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键',
`part_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所属部位',
`type_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '症状名称',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '症状表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of robot_symptom_type
-- ----------------------------
INSERT INTO `robot_symptom_type` VALUES ('314292492987dbac45618f0633ad5fba', 'd311f223dd97959e447bcc4e63e38c22', '咳嗽');
INSERT INTO `robot_symptom_type` VALUES ('5e7924f1a27fc08a817dd31820fa3736', '62207ec3cd713e906c461dfbfddf6504', '肩关节活动受限');
INSERT INTO `robot_symptom_type` VALUES ('7e696f88dfec22d719b033608a21b387', '62207ec3cd713e906c461dfbfddf6504', '右肩背有放射痛');
INSERT INTO `robot_symptom_type` VALUES ('fdeee4116cd6c0a16fe15fe1bfc208ef', 'd311f223dd97959e447bcc4e63e38c22', '咳痰');

SET FOREIGN_KEY_CHECKS = 1;

0 comments on commit 9709b08

Please sign in to comment.