# Medical-System **Repository Path**: csu_3/medical-system ## Basic Information - **Project Name**: Medical-System - **Description**: 老人医疗健康档案系统 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-06-25 - **Last Updated**: 2025-11-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Medical-System #### 介绍 {**以下是 Gitee 平台说明,您可以替换此简介** Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} #### 软件架构 软件架构说明 #### 开发说明 使用flyway管理数据库(具体详情可ai了解) 把对数据库结构的操作,写在 /resource/db/migration 需要新创建sql文件,命名遵守'版本号'__'描述'.sql(版本号不要一致,不同人用不同的版本号) 注意,不要对已有的sql进行改动,任何数据表的操作,请创建新的sql文件 获取当前用户id: SecurityUtils.getCurrentUserId() 获取当前用户昵称:SecurityUtils.getCurrentNickName() 手机号:PhoneNumber 身份:Role 线程池的使用 @Async ("taskExecutor") 或者("urgentTaskExecutor") 或者("batchTaskExecutor") 分别是一般任务、紧急任务、非常紧急 对于需要异步处理的方法,请打@Async加其中任意一个 注意,异步方法的返回值必须是void或者CompetableFuture 文件获取,储存,删除模块 api在fileController, 函数在fileserviceimpl 文件获取,统一/api/file/get/{id}的模式 @RequestMapping("/get/{id}") public ResponseEntity get(@PathVariable int id) throws IOException 文件储存 先autowire fileService输入3个参数,返回给你文件的id,此文件id用于储存在数据库内,实际的文件保存与数据库关联不用考虑 @Autowire FileService fileService; public int saveFile(MultipartFile file, int uploaderId, boolean is_private) 例: int id = saveFile(file, 1, false); 文件删除,输入文件id即可删除 @Autowire FileService fileService; public String removeFile(int id) throws IOException 例: removeFile(2); 用户文件删除,用于注销用户时使用,输入为用户id @Autowire FileService fileService; String removeUserFile(int uploaderId) throws IOException; 例: removeUserFile(3); 日志使用:@Actlog(value="",logType="") 放需要记录的信息 如果需要具体的信息,比如某个用户做了什么,请使用以下表达式 {{#变量名}},如果要获取当前的用户的某个信息,使用{{#currentUser?.____}} ____ 填属性名(类是User) 同时支持参数,比如对于url?keys=consultation,使用{{#keys}} 例子: @ActLog(value="用户查询了字典{{#keys}},用户{{#currentUser?.username}}", logType = "普通") #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)[java](src%2Fmain%2Fjava) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)