diff --git "a/\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/.keep" "b/\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/.keep" new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git "a/\345\210\230\345\277\227\345\274\272/zuoye.md" "b/\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/zuoye.md" similarity index 100% rename from "\345\210\230\345\277\227\345\274\272/zuoye.md" rename to "\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/zuoye.md" diff --git "a/\345\210\230\345\277\227\345\274\272/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204000.png" "b/\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204000.png" similarity index 100% rename from "\345\210\230\345\277\227\345\274\272/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204000.png" rename to "\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204000.png" diff --git "a/\345\210\230\345\277\227\345\274\272/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204513.png" "b/\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204513.png" similarity index 100% rename from "\345\210\230\345\277\227\345\274\272/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204513.png" rename to "\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204513.png" diff --git "a/\345\210\230\345\277\227\345\274\272/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 205502.png" "b/\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 205502.png" similarity index 100% rename from "\345\210\230\345\277\227\345\274\272/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 205502.png" rename to "\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 205502.png" diff --git "a/\345\210\230\345\277\227\345\274\272/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 211723.png" "b/\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 211723.png" similarity index 100% rename from "\345\210\230\345\277\227\345\274\272/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 211723.png" rename to "\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 211723.png" diff --git "a/\345\210\230\345\277\227\345\274\272/0907 snipaste\345\222\214note.js\347\255\211\344\270\213\350\275\275\345\256\211\350\243\205/2023.9.7\346\225\264\347\220\206\347\254\224\350\256\260.md" "b/\345\210\230\345\277\227\345\274\272/0907 snipaste\345\222\214note.js\347\255\211\344\270\213\350\275\275\345\256\211\350\243\205/2023.9.7\346\225\264\347\220\206\347\254\224\350\256\260.md" new file mode 100644 index 0000000000000000000000000000000000000000..dda3975f086a8eb3bb58b7978aa1c94dfff4a9c7 --- /dev/null +++ "b/\345\210\230\345\277\227\345\274\272/0907 snipaste\345\222\214note.js\347\255\211\344\270\213\350\275\275\345\256\211\350\243\205/2023.9.7\346\225\264\347\220\206\347\254\224\350\256\260.md" @@ -0,0 +1,39 @@ +# 2023.9.7整理笔记 + +### 1.下载安装Snipaste截图 + +![image-20240907224248035](C:\Users\86178\AppData\Roaming\Typora\typora-user-images\image-20240907224248035.png) + +下载网址:www.Snipaste.com + + + +### 2.下载安装note.js + +![image-20240907224352905](C:\Users\86178\AppData\Roaming\Typora\typora-user-images\image-20240907224352905.png) + +下载网址:[Node.js — 在任何地方运行 JavaScript (nodejs.org) + +[](https://nodejs.org/zh-cn) + + + +### 3.Picgo设置 + +##### 1.点击插件设置,安装gitee-uploader 1.1.2版本 + +![image-20240907224750849](C:\Users\86178\AppData\Roaming\Typora\typora-user-images\image-20240907224750849.png) + +##### 2.在设置中进行勾选 + +![image-20240907230626317](C:\Users\86178\AppData\Roaming\Typora\typora-user-images\image-20240907230626317.png) + +3.在gitee创建一个新的笔记仓库,并设立私人令牌 + +4.上传gitee的设置 + +![image-20240907232758938](C:\Users\86178\AppData\Roaming\Typora\typora-user-images\image-20240907232758938.png) + +5.提交到gitee仓库 + +![image-20240907233027222](C:\Users\86178\AppData\Roaming\Typora\typora-user-images\image-20240907233027222.png) \ No newline at end of file diff --git "a/\345\210\230\345\277\227\345\274\272/0908 \345\255\246\346\240\241\347\256\241\347\220\206\345\212\237\350\203\275\351\234\200\346\261\202/\345\255\246\346\240\241\347\256\241\347\220\206\347\232\204\345\212\237\350\203\275\351\234\200\346\261\202.md" "b/\345\210\230\345\277\227\345\274\272/0908 \345\255\246\346\240\241\347\256\241\347\220\206\345\212\237\350\203\275\351\234\200\346\261\202/\345\255\246\346\240\241\347\256\241\347\220\206\347\232\204\345\212\237\350\203\275\351\234\200\346\261\202.md" new file mode 100644 index 0000000000000000000000000000000000000000..e2fd5c6823ebfb4a3e1ba5972ab00d0c1ac1a088 --- /dev/null +++ "b/\345\210\230\345\277\227\345\274\272/0908 \345\255\246\346\240\241\347\256\241\347\220\206\345\212\237\350\203\275\351\234\200\346\261\202/\345\255\246\346\240\241\347\256\241\347\220\206\347\232\204\345\212\237\350\203\275\351\234\200\346\261\202.md" @@ -0,0 +1,149 @@ +# 一、学校管理的功能需求 + + + +### 需求分析:先创建学生数据表,再创建类型表和功能表,成员类型表中的不同类型成员对应其功能... + + + +### 1.利用PowerDisgner创建出CDM模型 + +![image-20240908111144671](C:\Users\Administrator\AppData\Roaming\Typora\typora-user-images\image-20240908111144671.png) + + + +### 2.生成LDM模型 + +![image-20240908111326966](C:\Users\Administrator\AppData\Roaming\Typora\typora-user-images\image-20240908111326966.png) + + + +### 3.生成PDM模型 + +![image-20240908111500244](C:\Users\Administrator\AppData\Roaming\Typora\typora-user-images\image-20240908111500244.png) + + + +### 4.生成sql + +```sql +/*==============================================================*/ +/* DBMS name: MySQL 5.0 */ +/* Created on: 2024-09-08 11:03:52 */ +/*==============================================================*/ + + +drop table if exists RBAC_info; + +drop table if exists has; + +drop table if exists info; + +drop table if exists links; + +drop table if exists role_info; + +/*==============================================================*/ +/* Table: RBAC_info */ +/*==============================================================*/ +create table RBAC_info +( + RBAC_id int not null, + RBAC_name varchar(11), + primary key (RBAC_id) +); + +/*==============================================================*/ +/* Table: has */ +/*==============================================================*/ +create table has +( + RBAC_id int not null, + role_id int not null, + primary key (RBAC_id, role_id) +); + +/*==============================================================*/ +/* Table: info */ +/*==============================================================*/ +create table info +( + info_id int not null, + role_id int not null, + name varchar(11), + sex varchar(11), + age numeric(4,0), + address varchar(11), + primary key (info_id) +); + +/*==============================================================*/ +/* Table: links */ +/*==============================================================*/ +create table links +( + RBAC_id int not null, + info_id int not null, + primary key (RBAC_id, info_id) +); + +/*==============================================================*/ +/* Table: role_info */ +/*==============================================================*/ +create table role_info +( + role_id int not null, + role_name varchar(11), + primary key (role_id) +); + +alter table has add constraint FK_has foreign key (RBAC_id) + references RBAC_info (RBAC_id) on delete restrict on update restrict; + +alter table has add constraint FK_has2 foreign key (role_id) + references role_info (role_id) on delete restrict on update restrict; + +alter table info add constraint FK_link foreign key (role_id) + references role_info (role_id) on delete restrict on update restrict; + +alter table links add constraint FK_links foreign key (RBAC_id) + references RBAC_info (RBAC_id) on delete restrict on update restrict; + +alter table links add constraint FK_links2 foreign key (info_id) + references info (info_id) on delete restrict on update restrict; + + +``` + +### 5.对表添加数据 + +```sql +INSERT into role_info (role_id,role_name) VALUES +(1,'学生'), +(2,'教师'), +(3,'辅导员'); + +INSERT INTO rbac_info (RBAC_id,RBAC_name) VALUES +(1,'添加成绩'), +(2,'删除成绩'), +(3,'修改成绩'), +(4,'查看成绩'), +(5,'修改信息'), +(6,'修改密码'); + + +INSERT INTO info (info_id,role_id,name,sex,age,address) VALUES +(1,1,'张三','男',13,'福州'), +(2,2,'李四','女',14,'赣州'), +(3,1,'王五','男',15,'泉州'), +(4,3,'赵六','女',16,'漳州'); +``` + +​ + +### 使用sql语句进行查询 + +```sql +select ro.role,name from role_info on ro.r_id = ac1.r_id join info onac1.a_id = ac.a_id where ro,r_id = 2; +``` +