ソースを参照

初始化代码

攻心小虫 2 日 前
コミット
f65d940fcb
100 ファイル変更9392 行追加0 行削除
  1. 1 0
      .gitignore
  2. 17 0
      .project
  3. 40 0
      healsphere-admin/.classpath
  4. 2 0
      healsphere-admin/.gitignore
  5. 23 0
      healsphere-admin/.project
  6. 89 0
      healsphere-admin/pom.xml
  7. 18 0
      healsphere-admin/src/main/java/com/zdqz/Application.java
  8. 80 0
      healsphere-admin/src/main/java/com/zdqz/web/controller/common/CaptchaController.java
  9. 163 0
      healsphere-admin/src/main/java/com/zdqz/web/controller/common/CommonController.java
  10. 121 0
      healsphere-admin/src/main/java/com/zdqz/web/controller/monitor/CacheController.java
  11. 82 0
      healsphere-admin/src/main/java/com/zdqz/web/controller/monitor/SysLogininforController.java
  12. 69 0
      healsphere-admin/src/main/java/com/zdqz/web/controller/monitor/SysOperlogController.java
  13. 83 0
      healsphere-admin/src/main/java/com/zdqz/web/controller/monitor/SysUserOnlineController.java
  14. 132 0
      healsphere-admin/src/main/java/com/zdqz/web/controller/system/SysDeptController.java
  15. 121 0
      healsphere-admin/src/main/java/com/zdqz/web/controller/system/SysDictDataController.java
  16. 131 0
      healsphere-admin/src/main/java/com/zdqz/web/controller/system/SysDictTypeController.java
  17. 97 0
      healsphere-admin/src/main/java/com/zdqz/web/controller/system/SysLoginController.java
  18. 142 0
      healsphere-admin/src/main/java/com/zdqz/web/controller/system/SysMenuController.java
  19. 97 0
      healsphere-admin/src/main/java/com/zdqz/web/controller/system/SysProfileController.java
  20. 262 0
      healsphere-admin/src/main/java/com/zdqz/web/controller/system/SysRoleController.java
  21. 219 0
      healsphere-admin/src/main/java/com/zdqz/web/controller/system/SysUserController.java
  22. 183 0
      healsphere-admin/src/main/java/com/zdqz/web/controller/tool/TestController.java
  23. 102 0
      healsphere-admin/src/main/java/com/zdqz/web/core/config/SwaggerConfig.java
  24. 1 0
      healsphere-admin/src/main/resources/META-INF/spring-devtools.properties
  25. 54 0
      healsphere-admin/src/main/resources/application-druid.yml
  26. 121 0
      healsphere-admin/src/main/resources/application.yml
  27. 37 0
      healsphere-admin/src/main/resources/i18n/messages.properties
  28. 93 0
      healsphere-admin/src/main/resources/logback.xml
  29. 20 0
      healsphere-admin/src/main/resources/mybatis/mybatis-config.xml
  30. 40 0
      healsphere-buss/.classpath
  31. 2 0
      healsphere-buss/.gitignore
  32. 23 0
      healsphere-buss/.project
  33. 25 0
      healsphere-buss/pom.xml
  34. 104 0
      healsphere-buss/src/main/java/com/zdqz/data/controller/DataDljyController.java
  35. 104 0
      healsphere-buss/src/main/java/com/zdqz/data/controller/DataNyjyController.java
  36. 117 0
      healsphere-buss/src/main/java/com/zdqz/data/domain/DataDljy.java
  37. 117 0
      healsphere-buss/src/main/java/com/zdqz/data/domain/DataNyjy.java
  38. 61 0
      healsphere-buss/src/main/java/com/zdqz/data/mapper/DataDljyMapper.java
  39. 61 0
      healsphere-buss/src/main/java/com/zdqz/data/mapper/DataNyjyMapper.java
  40. 61 0
      healsphere-buss/src/main/java/com/zdqz/data/service/IDataDljyService.java
  41. 61 0
      healsphere-buss/src/main/java/com/zdqz/data/service/IDataNyjyService.java
  42. 96 0
      healsphere-buss/src/main/java/com/zdqz/data/service/impl/DataDljyServiceImpl.java
  43. 96 0
      healsphere-buss/src/main/java/com/zdqz/data/service/impl/DataNyjyServiceImpl.java
  44. 104 0
      healsphere-buss/src/main/java/com/zdqz/sample/controller/SampleDeptController.java
  45. 104 0
      healsphere-buss/src/main/java/com/zdqz/sample/controller/SampleHospitalController.java
  46. 104 0
      healsphere-buss/src/main/java/com/zdqz/sample/controller/SampleInfoController.java
  47. 104 0
      healsphere-buss/src/main/java/com/zdqz/sample/controller/SamplePatientController.java
  48. 104 0
      healsphere-buss/src/main/java/com/zdqz/sample/controller/SampleTypeController.java
  49. 87 0
      healsphere-buss/src/main/java/com/zdqz/sample/domain/SampleDept.java
  50. 132 0
      healsphere-buss/src/main/java/com/zdqz/sample/domain/SampleHospital.java
  51. 147 0
      healsphere-buss/src/main/java/com/zdqz/sample/domain/SampleInfo.java
  52. 1017 0
      healsphere-buss/src/main/java/com/zdqz/sample/domain/SamplePatient.java
  53. 87 0
      healsphere-buss/src/main/java/com/zdqz/sample/domain/SampleType.java
  54. 61 0
      healsphere-buss/src/main/java/com/zdqz/sample/mapper/SampleDeptMapper.java
  55. 61 0
      healsphere-buss/src/main/java/com/zdqz/sample/mapper/SampleHospitalMapper.java
  56. 61 0
      healsphere-buss/src/main/java/com/zdqz/sample/mapper/SampleInfoMapper.java
  57. 61 0
      healsphere-buss/src/main/java/com/zdqz/sample/mapper/SamplePatientMapper.java
  58. 61 0
      healsphere-buss/src/main/java/com/zdqz/sample/mapper/SampleTypeMapper.java
  59. 61 0
      healsphere-buss/src/main/java/com/zdqz/sample/service/ISampleDeptService.java
  60. 61 0
      healsphere-buss/src/main/java/com/zdqz/sample/service/ISampleHospitalService.java
  61. 61 0
      healsphere-buss/src/main/java/com/zdqz/sample/service/ISampleInfoService.java
  62. 61 0
      healsphere-buss/src/main/java/com/zdqz/sample/service/ISamplePatientService.java
  63. 61 0
      healsphere-buss/src/main/java/com/zdqz/sample/service/ISampleTypeService.java
  64. 96 0
      healsphere-buss/src/main/java/com/zdqz/sample/service/impl/SampleDeptServiceImpl.java
  65. 96 0
      healsphere-buss/src/main/java/com/zdqz/sample/service/impl/SampleHospitalServiceImpl.java
  66. 96 0
      healsphere-buss/src/main/java/com/zdqz/sample/service/impl/SampleInfoServiceImpl.java
  67. 96 0
      healsphere-buss/src/main/java/com/zdqz/sample/service/impl/SamplePatientServiceImpl.java
  68. 96 0
      healsphere-buss/src/main/java/com/zdqz/sample/service/impl/SampleTypeServiceImpl.java
  69. 104 0
      healsphere-buss/src/main/java/com/zdqz/system/controller/SysAreaController.java
  70. 104 0
      healsphere-buss/src/main/java/com/zdqz/system/controller/SysCnareaController.java
  71. 142 0
      healsphere-buss/src/main/java/com/zdqz/system/domain/SysArea.java
  72. 203 0
      healsphere-buss/src/main/java/com/zdqz/system/domain/SysCnarea.java
  73. 61 0
      healsphere-buss/src/main/java/com/zdqz/system/mapper/SysAreaMapper.java
  74. 61 0
      healsphere-buss/src/main/java/com/zdqz/system/mapper/SysCnareaMapper.java
  75. 61 0
      healsphere-buss/src/main/java/com/zdqz/system/service/ISysAreaService.java
  76. 61 0
      healsphere-buss/src/main/java/com/zdqz/system/service/ISysCnareaService.java
  77. 93 0
      healsphere-buss/src/main/java/com/zdqz/system/service/impl/SysAreaServiceImpl.java
  78. 93 0
      healsphere-buss/src/main/java/com/zdqz/system/service/impl/SysCnareaServiceImpl.java
  79. 96 0
      healsphere-buss/src/main/resources/mapper/data/DataDljyMapper.xml
  80. 96 0
      healsphere-buss/src/main/resources/mapper/data/DataNyjyMapper.xml
  81. 86 0
      healsphere-buss/src/main/resources/mapper/sample/SampleDeptMapper.xml
  82. 101 0
      healsphere-buss/src/main/resources/mapper/sample/SampleHospitalMapper.xml
  83. 106 0
      healsphere-buss/src/main/resources/mapper/sample/SampleInfoMapper.xml
  84. 396 0
      healsphere-buss/src/main/resources/mapper/sample/SamplePatientMapper.xml
  85. 86 0
      healsphere-buss/src/main/resources/mapper/sample/SampleTypeMapper.xml
  86. 86 0
      healsphere-buss/src/main/resources/mapper/system/SysAreaMapper.xml
  87. 106 0
      healsphere-buss/src/main/resources/mapper/system/SysCnareaMapper.xml
  88. 40 0
      healsphere-common/.classpath
  89. 2 0
      healsphere-common/.gitignore
  90. 23 0
      healsphere-common/.project
  91. 120 0
      healsphere-common/pom.xml
  92. 19 0
      healsphere-common/src/main/java/com/zdqz/common/annotation/Anonymous.java
  93. 33 0
      healsphere-common/src/main/java/com/zdqz/common/annotation/DataScope.java
  94. 28 0
      healsphere-common/src/main/java/com/zdqz/common/annotation/DataSource.java
  95. 197 0
      healsphere-common/src/main/java/com/zdqz/common/annotation/Excel.java
  96. 18 0
      healsphere-common/src/main/java/com/zdqz/common/annotation/Excels.java
  97. 51 0
      healsphere-common/src/main/java/com/zdqz/common/annotation/Log.java
  98. 40 0
      healsphere-common/src/main/java/com/zdqz/common/annotation/RateLimiter.java
  99. 31 0
      healsphere-common/src/main/java/com/zdqz/common/annotation/RepeatSubmit.java
  100. 0 0
      healsphere-common/src/main/java/com/zdqz/common/annotation/Sensitive.java

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+/.settings/

+ 17 - 0
.project

@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>toid</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.m2e.core.maven2Builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.m2e.core.maven2Nature</nature>
+	</natures>
+</projectDescription>

+ 40 - 0
healsphere-admin/.classpath

@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" output="target/classes" path="src/main/java">
+		<attributes>
+			<attribute name="optional" value="true"/>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
+		<attributes>
+			<attribute name="maven.pomderived" value="true"/>
+			<attribute name="optional" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="src" output="target/test-classes" path="src/test/java">
+		<attributes>
+			<attribute name="optional" value="true"/>
+			<attribute name="maven.pomderived" value="true"/>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
+		<attributes>
+			<attribute name="maven.pomderived" value="true"/>
+			<attribute name="test" value="true"/>
+			<attribute name="optional" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
+		<attributes>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
+		<attributes>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

+ 2 - 0
healsphere-admin/.gitignore

@@ -0,0 +1,2 @@
+/target/
+/.settings/

+ 23 - 0
healsphere-admin/.project

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>healsphere-admin</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.m2e.core.maven2Builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.eclipse.m2e.core.maven2Nature</nature>
+	</natures>
+</projectDescription>

+ 89 - 0
healsphere-admin/pom.xml

@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>healsphere</artifactId>
+        <groupId>com.zdqz</groupId>
+        <version>3.8.9</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <packaging>jar</packaging>
+    <artifactId>healsphere-admin</artifactId>
+    <dependencies>
+
+        <!-- spring-boot-devtools -->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-devtools</artifactId>
+            <optional>true</optional> <!-- 表示依赖不会传递 -->
+        </dependency>
+
+        <!-- swagger3-->
+        <dependency>
+            <groupId>io.springfox</groupId>
+            <artifactId>springfox-boot-starter</artifactId>
+        </dependency>
+
+        <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
+        <dependency>
+            <groupId>io.swagger</groupId>
+            <artifactId>swagger-models</artifactId>
+            <version>1.6.2</version>
+        </dependency>
+
+         <!-- Mysql驱动包 -->
+        <dependency>
+            <groupId>mysql</groupId>
+            <artifactId>mysql-connector-java</artifactId>
+        </dependency>
+
+        <!-- 核心模块-->
+        <dependency>
+            <groupId>com.zdqz</groupId>
+            <artifactId>healsphere-framework</artifactId>
+        </dependency>
+
+		<dependency>
+            <groupId>com.zdqz</groupId>
+            <artifactId>healsphere-buss</artifactId>
+        </dependency>
+        <!-- 代码生成-->
+        <dependency>
+            <groupId>com.zdqz</groupId>
+            <artifactId>healsphere-generator</artifactId>
+        </dependency>
+
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+                <version>2.5.15</version>
+                <configuration>
+                    <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
+                </configuration>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>repackage</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>   
+                <groupId>org.apache.maven.plugins</groupId>   
+                <artifactId>maven-war-plugin</artifactId>   
+                <version>3.1.0</version>   
+                <configuration>
+                    <failOnMissingWebXml>false</failOnMissingWebXml>
+                    <warName>${project.artifactId}</warName>
+                </configuration>   
+           </plugin>   
+        </plugins>
+        <finalName>${project.artifactId}</finalName>
+    </build>
+
+</project>

+ 18 - 0
healsphere-admin/src/main/java/com/zdqz/Application.java

@@ -0,0 +1,18 @@
+package com.zdqz;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
+
+/**
+ * 启动程序
+ * 
+ * @author 攻心小虫
+ */
+@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
+public class Application {
+	public static void main(String[] args) {
+		SpringApplication.run(Application.class, args);
+		System.out.println("this service was starting... ");
+	}
+}

+ 80 - 0
healsphere-admin/src/main/java/com/zdqz/web/controller/common/CaptchaController.java

@@ -0,0 +1,80 @@
+package com.zdqz.web.controller.common;
+
+import java.awt.image.BufferedImage;
+import java.io.IOException;
+import java.util.concurrent.TimeUnit;
+
+import javax.annotation.Resource;
+import javax.imageio.ImageIO;
+import javax.servlet.http.HttpServletResponse;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.util.FastByteArrayOutputStream;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.google.code.kaptcha.Producer;
+import com.zdqz.common.config.ZdqzConfig;
+import com.zdqz.common.constant.CacheConstants;
+import com.zdqz.common.constant.Constants;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.core.redis.RedisCache;
+import com.zdqz.common.utils.sign.Base64;
+import com.zdqz.common.utils.uuid.IdUtils;
+
+/**
+ * 验证码操作处理
+ * 
+ * @author 攻心小虫
+ */
+@RestController
+public class CaptchaController {
+	@Resource(name = "captchaProducer")
+	private Producer captchaProducer;
+
+	@Resource(name = "captchaProducerMath")
+	private Producer captchaProducerMath;
+
+	@Autowired
+	private RedisCache redisCache;
+
+	/**
+	 * 生成验证码
+	 */
+	@GetMapping("/captchaImage")
+	public AjaxResult getCode(HttpServletResponse response) throws IOException {
+		AjaxResult ajax = AjaxResult.success();
+		ajax.put("captchaEnabled", true);
+		// 保存验证码信息
+		String uuid = IdUtils.simpleUUID();
+		String verifyKey = CacheConstants.CAPTCHA_CODE_KEY + uuid;
+
+		String capStr = null, code = null;
+		BufferedImage image = null;
+
+		// 生成验证码
+		String captchaType = ZdqzConfig.getCaptchaType();
+		if ("math".equals(captchaType)) {
+			String capText = captchaProducerMath.createText();
+			capStr = capText.substring(0, capText.lastIndexOf("@"));
+			code = capText.substring(capText.lastIndexOf("@") + 1);
+			image = captchaProducerMath.createImage(capStr);
+		} else if ("char".equals(captchaType)) {
+			capStr = code = captchaProducer.createText();
+			image = captchaProducer.createImage(capStr);
+		}
+
+		redisCache.setCacheObject(verifyKey, code, Constants.CAPTCHA_EXPIRATION, TimeUnit.MINUTES);
+		// 转换流信息写出
+		FastByteArrayOutputStream os = new FastByteArrayOutputStream();
+		try {
+			ImageIO.write(image, "jpg", os);
+		} catch (IOException e) {
+			return AjaxResult.error(e.getMessage());
+		}
+
+		ajax.put("uuid", uuid);
+		ajax.put("img", Base64.encode(os.toByteArray()));
+		return ajax;
+	}
+}

+ 163 - 0
healsphere-admin/src/main/java/com/zdqz/web/controller/common/CommonController.java

@@ -0,0 +1,163 @@
+package com.zdqz.web.controller.common;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.MediaType;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.multipart.MultipartFile;
+import com.zdqz.common.config.ZdqzConfig;
+import com.zdqz.common.constant.Constants;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.utils.StringUtils;
+import com.zdqz.common.utils.file.FileUploadUtils;
+import com.zdqz.common.utils.file.FileUtils;
+import com.zdqz.framework.config.ServerConfig;
+
+/**
+ * 通用请求处理
+ * 
+ * @author 攻心小虫
+ */
+@RestController
+@RequestMapping("/common")
+public class CommonController
+{
+    private static final Logger log = LoggerFactory.getLogger(CommonController.class);
+
+    @Autowired
+    private ServerConfig serverConfig;
+
+    private static final String FILE_DELIMETER = ",";
+
+    /**
+     * 通用下载请求
+     * 
+     * @param fileName 文件名称
+     * @param delete 是否删除
+     */
+    @GetMapping("/download")
+    public void fileDownload(String fileName, Boolean delete, HttpServletResponse response, HttpServletRequest request)
+    {
+        try
+        {
+            if (!FileUtils.checkAllowDownload(fileName))
+            {
+                throw new Exception(StringUtils.format("文件名称({})非法,不允许下载。 ", fileName));
+            }
+            String realFileName = System.currentTimeMillis() + fileName.substring(fileName.indexOf("_") + 1);
+            String filePath = ZdqzConfig.getDownloadPath() + fileName;
+
+            response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);
+            FileUtils.setAttachmentResponseHeader(response, realFileName);
+            FileUtils.writeBytes(filePath, response.getOutputStream());
+            if (delete)
+            {
+                FileUtils.deleteFile(filePath);
+            }
+        }
+        catch (Exception e)
+        {
+            log.error("下载文件失败", e);
+        }
+    }
+
+    /**
+     * 通用上传请求(单个)
+     */
+    @PostMapping("/upload")
+    public AjaxResult uploadFile(MultipartFile file) throws Exception
+    {
+        try
+        {
+            // 上传文件路径
+            String filePath = ZdqzConfig.getUploadPath();
+            // 上传并返回新文件名称
+            String fileName = FileUploadUtils.upload(filePath, file);
+            String url = serverConfig.getUrl() + fileName;
+            AjaxResult ajax = AjaxResult.success();
+            ajax.put("url", url);
+            ajax.put("fileName", fileName);
+            ajax.put("newFileName", FileUtils.getName(fileName));
+            ajax.put("originalFilename", file.getOriginalFilename());
+            return ajax;
+        }
+        catch (Exception e)
+        {
+            return AjaxResult.error(e.getMessage());
+        }
+    }
+
+    /**
+     * 通用上传请求(多个)
+     */
+    @PostMapping("/uploads")
+    public AjaxResult uploadFiles(List<MultipartFile> files) throws Exception
+    {
+        try
+        {
+            // 上传文件路径
+            String filePath = ZdqzConfig.getUploadPath();
+            List<String> urls = new ArrayList<String>();
+            List<String> fileNames = new ArrayList<String>();
+            List<String> newFileNames = new ArrayList<String>();
+            List<String> originalFilenames = new ArrayList<String>();
+            for (MultipartFile file : files)
+            {
+                // 上传并返回新文件名称
+                String fileName = FileUploadUtils.upload(filePath, file);
+                String url = serverConfig.getUrl() + fileName;
+                urls.add(url);
+                fileNames.add(fileName);
+                newFileNames.add(FileUtils.getName(fileName));
+                originalFilenames.add(file.getOriginalFilename());
+            }
+            AjaxResult ajax = AjaxResult.success();
+            ajax.put("urls", StringUtils.join(urls, FILE_DELIMETER));
+            ajax.put("fileNames", StringUtils.join(fileNames, FILE_DELIMETER));
+            ajax.put("newFileNames", StringUtils.join(newFileNames, FILE_DELIMETER));
+            ajax.put("originalFilenames", StringUtils.join(originalFilenames, FILE_DELIMETER));
+            return ajax;
+        }
+        catch (Exception e)
+        {
+            return AjaxResult.error(e.getMessage());
+        }
+    }
+
+    /**
+     * 本地资源通用下载
+     */
+    @GetMapping("/download/resource")
+    public void resourceDownload(String resource, HttpServletRequest request, HttpServletResponse response)
+            throws Exception
+    {
+        try
+        {
+            if (!FileUtils.checkAllowDownload(resource))
+            {
+                throw new Exception(StringUtils.format("资源文件({})非法,不允许下载。 ", resource));
+            }
+            // 本地资源路径
+            String localPath = ZdqzConfig.getProfile();
+            // 数据库资源地址
+            String downloadPath = localPath + StringUtils.substringAfter(resource, Constants.RESOURCE_PREFIX);
+            // 下载名称
+            String downloadName = StringUtils.substringAfterLast(downloadPath, "/");
+            response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);
+            FileUtils.setAttachmentResponseHeader(response, downloadName);
+            FileUtils.writeBytes(downloadPath, response.getOutputStream());
+        }
+        catch (Exception e)
+        {
+            log.error("下载文件失败", e);
+        }
+    }
+}

+ 121 - 0
healsphere-admin/src/main/java/com/zdqz/web/controller/monitor/CacheController.java

@@ -0,0 +1,121 @@
+package com.zdqz.web.controller.monitor;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Properties;
+import java.util.Set;
+import java.util.TreeSet;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.data.redis.core.RedisCallback;
+import org.springframework.data.redis.core.RedisTemplate;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.zdqz.common.constant.CacheConstants;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.utils.StringUtils;
+import com.zdqz.system.domain.SysCache;
+
+/**
+ * 缓存监控
+ * 
+ * @author 攻心小虫
+ */
+@RestController
+@RequestMapping("/monitor/cache")
+public class CacheController
+{
+    @Autowired
+    private RedisTemplate<String, String> redisTemplate;
+
+    private final static List<SysCache> caches = new ArrayList<SysCache>();
+    {
+        caches.add(new SysCache(CacheConstants.LOGIN_TOKEN_KEY, "用户信息"));
+        caches.add(new SysCache(CacheConstants.SYS_CONFIG_KEY, "配置信息"));
+        caches.add(new SysCache(CacheConstants.SYS_DICT_KEY, "数据字典"));
+        caches.add(new SysCache(CacheConstants.CAPTCHA_CODE_KEY, "验证码"));
+        caches.add(new SysCache(CacheConstants.REPEAT_SUBMIT_KEY, "防重提交"));
+        caches.add(new SysCache(CacheConstants.RATE_LIMIT_KEY, "限流处理"));
+        caches.add(new SysCache(CacheConstants.PWD_ERR_CNT_KEY, "密码错误次数"));
+    }
+
+    @PreAuthorize("@ss.hasPermi('monitor:cache:list')")
+    @GetMapping()
+    public AjaxResult getInfo() throws Exception
+    {
+        Properties info = (Properties) redisTemplate.execute((RedisCallback<Object>) connection -> connection.info());
+        Properties commandStats = (Properties) redisTemplate.execute((RedisCallback<Object>) connection -> connection.info("commandstats"));
+        Object dbSize = redisTemplate.execute((RedisCallback<Object>) connection -> connection.dbSize());
+
+        Map<String, Object> result = new HashMap<>(3);
+        result.put("info", info);
+        result.put("dbSize", dbSize);
+
+        List<Map<String, String>> pieList = new ArrayList<>();
+        commandStats.stringPropertyNames().forEach(key -> {
+            Map<String, String> data = new HashMap<>(2);
+            String property = commandStats.getProperty(key);
+            data.put("name", StringUtils.removeStart(key, "cmdstat_"));
+            data.put("value", StringUtils.substringBetween(property, "calls=", ",usec"));
+            pieList.add(data);
+        });
+        result.put("commandStats", pieList);
+        return AjaxResult.success(result);
+    }
+
+    @PreAuthorize("@ss.hasPermi('monitor:cache:list')")
+    @GetMapping("/getNames")
+    public AjaxResult cache()
+    {
+        return AjaxResult.success(caches);
+    }
+
+    @PreAuthorize("@ss.hasPermi('monitor:cache:list')")
+    @GetMapping("/getKeys/{cacheName}")
+    public AjaxResult getCacheKeys(@PathVariable String cacheName)
+    {
+        Set<String> cacheKeys = redisTemplate.keys(cacheName + "*");
+        return AjaxResult.success(new TreeSet<>(cacheKeys));
+    }
+
+    @PreAuthorize("@ss.hasPermi('monitor:cache:list')")
+    @GetMapping("/getValue/{cacheName}/{cacheKey}")
+    public AjaxResult getCacheValue(@PathVariable String cacheName, @PathVariable String cacheKey)
+    {
+        String cacheValue = redisTemplate.opsForValue().get(cacheKey);
+        SysCache sysCache = new SysCache(cacheName, cacheKey, cacheValue);
+        return AjaxResult.success(sysCache);
+    }
+
+    @PreAuthorize("@ss.hasPermi('monitor:cache:list')")
+    @DeleteMapping("/clearCacheName/{cacheName}")
+    public AjaxResult clearCacheName(@PathVariable String cacheName)
+    {
+        Collection<String> cacheKeys = redisTemplate.keys(cacheName + "*");
+        redisTemplate.delete(cacheKeys);
+        return AjaxResult.success();
+    }
+
+    @PreAuthorize("@ss.hasPermi('monitor:cache:list')")
+    @DeleteMapping("/clearCacheKey/{cacheKey}")
+    public AjaxResult clearCacheKey(@PathVariable String cacheKey)
+    {
+        redisTemplate.delete(cacheKey);
+        return AjaxResult.success();
+    }
+
+    @PreAuthorize("@ss.hasPermi('monitor:cache:list')")
+    @DeleteMapping("/clearCacheAll")
+    public AjaxResult clearCacheAll()
+    {
+        Collection<String> cacheKeys = redisTemplate.keys("*");
+        redisTemplate.delete(cacheKeys);
+        return AjaxResult.success();
+    }
+}

+ 82 - 0
healsphere-admin/src/main/java/com/zdqz/web/controller/monitor/SysLogininforController.java

@@ -0,0 +1,82 @@
+package com.zdqz.web.controller.monitor;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.zdqz.common.annotation.Log;
+import com.zdqz.common.core.controller.BaseController;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.core.page.TableDataInfo;
+import com.zdqz.common.enums.BusinessType;
+import com.zdqz.common.utils.poi.ExcelUtil;
+import com.zdqz.framework.web.service.SysPasswordService;
+import com.zdqz.system.domain.SysLogininfor;
+import com.zdqz.system.service.ISysLogininforService;
+
+/**
+ * 系统访问记录
+ * 
+ * @author 攻心小虫
+ */
+@RestController
+@RequestMapping("/monitor/logininfor")
+public class SysLogininforController extends BaseController
+{
+    @Autowired
+    private ISysLogininforService logininforService;
+
+    @Autowired
+    private SysPasswordService passwordService;
+
+    @PreAuthorize("@ss.hasPermi('monitor:logininfor:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(SysLogininfor logininfor)
+    {
+        startPage();
+        List<SysLogininfor> list = logininforService.selectLogininforList(logininfor);
+        return getDataTable(list);
+    }
+
+    @Log(title = "登录日志", businessType = BusinessType.EXPORT)
+    @PreAuthorize("@ss.hasPermi('monitor:logininfor:export')")
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, SysLogininfor logininfor)
+    {
+        List<SysLogininfor> list = logininforService.selectLogininforList(logininfor);
+        ExcelUtil<SysLogininfor> util = new ExcelUtil<SysLogininfor>(SysLogininfor.class);
+        util.exportExcel(response, list, "登录日志");
+    }
+
+    @PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')")
+    @Log(title = "登录日志", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{infoIds}")
+    public AjaxResult remove(@PathVariable Long[] infoIds)
+    {
+        return toAjax(logininforService.deleteLogininforByIds(infoIds));
+    }
+
+    @PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')")
+    @Log(title = "登录日志", businessType = BusinessType.CLEAN)
+    @DeleteMapping("/clean")
+    public AjaxResult clean()
+    {
+        logininforService.cleanLogininfor();
+        return success();
+    }
+
+    @PreAuthorize("@ss.hasPermi('monitor:logininfor:unlock')")
+    @Log(title = "账户解锁", businessType = BusinessType.OTHER)
+    @GetMapping("/unlock/{userName}")
+    public AjaxResult unlock(@PathVariable("userName") String userName)
+    {
+        passwordService.clearLoginRecordCache(userName);
+        return success();
+    }
+}

+ 69 - 0
healsphere-admin/src/main/java/com/zdqz/web/controller/monitor/SysOperlogController.java

@@ -0,0 +1,69 @@
+package com.zdqz.web.controller.monitor;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.zdqz.common.annotation.Log;
+import com.zdqz.common.core.controller.BaseController;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.core.page.TableDataInfo;
+import com.zdqz.common.enums.BusinessType;
+import com.zdqz.common.utils.poi.ExcelUtil;
+import com.zdqz.system.domain.SysOperLog;
+import com.zdqz.system.service.ISysOperLogService;
+
+/**
+ * 操作日志记录
+ * 
+ * @author 攻心小虫
+ */
+@RestController
+@RequestMapping("/monitor/operlog")
+public class SysOperlogController extends BaseController
+{
+    @Autowired
+    private ISysOperLogService operLogService;
+
+    @PreAuthorize("@ss.hasPermi('monitor:operlog:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(SysOperLog operLog)
+    {
+        startPage();
+        List<SysOperLog> list = operLogService.selectOperLogList(operLog);
+        return getDataTable(list);
+    }
+
+    @Log(title = "操作日志", businessType = BusinessType.EXPORT)
+    @PreAuthorize("@ss.hasPermi('monitor:operlog:export')")
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, SysOperLog operLog)
+    {
+        List<SysOperLog> list = operLogService.selectOperLogList(operLog);
+        ExcelUtil<SysOperLog> util = new ExcelUtil<SysOperLog>(SysOperLog.class);
+        util.exportExcel(response, list, "操作日志");
+    }
+
+    @Log(title = "操作日志", businessType = BusinessType.DELETE)
+    @PreAuthorize("@ss.hasPermi('monitor:operlog:remove')")
+    @DeleteMapping("/{operIds}")
+    public AjaxResult remove(@PathVariable Long[] operIds)
+    {
+        return toAjax(operLogService.deleteOperLogByIds(operIds));
+    }
+
+    @Log(title = "操作日志", businessType = BusinessType.CLEAN)
+    @PreAuthorize("@ss.hasPermi('monitor:operlog:remove')")
+    @DeleteMapping("/clean")
+    public AjaxResult clean()
+    {
+        operLogService.cleanOperLog();
+        return success();
+    }
+}

+ 83 - 0
healsphere-admin/src/main/java/com/zdqz/web/controller/monitor/SysUserOnlineController.java

@@ -0,0 +1,83 @@
+package com.zdqz.web.controller.monitor;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.zdqz.common.annotation.Log;
+import com.zdqz.common.constant.CacheConstants;
+import com.zdqz.common.core.controller.BaseController;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.core.domain.model.LoginUser;
+import com.zdqz.common.core.page.TableDataInfo;
+import com.zdqz.common.core.redis.RedisCache;
+import com.zdqz.common.enums.BusinessType;
+import com.zdqz.common.utils.StringUtils;
+import com.zdqz.system.domain.SysUserOnline;
+import com.zdqz.system.service.ISysUserOnlineService;
+
+/**
+ * 在线用户监控
+ * 
+ * @author 攻心小虫
+ */
+@RestController
+@RequestMapping("/monitor/online")
+public class SysUserOnlineController extends BaseController
+{
+    @Autowired
+    private ISysUserOnlineService userOnlineService;
+
+    @Autowired
+    private RedisCache redisCache;
+
+    @PreAuthorize("@ss.hasPermi('monitor:online:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(String ipaddr, String userName)
+    {
+        Collection<String> keys = redisCache.keys(CacheConstants.LOGIN_TOKEN_KEY + "*");
+        List<SysUserOnline> userOnlineList = new ArrayList<SysUserOnline>();
+        for (String key : keys)
+        {
+            LoginUser user = redisCache.getCacheObject(key);
+            if (StringUtils.isNotEmpty(ipaddr) && StringUtils.isNotEmpty(userName))
+            {
+                userOnlineList.add(userOnlineService.selectOnlineByInfo(ipaddr, userName, user));
+            }
+            else if (StringUtils.isNotEmpty(ipaddr))
+            {
+                userOnlineList.add(userOnlineService.selectOnlineByIpaddr(ipaddr, user));
+            }
+            else if (StringUtils.isNotEmpty(userName) && StringUtils.isNotNull(user.getUser()))
+            {
+                userOnlineList.add(userOnlineService.selectOnlineByUserName(userName, user));
+            }
+            else
+            {
+                userOnlineList.add(userOnlineService.loginUserToUserOnline(user));
+            }
+        }
+        Collections.reverse(userOnlineList);
+        userOnlineList.removeAll(Collections.singleton(null));
+        return getDataTable(userOnlineList);
+    }
+
+    /**
+     * 强退用户
+     */
+    @PreAuthorize("@ss.hasPermi('monitor:online:forceLogout')")
+    @Log(title = "在线用户", businessType = BusinessType.FORCE)
+    @DeleteMapping("/{tokenId}")
+    public AjaxResult forceLogout(@PathVariable String tokenId)
+    {
+        redisCache.deleteObject(CacheConstants.LOGIN_TOKEN_KEY + tokenId);
+        return success();
+    }
+}

+ 132 - 0
healsphere-admin/src/main/java/com/zdqz/web/controller/system/SysDeptController.java

@@ -0,0 +1,132 @@
+package com.zdqz.web.controller.system;
+
+import java.util.List;
+import org.apache.commons.lang3.ArrayUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.zdqz.common.annotation.Log;
+import com.zdqz.common.constant.UserConstants;
+import com.zdqz.common.core.controller.BaseController;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.core.domain.entity.SysDept;
+import com.zdqz.common.enums.BusinessType;
+import com.zdqz.common.utils.StringUtils;
+import com.zdqz.system.service.ISysDeptService;
+
+/**
+ * 部门信息
+ * 
+ * @author 攻心小虫
+ */
+@RestController
+@RequestMapping("/system/dept")
+public class SysDeptController extends BaseController
+{
+    @Autowired
+    private ISysDeptService deptService;
+
+    /**
+     * 获取部门列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:dept:list')")
+    @GetMapping("/list")
+    public AjaxResult list(SysDept dept)
+    {
+        List<SysDept> depts = deptService.selectDeptList(dept);
+        return success(depts);
+    }
+
+    /**
+     * 查询部门列表(排除节点)
+     */
+    @PreAuthorize("@ss.hasPermi('system:dept:list')")
+    @GetMapping("/list/exclude/{deptId}")
+    public AjaxResult excludeChild(@PathVariable(value = "deptId", required = false) Long deptId)
+    {
+        List<SysDept> depts = deptService.selectDeptList(new SysDept());
+        depts.removeIf(d -> d.getDeptId().intValue() == deptId || ArrayUtils.contains(StringUtils.split(d.getAncestors(), ","), deptId + ""));
+        return success(depts);
+    }
+
+    /**
+     * 根据部门编号获取详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:dept:query')")
+    @GetMapping(value = "/{deptId}")
+    public AjaxResult getInfo(@PathVariable Long deptId)
+    {
+        deptService.checkDeptDataScope(deptId);
+        return success(deptService.selectDeptById(deptId));
+    }
+
+    /**
+     * 新增部门
+     */
+    @PreAuthorize("@ss.hasPermi('system:dept:add')")
+    @Log(title = "部门管理", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@Validated @RequestBody SysDept dept)
+    {
+        if (!deptService.checkDeptNameUnique(dept))
+        {
+            return error("新增部门'" + dept.getDeptName() + "'失败,部门名称已存在");
+        }
+        dept.setCreateBy(getUsername());
+        return toAjax(deptService.insertDept(dept));
+    }
+
+    /**
+     * 修改部门
+     */
+    @PreAuthorize("@ss.hasPermi('system:dept:edit')")
+    @Log(title = "部门管理", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@Validated @RequestBody SysDept dept)
+    {
+        Long deptId = dept.getDeptId();
+        deptService.checkDeptDataScope(deptId);
+        if (!deptService.checkDeptNameUnique(dept))
+        {
+            return error("修改部门'" + dept.getDeptName() + "'失败,部门名称已存在");
+        }
+        else if (dept.getParentId().equals(deptId))
+        {
+            return error("修改部门'" + dept.getDeptName() + "'失败,上级部门不能是自己");
+        }
+        else if (StringUtils.equals(UserConstants.DEPT_DISABLE, dept.getStatus()) && deptService.selectNormalChildrenDeptById(deptId) > 0)
+        {
+            return error("该部门包含未停用的子部门!");
+        }
+        dept.setUpdateBy(getUsername());
+        return toAjax(deptService.updateDept(dept));
+    }
+
+    /**
+     * 删除部门
+     */
+    @PreAuthorize("@ss.hasPermi('system:dept:remove')")
+    @Log(title = "部门管理", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{deptId}")
+    public AjaxResult remove(@PathVariable Long deptId)
+    {
+        if (deptService.hasChildByDeptId(deptId))
+        {
+            return warn("存在下级部门,不允许删除");
+        }
+        if (deptService.checkDeptExistUser(deptId))
+        {
+            return warn("部门存在用户,不允许删除");
+        }
+        deptService.checkDeptDataScope(deptId);
+        return toAjax(deptService.deleteDeptById(deptId));
+    }
+}

+ 121 - 0
healsphere-admin/src/main/java/com/zdqz/web/controller/system/SysDictDataController.java

@@ -0,0 +1,121 @@
+package com.zdqz.web.controller.system;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.zdqz.common.annotation.Log;
+import com.zdqz.common.core.controller.BaseController;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.core.domain.entity.SysDictData;
+import com.zdqz.common.core.page.TableDataInfo;
+import com.zdqz.common.enums.BusinessType;
+import com.zdqz.common.utils.StringUtils;
+import com.zdqz.common.utils.poi.ExcelUtil;
+import com.zdqz.system.service.ISysDictDataService;
+import com.zdqz.system.service.ISysDictTypeService;
+
+/**
+ * 数据字典信息
+ * 
+ * @author 攻心小虫
+ */
+@RestController
+@RequestMapping("/system/dict/data")
+public class SysDictDataController extends BaseController
+{
+    @Autowired
+    private ISysDictDataService dictDataService;
+
+    @Autowired
+    private ISysDictTypeService dictTypeService;
+
+    @PreAuthorize("@ss.hasPermi('system:dict:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(SysDictData dictData)
+    {
+        startPage();
+        List<SysDictData> list = dictDataService.selectDictDataList(dictData);
+        return getDataTable(list);
+    }
+
+    @Log(title = "字典数据", businessType = BusinessType.EXPORT)
+    @PreAuthorize("@ss.hasPermi('system:dict:export')")
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, SysDictData dictData)
+    {
+        List<SysDictData> list = dictDataService.selectDictDataList(dictData);
+        ExcelUtil<SysDictData> util = new ExcelUtil<SysDictData>(SysDictData.class);
+        util.exportExcel(response, list, "字典数据");
+    }
+
+    /**
+     * 查询字典数据详细
+     */
+    @PreAuthorize("@ss.hasPermi('system:dict:query')")
+    @GetMapping(value = "/{dictCode}")
+    public AjaxResult getInfo(@PathVariable Long dictCode)
+    {
+        return success(dictDataService.selectDictDataById(dictCode));
+    }
+
+    /**
+     * 根据字典类型查询字典数据信息
+     */
+    @GetMapping(value = "/type/{dictType}")
+    public AjaxResult dictType(@PathVariable String dictType)
+    {
+        List<SysDictData> data = dictTypeService.selectDictDataByType(dictType);
+        if (StringUtils.isNull(data))
+        {
+            data = new ArrayList<SysDictData>();
+        }
+        return success(data);
+    }
+
+    /**
+     * 新增字典类型
+     */
+    @PreAuthorize("@ss.hasPermi('system:dict:add')")
+    @Log(title = "字典数据", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@Validated @RequestBody SysDictData dict)
+    {
+        dict.setCreateBy(getUsername());
+        return toAjax(dictDataService.insertDictData(dict));
+    }
+
+    /**
+     * 修改保存字典类型
+     */
+    @PreAuthorize("@ss.hasPermi('system:dict:edit')")
+    @Log(title = "字典数据", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@Validated @RequestBody SysDictData dict)
+    {
+        dict.setUpdateBy(getUsername());
+        return toAjax(dictDataService.updateDictData(dict));
+    }
+
+    /**
+     * 删除字典类型
+     */
+    @PreAuthorize("@ss.hasPermi('system:dict:remove')")
+    @Log(title = "字典类型", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{dictCodes}")
+    public AjaxResult remove(@PathVariable Long[] dictCodes)
+    {
+        dictDataService.deleteDictDataByIds(dictCodes);
+        return success();
+    }
+}

+ 131 - 0
healsphere-admin/src/main/java/com/zdqz/web/controller/system/SysDictTypeController.java

@@ -0,0 +1,131 @@
+package com.zdqz.web.controller.system;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.zdqz.common.annotation.Log;
+import com.zdqz.common.core.controller.BaseController;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.core.domain.entity.SysDictType;
+import com.zdqz.common.core.page.TableDataInfo;
+import com.zdqz.common.enums.BusinessType;
+import com.zdqz.common.utils.poi.ExcelUtil;
+import com.zdqz.system.service.ISysDictTypeService;
+
+/**
+ * 数据字典信息
+ * 
+ * @author 攻心小虫
+ */
+@RestController
+@RequestMapping("/system/dict/type")
+public class SysDictTypeController extends BaseController
+{
+    @Autowired
+    private ISysDictTypeService dictTypeService;
+
+    @PreAuthorize("@ss.hasPermi('system:dict:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(SysDictType dictType)
+    {
+        startPage();
+        List<SysDictType> list = dictTypeService.selectDictTypeList(dictType);
+        return getDataTable(list);
+    }
+
+    @Log(title = "字典类型", businessType = BusinessType.EXPORT)
+    @PreAuthorize("@ss.hasPermi('system:dict:export')")
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, SysDictType dictType)
+    {
+        List<SysDictType> list = dictTypeService.selectDictTypeList(dictType);
+        ExcelUtil<SysDictType> util = new ExcelUtil<SysDictType>(SysDictType.class);
+        util.exportExcel(response, list, "字典类型");
+    }
+
+    /**
+     * 查询字典类型详细
+     */
+    @PreAuthorize("@ss.hasPermi('system:dict:query')")
+    @GetMapping(value = "/{dictId}")
+    public AjaxResult getInfo(@PathVariable Long dictId)
+    {
+        return success(dictTypeService.selectDictTypeById(dictId));
+    }
+
+    /**
+     * 新增字典类型
+     */
+    @PreAuthorize("@ss.hasPermi('system:dict:add')")
+    @Log(title = "字典类型", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@Validated @RequestBody SysDictType dict)
+    {
+        if (!dictTypeService.checkDictTypeUnique(dict))
+        {
+            return error("新增字典'" + dict.getDictName() + "'失败,字典类型已存在");
+        }
+        dict.setCreateBy(getUsername());
+        return toAjax(dictTypeService.insertDictType(dict));
+    }
+
+    /**
+     * 修改字典类型
+     */
+    @PreAuthorize("@ss.hasPermi('system:dict:edit')")
+    @Log(title = "字典类型", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@Validated @RequestBody SysDictType dict)
+    {
+        if (!dictTypeService.checkDictTypeUnique(dict))
+        {
+            return error("修改字典'" + dict.getDictName() + "'失败,字典类型已存在");
+        }
+        dict.setUpdateBy(getUsername());
+        return toAjax(dictTypeService.updateDictType(dict));
+    }
+
+    /**
+     * 删除字典类型
+     */
+    @PreAuthorize("@ss.hasPermi('system:dict:remove')")
+    @Log(title = "字典类型", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{dictIds}")
+    public AjaxResult remove(@PathVariable Long[] dictIds)
+    {
+        dictTypeService.deleteDictTypeByIds(dictIds);
+        return success();
+    }
+
+    /**
+     * 刷新字典缓存
+     */
+    @PreAuthorize("@ss.hasPermi('system:dict:remove')")
+    @Log(title = "字典类型", businessType = BusinessType.CLEAN)
+    @DeleteMapping("/refreshCache")
+    public AjaxResult refreshCache()
+    {
+        dictTypeService.resetDictCache();
+        return success();
+    }
+
+    /**
+     * 获取字典选择框列表
+     */
+    @GetMapping("/optionselect")
+    public AjaxResult optionselect()
+    {
+        List<SysDictType> dictTypes = dictTypeService.selectDictTypeAll();
+        return success(dictTypes);
+    }
+}

+ 97 - 0
healsphere-admin/src/main/java/com/zdqz/web/controller/system/SysLoginController.java

@@ -0,0 +1,97 @@
+package com.zdqz.web.controller.system;
+
+import java.util.List;
+import java.util.Set;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RestController;
+import com.zdqz.common.constant.Constants;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.core.domain.entity.SysMenu;
+import com.zdqz.common.core.domain.entity.SysUser;
+import com.zdqz.common.core.domain.model.LoginBody;
+import com.zdqz.common.core.domain.model.LoginUser;
+import com.zdqz.common.utils.SecurityUtils;
+import com.zdqz.framework.web.service.SysLoginService;
+import com.zdqz.framework.web.service.SysPermissionService;
+import com.zdqz.framework.web.service.TokenService;
+import com.zdqz.system.service.ISysMenuService;
+
+/**
+ * 登录验证
+ * 
+ * @author 攻心小虫
+ */
+@RestController
+public class SysLoginController
+{
+    @Autowired
+    private SysLoginService loginService;
+
+    @Autowired
+    private ISysMenuService menuService;
+
+    @Autowired
+    private SysPermissionService permissionService;
+
+    @Autowired
+    private TokenService tokenService;
+
+    /**
+     * 登录方法
+     * 
+     * @param loginBody 登录信息
+     * @return 结果
+     */
+    @PostMapping("/login")
+    public AjaxResult login(@RequestBody LoginBody loginBody)
+    {
+        AjaxResult ajax = AjaxResult.success();
+        // 生成令牌
+        String token = loginService.login(loginBody.getUsername(), loginBody.getPassword(), loginBody.getCode(),
+                loginBody.getUuid());
+        ajax.put(Constants.TOKEN, token);
+        return ajax;
+    }
+
+    /**
+     * 获取用户信息
+     * 
+     * @return 用户信息
+     */
+    @GetMapping("getInfo")
+    public AjaxResult getInfo()
+    {
+        LoginUser loginUser = SecurityUtils.getLoginUser();
+        SysUser user = loginUser.getUser();
+        // 角色集合
+        Set<String> roles = permissionService.getRolePermission(user);
+        // 权限集合
+        Set<String> permissions = permissionService.getMenuPermission(user);
+        if (!loginUser.getPermissions().equals(permissions))
+        {
+            loginUser.setPermissions(permissions);
+            tokenService.refreshToken(loginUser);
+        }
+        AjaxResult ajax = AjaxResult.success();
+        ajax.put("user", user);
+        ajax.put("roles", roles);
+        ajax.put("permissions", permissions);
+        return ajax;
+    }
+
+    /**
+     * 获取路由信息
+     * 
+     * @return 路由信息
+     */
+    @GetMapping("getRouters")
+    public AjaxResult getRouters()
+    {
+        Long userId = SecurityUtils.getUserId();
+        List<SysMenu> menus = menuService.selectMenuTreeByUserId(userId);
+        return AjaxResult.success(menuService.buildMenus(menus));
+    }
+}

+ 142 - 0
healsphere-admin/src/main/java/com/zdqz/web/controller/system/SysMenuController.java

@@ -0,0 +1,142 @@
+package com.zdqz.web.controller.system;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.zdqz.common.annotation.Log;
+import com.zdqz.common.constant.UserConstants;
+import com.zdqz.common.core.controller.BaseController;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.core.domain.entity.SysMenu;
+import com.zdqz.common.enums.BusinessType;
+import com.zdqz.common.utils.StringUtils;
+import com.zdqz.system.service.ISysMenuService;
+
+/**
+ * 菜单信息
+ * 
+ * @author 攻心小虫
+ */
+@RestController
+@RequestMapping("/system/menu")
+public class SysMenuController extends BaseController
+{
+    @Autowired
+    private ISysMenuService menuService;
+
+    /**
+     * 获取菜单列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:menu:list')")
+    @GetMapping("/list")
+    public AjaxResult list(SysMenu menu)
+    {
+        List<SysMenu> menus = menuService.selectMenuList(menu, getUserId());
+        return success(menus);
+    }
+
+    /**
+     * 根据菜单编号获取详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:menu:query')")
+    @GetMapping(value = "/{menuId}")
+    public AjaxResult getInfo(@PathVariable Long menuId)
+    {
+        return success(menuService.selectMenuById(menuId));
+    }
+
+    /**
+     * 获取菜单下拉树列表
+     */
+    @GetMapping("/treeselect")
+    public AjaxResult treeselect(SysMenu menu)
+    {
+        List<SysMenu> menus = menuService.selectMenuList(menu, getUserId());
+        return success(menuService.buildMenuTreeSelect(menus));
+    }
+
+    /**
+     * 加载对应角色菜单列表树
+     */
+    @GetMapping(value = "/roleMenuTreeselect/{roleId}")
+    public AjaxResult roleMenuTreeselect(@PathVariable("roleId") Long roleId)
+    {
+        List<SysMenu> menus = menuService.selectMenuList(getUserId());
+        AjaxResult ajax = AjaxResult.success();
+        ajax.put("checkedKeys", menuService.selectMenuListByRoleId(roleId));
+        ajax.put("menus", menuService.buildMenuTreeSelect(menus));
+        return ajax;
+    }
+
+    /**
+     * 新增菜单
+     */
+    @PreAuthorize("@ss.hasPermi('system:menu:add')")
+    @Log(title = "菜单管理", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@Validated @RequestBody SysMenu menu)
+    {
+        if (!menuService.checkMenuNameUnique(menu))
+        {
+            return error("新增菜单'" + menu.getMenuName() + "'失败,菜单名称已存在");
+        }
+        else if (UserConstants.YES_FRAME.equals(menu.getIsFrame()) && !StringUtils.ishttp(menu.getPath()))
+        {
+            return error("新增菜单'" + menu.getMenuName() + "'失败,地址必须以http(s)://开头");
+        }
+        menu.setCreateBy(getUsername());
+        return toAjax(menuService.insertMenu(menu));
+    }
+
+    /**
+     * 修改菜单
+     */
+    @PreAuthorize("@ss.hasPermi('system:menu:edit')")
+    @Log(title = "菜单管理", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@Validated @RequestBody SysMenu menu)
+    {
+        if (!menuService.checkMenuNameUnique(menu))
+        {
+            return error("修改菜单'" + menu.getMenuName() + "'失败,菜单名称已存在");
+        }
+        else if (UserConstants.YES_FRAME.equals(menu.getIsFrame()) && !StringUtils.ishttp(menu.getPath()))
+        {
+            return error("修改菜单'" + menu.getMenuName() + "'失败,地址必须以http(s)://开头");
+        }
+        else if (menu.getMenuId().equals(menu.getParentId()))
+        {
+            return error("修改菜单'" + menu.getMenuName() + "'失败,上级菜单不能选择自己");
+        }
+        menu.setUpdateBy(getUsername());
+        return toAjax(menuService.updateMenu(menu));
+    }
+
+    /**
+     * 删除菜单
+     */
+    @PreAuthorize("@ss.hasPermi('system:menu:remove')")
+    @Log(title = "菜单管理", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{menuId}")
+    public AjaxResult remove(@PathVariable("menuId") Long menuId)
+    {
+        if (menuService.hasChildByMenuId(menuId))
+        {
+            return warn("存在子菜单,不允许删除");
+        }
+        if (menuService.checkMenuExistRole(menuId))
+        {
+            return warn("菜单已分配,不允许删除");
+        }
+        return toAjax(menuService.deleteMenuById(menuId));
+    }
+}

+ 97 - 0
healsphere-admin/src/main/java/com/zdqz/web/controller/system/SysProfileController.java

@@ -0,0 +1,97 @@
+package com.zdqz.web.controller.system;
+
+import java.util.Map;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.zdqz.common.annotation.Log;
+import com.zdqz.common.core.controller.BaseController;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.core.domain.entity.SysUser;
+import com.zdqz.common.core.domain.model.LoginUser;
+import com.zdqz.common.enums.BusinessType;
+import com.zdqz.common.utils.SecurityUtils;
+import com.zdqz.common.utils.StringUtils;
+import com.zdqz.framework.web.service.TokenService;
+import com.zdqz.system.service.ISysUserService;
+
+/**
+ * 个人信息 业务处理
+ * 
+ * @author 攻心小虫
+ */
+@RestController
+@RequestMapping("/system/user/profile")
+public class SysProfileController extends BaseController {
+	@Autowired
+	private ISysUserService userService;
+
+	@Autowired
+	private TokenService tokenService;
+
+	/**
+	 * 个人信息
+	 */
+	@GetMapping
+	public AjaxResult profile() {
+		LoginUser loginUser = getLoginUser();
+		SysUser user = loginUser.getUser();
+		AjaxResult ajax = AjaxResult.success(user);
+		ajax.put("roleGroup", userService.selectUserRoleGroup(loginUser.getUsername()));
+		return ajax;
+	}
+
+	/**
+	 * 修改用户
+	 */
+	@Log(title = "个人信息", businessType = BusinessType.UPDATE)
+	@PutMapping
+	public AjaxResult updateProfile(@RequestBody SysUser user) {
+		LoginUser loginUser = getLoginUser();
+		SysUser currentUser = loginUser.getUser();
+		currentUser.setNickName(user.getNickName());
+		currentUser.setPhonenumber(user.getPhonenumber());
+		if (StringUtils.isNotEmpty(user.getPhonenumber()) && !userService.checkPhoneUnique(currentUser)) {
+			return error("修改用户'" + loginUser.getUsername() + "'失败,手机号码已存在");
+		}
+		if (userService.updateUserProfile(currentUser) > 0) {
+			// 更新缓存用户信息
+			tokenService.setLoginUser(loginUser);
+			return success();
+		}
+		return error("修改个人信息异常,请联系管理员");
+	}
+
+	/**
+	 * 重置密码
+	 */
+	@Log(title = "个人信息", businessType = BusinessType.UPDATE)
+	@PutMapping("/updatePwd")
+	public AjaxResult updatePwd(@RequestBody Map<String, String> params) {
+		String oldPassword = params.get("oldPassword");
+		String newPassword = params.get("newPassword");
+		LoginUser loginUser = getLoginUser();
+		String userName = loginUser.getUsername();
+		String password = loginUser.getPassword();
+		if (!SecurityUtils.matchesPassword(oldPassword, password)) {
+			return error("修改密码失败,旧密码错误");
+		}
+		if (SecurityUtils.matchesPassword(newPassword, password)) {
+			return error("新密码不能与旧密码相同");
+		}
+		newPassword = SecurityUtils.encryptPassword(newPassword);
+		if (userService.resetUserPwd(userName, newPassword) > 0) {
+			// 更新缓存用户密码
+			loginUser.getUser().setPassword(newPassword);
+			tokenService.setLoginUser(loginUser);
+			return success();
+		}
+		return error("修改密码异常,请联系管理员");
+	}
+
+}

+ 262 - 0
healsphere-admin/src/main/java/com/zdqz/web/controller/system/SysRoleController.java

@@ -0,0 +1,262 @@
+package com.zdqz.web.controller.system;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.zdqz.common.annotation.Log;
+import com.zdqz.common.core.controller.BaseController;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.core.domain.entity.SysDept;
+import com.zdqz.common.core.domain.entity.SysRole;
+import com.zdqz.common.core.domain.entity.SysUser;
+import com.zdqz.common.core.domain.model.LoginUser;
+import com.zdqz.common.core.page.TableDataInfo;
+import com.zdqz.common.enums.BusinessType;
+import com.zdqz.common.utils.StringUtils;
+import com.zdqz.common.utils.poi.ExcelUtil;
+import com.zdqz.framework.web.service.SysPermissionService;
+import com.zdqz.framework.web.service.TokenService;
+import com.zdqz.system.domain.SysUserRole;
+import com.zdqz.system.service.ISysDeptService;
+import com.zdqz.system.service.ISysRoleService;
+import com.zdqz.system.service.ISysUserService;
+
+/**
+ * 角色信息
+ * 
+ * @author 攻心小虫
+ */
+@RestController
+@RequestMapping("/system/role")
+public class SysRoleController extends BaseController
+{
+    @Autowired
+    private ISysRoleService roleService;
+
+    @Autowired
+    private TokenService tokenService;
+
+    @Autowired
+    private SysPermissionService permissionService;
+
+    @Autowired
+    private ISysUserService userService;
+
+    @Autowired
+    private ISysDeptService deptService;
+
+    @PreAuthorize("@ss.hasPermi('system:role:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(SysRole role)
+    {
+        startPage();
+        List<SysRole> list = roleService.selectRoleList(role);
+        return getDataTable(list);
+    }
+
+    @Log(title = "角色管理", businessType = BusinessType.EXPORT)
+    @PreAuthorize("@ss.hasPermi('system:role:export')")
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, SysRole role)
+    {
+        List<SysRole> list = roleService.selectRoleList(role);
+        ExcelUtil<SysRole> util = new ExcelUtil<SysRole>(SysRole.class);
+        util.exportExcel(response, list, "角色数据");
+    }
+
+    /**
+     * 根据角色编号获取详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:role:query')")
+    @GetMapping(value = "/{roleId}")
+    public AjaxResult getInfo(@PathVariable Long roleId)
+    {
+        roleService.checkRoleDataScope(roleId);
+        return success(roleService.selectRoleById(roleId));
+    }
+
+    /**
+     * 新增角色
+     */
+    @PreAuthorize("@ss.hasPermi('system:role:add')")
+    @Log(title = "角色管理", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@Validated @RequestBody SysRole role)
+    {
+        if (!roleService.checkRoleNameUnique(role))
+        {
+            return error("新增角色'" + role.getRoleName() + "'失败,角色名称已存在");
+        }
+        else if (!roleService.checkRoleKeyUnique(role))
+        {
+            return error("新增角色'" + role.getRoleName() + "'失败,角色权限已存在");
+        }
+        role.setCreateBy(getUsername());
+        return toAjax(roleService.insertRole(role));
+
+    }
+
+    /**
+     * 修改保存角色
+     */
+    @PreAuthorize("@ss.hasPermi('system:role:edit')")
+    @Log(title = "角色管理", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@Validated @RequestBody SysRole role)
+    {
+        roleService.checkRoleAllowed(role);
+        roleService.checkRoleDataScope(role.getRoleId());
+        if (!roleService.checkRoleNameUnique(role))
+        {
+            return error("修改角色'" + role.getRoleName() + "'失败,角色名称已存在");
+        }
+        else if (!roleService.checkRoleKeyUnique(role))
+        {
+            return error("修改角色'" + role.getRoleName() + "'失败,角色权限已存在");
+        }
+        role.setUpdateBy(getUsername());
+        
+        if (roleService.updateRole(role) > 0)
+        {
+            // 更新缓存用户权限
+            LoginUser loginUser = getLoginUser();
+            if (StringUtils.isNotNull(loginUser.getUser()) && !loginUser.getUser().isAdmin())
+            {
+                loginUser.setUser(userService.selectUserByUserName(loginUser.getUser().getUserName()));
+                loginUser.setPermissions(permissionService.getMenuPermission(loginUser.getUser()));
+                tokenService.setLoginUser(loginUser);
+            }
+            return success();
+        }
+        return error("修改角色'" + role.getRoleName() + "'失败,请联系管理员");
+    }
+
+    /**
+     * 修改保存数据权限
+     */
+    @PreAuthorize("@ss.hasPermi('system:role:edit')")
+    @Log(title = "角色管理", businessType = BusinessType.UPDATE)
+    @PutMapping("/dataScope")
+    public AjaxResult dataScope(@RequestBody SysRole role)
+    {
+        roleService.checkRoleAllowed(role);
+        roleService.checkRoleDataScope(role.getRoleId());
+        return toAjax(roleService.authDataScope(role));
+    }
+
+    /**
+     * 状态修改
+     */
+    @PreAuthorize("@ss.hasPermi('system:role:edit')")
+    @Log(title = "角色管理", businessType = BusinessType.UPDATE)
+    @PutMapping("/changeStatus")
+    public AjaxResult changeStatus(@RequestBody SysRole role)
+    {
+        roleService.checkRoleAllowed(role);
+        roleService.checkRoleDataScope(role.getRoleId());
+        role.setUpdateBy(getUsername());
+        return toAjax(roleService.updateRoleStatus(role));
+    }
+
+    /**
+     * 删除角色
+     */
+    @PreAuthorize("@ss.hasPermi('system:role:remove')")
+    @Log(title = "角色管理", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{roleIds}")
+    public AjaxResult remove(@PathVariable Long[] roleIds)
+    {
+        return toAjax(roleService.deleteRoleByIds(roleIds));
+    }
+
+    /**
+     * 获取角色选择框列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:role:query')")
+    @GetMapping("/optionselect")
+    public AjaxResult optionselect()
+    {
+        return success(roleService.selectRoleAll());
+    }
+
+    /**
+     * 查询已分配用户角色列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:role:list')")
+    @GetMapping("/authUser/allocatedList")
+    public TableDataInfo allocatedList(SysUser user)
+    {
+        startPage();
+        List<SysUser> list = userService.selectAllocatedList(user);
+        return getDataTable(list);
+    }
+
+    /**
+     * 查询未分配用户角色列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:role:list')")
+    @GetMapping("/authUser/unallocatedList")
+    public TableDataInfo unallocatedList(SysUser user)
+    {
+        startPage();
+        List<SysUser> list = userService.selectUnallocatedList(user);
+        return getDataTable(list);
+    }
+
+    /**
+     * 取消授权用户
+     */
+    @PreAuthorize("@ss.hasPermi('system:role:edit')")
+    @Log(title = "角色管理", businessType = BusinessType.GRANT)
+    @PutMapping("/authUser/cancel")
+    public AjaxResult cancelAuthUser(@RequestBody SysUserRole userRole)
+    {
+        return toAjax(roleService.deleteAuthUser(userRole));
+    }
+
+    /**
+     * 批量取消授权用户
+     */
+    @PreAuthorize("@ss.hasPermi('system:role:edit')")
+    @Log(title = "角色管理", businessType = BusinessType.GRANT)
+    @PutMapping("/authUser/cancelAll")
+    public AjaxResult cancelAuthUserAll(Long roleId, Long[] userIds)
+    {
+        return toAjax(roleService.deleteAuthUsers(roleId, userIds));
+    }
+
+    /**
+     * 批量选择用户授权
+     */
+    @PreAuthorize("@ss.hasPermi('system:role:edit')")
+    @Log(title = "角色管理", businessType = BusinessType.GRANT)
+    @PutMapping("/authUser/selectAll")
+    public AjaxResult selectAuthUserAll(Long roleId, Long[] userIds)
+    {
+        roleService.checkRoleDataScope(roleId);
+        return toAjax(roleService.insertAuthUsers(roleId, userIds));
+    }
+
+    /**
+     * 获取对应角色部门树列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:role:query')")
+    @GetMapping(value = "/deptTree/{roleId}")
+    public AjaxResult deptTree(@PathVariable("roleId") Long roleId)
+    {
+        AjaxResult ajax = AjaxResult.success();
+        ajax.put("checkedKeys", deptService.selectDeptListByRoleId(roleId));
+        ajax.put("depts", deptService.selectDeptTreeList(new SysDept()));
+        return ajax;
+    }
+}

+ 219 - 0
healsphere-admin/src/main/java/com/zdqz/web/controller/system/SysUserController.java

@@ -0,0 +1,219 @@
+package com.zdqz.web.controller.system;
+
+import java.util.List;
+import java.util.stream.Collectors;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.commons.lang3.ArrayUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.multipart.MultipartFile;
+
+import com.zdqz.common.annotation.Log;
+import com.zdqz.common.core.controller.BaseController;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.core.domain.entity.SysDept;
+import com.zdqz.common.core.domain.entity.SysRole;
+import com.zdqz.common.core.domain.entity.SysUser;
+import com.zdqz.common.core.page.TableDataInfo;
+import com.zdqz.common.enums.BusinessType;
+import com.zdqz.common.utils.SecurityUtils;
+import com.zdqz.common.utils.StringUtils;
+import com.zdqz.common.utils.poi.ExcelUtil;
+import com.zdqz.system.service.ISysDeptService;
+import com.zdqz.system.service.ISysRoleService;
+import com.zdqz.system.service.ISysUserService;
+
+/**
+ * 用户信息
+ * 
+ * @author 攻心小虫
+ */
+@RestController
+@RequestMapping("/system/user")
+public class SysUserController extends BaseController {
+	@Autowired
+	private ISysUserService userService;
+
+	@Autowired
+	private ISysRoleService roleService;
+
+	@Autowired
+	private ISysDeptService deptService;
+
+	/**
+	 * 获取用户列表
+	 */
+	@PreAuthorize("@ss.hasPermi('system:user:list')")
+	@GetMapping("/list")
+	public TableDataInfo list(SysUser user) {
+		startPage();
+		List<SysUser> list = userService.selectUserList(user);
+		return getDataTable(list);
+	}
+
+	@Log(title = "用户管理", businessType = BusinessType.EXPORT)
+	@PreAuthorize("@ss.hasPermi('system:user:export')")
+	@PostMapping("/export")
+	public void export(HttpServletResponse response, SysUser user) {
+		List<SysUser> list = userService.selectUserList(user);
+		ExcelUtil<SysUser> util = new ExcelUtil<SysUser>(SysUser.class);
+		util.exportExcel(response, list, "用户数据");
+	}
+
+	@Log(title = "用户管理", businessType = BusinessType.IMPORT)
+	@PreAuthorize("@ss.hasPermi('system:user:import')")
+	@PostMapping("/importData")
+	public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception {
+		ExcelUtil<SysUser> util = new ExcelUtil<SysUser>(SysUser.class);
+		List<SysUser> userList = util.importExcel(file.getInputStream());
+		String operName = getUsername();
+		String message = userService.importUser(userList, updateSupport, operName);
+		return success(message);
+	}
+
+	@PostMapping("/importTemplate")
+	public void importTemplate(HttpServletResponse response) {
+		ExcelUtil<SysUser> util = new ExcelUtil<SysUser>(SysUser.class);
+		util.importTemplateExcel(response, "用户数据");
+	}
+
+	/**
+	 * 根据用户编号获取详细信息
+	 */
+	@PreAuthorize("@ss.hasPermi('system:user:query')")
+	@GetMapping(value = { "/", "/{userId}" })
+	public AjaxResult getInfo(@PathVariable(value = "userId", required = false) Long userId) {
+		AjaxResult ajax = AjaxResult.success();
+		if (StringUtils.isNotNull(userId)) {
+			userService.checkUserDataScope(userId);
+			SysUser sysUser = userService.selectUserById(userId);
+			ajax.put(AjaxResult.DATA_TAG, sysUser);
+			ajax.put("roleIds", sysUser.getRoles().stream().map(SysRole::getRoleId).collect(Collectors.toList()));
+		}
+		List<SysRole> roles = roleService.selectRoleAll();
+		ajax.put("roles", SysUser.isAdmin(userId) ? roles : roles.stream().filter(r -> !r.isAdmin()).collect(Collectors.toList()));
+		return ajax;
+	}
+
+	/**
+	 * 新增用户
+	 */
+	@PreAuthorize("@ss.hasPermi('system:user:add')")
+	@Log(title = "用户管理", businessType = BusinessType.INSERT)
+	@PostMapping
+	public AjaxResult add(@Validated @RequestBody SysUser user) {
+		deptService.checkDeptDataScope(user.getDeptId());
+		roleService.checkRoleDataScope(user.getRoleIds());
+		if (StringUtils.isNotEmpty(user.getPhonenumber()) && !userService.checkPhoneUnique(user)) {
+			return error("新增用户'" + user.getUserName() + "'失败,手机号码已存在");
+		}
+		user.setCreateBy(getUsername());
+		user.setPassword(SecurityUtils.encryptPassword(user.getPassword()));
+		return toAjax(userService.insertUser(user));
+	}
+
+	/**
+	 * 修改用户
+	 */
+	@PreAuthorize("@ss.hasPermi('system:user:edit')")
+	@Log(title = "用户管理", businessType = BusinessType.UPDATE)
+	@PutMapping
+	public AjaxResult edit(@Validated @RequestBody SysUser user) {
+		userService.checkUserAllowed(user);
+		userService.checkUserDataScope(user.getUserId());
+		deptService.checkDeptDataScope(user.getDeptId());
+		roleService.checkRoleDataScope(user.getRoleIds());
+		if (StringUtils.isNotEmpty(user.getPhonenumber()) && !userService.checkPhoneUnique(user)) {
+			return error("修改用户'" + user.getUserName() + "'失败,手机号码已存在");
+		}
+		user.setUpdateBy(getUsername());
+		return toAjax(userService.updateUser(user));
+	}
+
+	/**
+	 * 删除用户
+	 */
+	@PreAuthorize("@ss.hasPermi('system:user:remove')")
+	@Log(title = "用户管理", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{userIds}")
+	public AjaxResult remove(@PathVariable Long[] userIds) {
+		if (ArrayUtils.contains(userIds, getUserId())) {
+			return error("当前用户不能删除");
+		}
+		return toAjax(userService.deleteUserByIds(userIds));
+	}
+
+	/**
+	 * 重置密码
+	 */
+	@PreAuthorize("@ss.hasPermi('system:user:resetPwd')")
+	@Log(title = "用户管理", businessType = BusinessType.UPDATE)
+	@PutMapping("/resetPwd")
+	public AjaxResult resetPwd(@RequestBody SysUser user) {
+		userService.checkUserAllowed(user);
+		userService.checkUserDataScope(user.getUserId());
+		user.setPassword(SecurityUtils.encryptPassword(user.getPassword()));
+		user.setUpdateBy(getUsername());
+		return toAjax(userService.resetPwd(user));
+	}
+
+	/**
+	 * 状态修改
+	 */
+	@PreAuthorize("@ss.hasPermi('system:user:edit')")
+	@Log(title = "用户管理", businessType = BusinessType.UPDATE)
+	@PutMapping("/changeStatus")
+	public AjaxResult changeStatus(@RequestBody SysUser user) {
+		userService.checkUserAllowed(user);
+		userService.checkUserDataScope(user.getUserId());
+		user.setUpdateBy(getUsername());
+		return toAjax(userService.updateUserStatus(user));
+	}
+
+	/**
+	 * 根据用户编号获取授权角色
+	 */
+	@PreAuthorize("@ss.hasPermi('system:user:query')")
+	@GetMapping("/authRole/{userId}")
+	public AjaxResult authRole(@PathVariable("userId") Long userId) {
+		AjaxResult ajax = AjaxResult.success();
+		SysUser user = userService.selectUserById(userId);
+		List<SysRole> roles = roleService.selectRolesByUserId(userId);
+		ajax.put("user", user);
+		ajax.put("roles", SysUser.isAdmin(userId) ? roles : roles.stream().filter(r -> !r.isAdmin()).collect(Collectors.toList()));
+		return ajax;
+	}
+
+	/**
+	 * 用户授权角色
+	 */
+	@PreAuthorize("@ss.hasPermi('system:user:edit')")
+	@Log(title = "用户管理", businessType = BusinessType.GRANT)
+	@PutMapping("/authRole")
+	public AjaxResult insertAuthRole(Long userId, Long[] roleIds) {
+		userService.checkUserDataScope(userId);
+		roleService.checkRoleDataScope(roleIds);
+		userService.insertUserAuth(userId, roleIds);
+		return success();
+	}
+
+	/**
+	 * 获取部门树列表
+	 */
+	@PreAuthorize("@ss.hasPermi('system:user:list')")
+	@GetMapping("/deptTree")
+	public AjaxResult deptTree(SysDept dept) {
+		return success(deptService.selectDeptTreeList(dept));
+	}
+}

+ 183 - 0
healsphere-admin/src/main/java/com/zdqz/web/controller/tool/TestController.java

@@ -0,0 +1,183 @@
+package com.zdqz.web.controller.tool;
+
+import java.util.ArrayList;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.zdqz.common.core.controller.BaseController;
+import com.zdqz.common.core.domain.R;
+import com.zdqz.common.utils.StringUtils;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiImplicitParams;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import io.swagger.annotations.ApiOperation;
+
+/**
+ * swagger 用户测试方法
+ * 
+ * @author 攻心小虫
+ */
+@Api("用户信息管理")
+@RestController
+@RequestMapping("/test/user")
+public class TestController extends BaseController
+{
+    private final static Map<Integer, UserEntity> users = new LinkedHashMap<Integer, UserEntity>();
+    {
+        users.put(1, new UserEntity(1, "admin", "admin123", "15888888888"));
+        users.put(2, new UserEntity(2, "ry", "admin123", "15666666666"));
+    }
+
+    @ApiOperation("获取用户列表")
+    @GetMapping("/list")
+    public R<List<UserEntity>> userList()
+    {
+        List<UserEntity> userList = new ArrayList<UserEntity>(users.values());
+        return R.ok(userList);
+    }
+
+    @ApiOperation("获取用户详细")
+    @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class)
+    @GetMapping("/{userId}")
+    public R<UserEntity> getUser(@PathVariable Integer userId)
+    {
+        if (!users.isEmpty() && users.containsKey(userId))
+        {
+            return R.ok(users.get(userId));
+        }
+        else
+        {
+            return R.fail("用户不存在");
+        }
+    }
+
+    @ApiOperation("新增用户")
+    @ApiImplicitParams({
+        @ApiImplicitParam(name = "userId", value = "用户id", dataType = "Integer", dataTypeClass = Integer.class),
+        @ApiImplicitParam(name = "username", value = "用户名称", dataType = "String", dataTypeClass = String.class),
+        @ApiImplicitParam(name = "password", value = "用户密码", dataType = "String", dataTypeClass = String.class),
+        @ApiImplicitParam(name = "mobile", value = "用户手机", dataType = "String", dataTypeClass = String.class)
+    })
+    @PostMapping("/save")
+    public R<String> save(UserEntity user)
+    {
+        if (StringUtils.isNull(user) || StringUtils.isNull(user.getUserId()))
+        {
+            return R.fail("用户ID不能为空");
+        }
+        users.put(user.getUserId(), user);
+        return R.ok();
+    }
+
+    @ApiOperation("更新用户")
+    @PutMapping("/update")
+    public R<String> update(@RequestBody UserEntity user)
+    {
+        if (StringUtils.isNull(user) || StringUtils.isNull(user.getUserId()))
+        {
+            return R.fail("用户ID不能为空");
+        }
+        if (users.isEmpty() || !users.containsKey(user.getUserId()))
+        {
+            return R.fail("用户不存在");
+        }
+        users.remove(user.getUserId());
+        users.put(user.getUserId(), user);
+        return R.ok();
+    }
+
+    @ApiOperation("删除用户信息")
+    @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class)
+    @DeleteMapping("/{userId}")
+    public R<String> delete(@PathVariable Integer userId)
+    {
+        if (!users.isEmpty() && users.containsKey(userId))
+        {
+            users.remove(userId);
+            return R.ok();
+        }
+        else
+        {
+            return R.fail("用户不存在");
+        }
+    }
+}
+
+@ApiModel(value = "UserEntity", description = "用户实体")
+class UserEntity
+{
+    @ApiModelProperty("用户ID")
+    private Integer userId;
+
+    @ApiModelProperty("用户名称")
+    private String username;
+
+    @ApiModelProperty("用户密码")
+    private String password;
+
+    @ApiModelProperty("用户手机")
+    private String mobile;
+
+    public UserEntity()
+    {
+
+    }
+
+    public UserEntity(Integer userId, String username, String password, String mobile)
+    {
+        this.userId = userId;
+        this.username = username;
+        this.password = password;
+        this.mobile = mobile;
+    }
+
+    public Integer getUserId()
+    {
+        return userId;
+    }
+
+    public void setUserId(Integer userId)
+    {
+        this.userId = userId;
+    }
+
+    public String getUsername()
+    {
+        return username;
+    }
+
+    public void setUsername(String username)
+    {
+        this.username = username;
+    }
+
+    public String getPassword()
+    {
+        return password;
+    }
+
+    public void setPassword(String password)
+    {
+        this.password = password;
+    }
+
+    public String getMobile()
+    {
+        return mobile;
+    }
+
+    public void setMobile(String mobile)
+    {
+        this.mobile = mobile;
+    }
+}

+ 102 - 0
healsphere-admin/src/main/java/com/zdqz/web/core/config/SwaggerConfig.java

@@ -0,0 +1,102 @@
+package com.zdqz.web.core.config;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+import io.swagger.annotations.ApiOperation;
+import io.swagger.models.auth.In;
+import springfox.documentation.builders.ApiInfoBuilder;
+import springfox.documentation.builders.PathSelectors;
+import springfox.documentation.builders.RequestHandlerSelectors;
+import springfox.documentation.service.ApiInfo;
+import springfox.documentation.service.ApiKey;
+import springfox.documentation.service.AuthorizationScope;
+import springfox.documentation.service.SecurityReference;
+import springfox.documentation.service.SecurityScheme;
+import springfox.documentation.spi.DocumentationType;
+import springfox.documentation.spi.service.contexts.SecurityContext;
+import springfox.documentation.spring.web.plugins.Docket;
+
+/**
+ * Swagger2的接口配置
+ * 
+ * @author 攻心小虫
+ */
+@Configuration
+public class SwaggerConfig {
+	/** 是否开启swagger */
+	@Value("${swagger.enabled}")
+	private boolean enabled;
+
+	/** 设置请求的统一前缀 */
+	@Value("${swagger.pathMapping}")
+	private String pathMapping;
+
+	/**
+	 * 创建API
+	 */
+	@Bean
+	public Docket createRestApi() {
+		return new Docket(DocumentationType.OAS_30)
+				// 是否启用Swagger
+				.enable(enabled)
+				// 用来创建该API的基本信息,展示在文档的页面中(自定义展示的信息)
+				.apiInfo(apiInfo())
+				// 设置哪些接口暴露给Swagger展示
+				.select()
+				// 扫描所有有注解的api,用这种方式更灵活
+				.apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))
+				// 扫描指定包中的swagger注解
+				// .apis(RequestHandlerSelectors.basePackage("com.zdqz.project.tool.swagger"))
+				// 扫描所有 .apis(RequestHandlerSelectors.any())
+				.paths(PathSelectors.any()).build()
+				/* 设置安全模式,swagger可以设置访问token */
+				.securitySchemes(securitySchemes()).securityContexts(securityContexts()).pathMapping(pathMapping);
+	}
+
+	/**
+	 * 安全模式,这里指定token通过Authorization头请求头传递
+	 */
+	private List<SecurityScheme> securitySchemes() {
+		List<SecurityScheme> apiKeyList = new ArrayList<SecurityScheme>();
+		apiKeyList.add(new ApiKey("Authorization", "Authorization", In.HEADER.toValue()));
+		return apiKeyList;
+	}
+
+	/**
+	 * 安全上下文
+	 */
+	private List<SecurityContext> securityContexts() {
+		List<SecurityContext> securityContexts = new ArrayList<>();
+		securityContexts.add(SecurityContext.builder().securityReferences(defaultAuth()).operationSelector(o -> o.requestMappingPattern().matches("/.*")).build());
+		return securityContexts;
+	}
+
+	/**
+	 * 默认的安全上引用
+	 */
+	private List<SecurityReference> defaultAuth() {
+		AuthorizationScope authorizationScope = new AuthorizationScope("global", "accessEverything");
+		AuthorizationScope[] authorizationScopes = new AuthorizationScope[1];
+		authorizationScopes[0] = authorizationScope;
+		List<SecurityReference> securityReferences = new ArrayList<>();
+		securityReferences.add(new SecurityReference("Authorization", authorizationScopes));
+		return securityReferences;
+	}
+
+	/**
+	 * 添加摘要信息
+	 */
+	private ApiInfo apiInfo() {
+		// 用ApiInfoBuilder进行定制
+		return new ApiInfoBuilder()
+				// 设置标题
+				.title("标题:若依管理系统_接口文档")
+				// 描述
+				.description("描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...").build();
+	}
+}

+ 1 - 0
healsphere-admin/src/main/resources/META-INF/spring-devtools.properties

@@ -0,0 +1 @@
+restart.include.json=/com.alibaba.fastjson2.*.jar

+ 54 - 0
healsphere-admin/src/main/resources/application-druid.yml

@@ -0,0 +1,54 @@
+# 数据源配置
+spring:
+    datasource:
+        type: com.alibaba.druid.pool.DruidDataSource
+        driverClassName: com.mysql.cj.jdbc.Driver
+        druid:
+            # 主库数据源
+            master:
+                url: jdbc:mysql://173.18.12.194:3306/healsphere?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+                username: root
+                password: dsYun8!@#
+            # 初始连接数
+            initialSize: 5
+            # 最小连接池数量
+            minIdle: 10
+            # 最大连接池数量
+            maxActive: 20
+            # 配置获取连接等待超时的时间
+            maxWait: 60000
+            # 配置连接超时时间
+            connectTimeout: 30000
+            # 配置网络超时时间
+            socketTimeout: 60000
+            # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
+            timeBetweenEvictionRunsMillis: 60000
+            # 配置一个连接在池中最小生存的时间,单位是毫秒
+            minEvictableIdleTimeMillis: 300000
+            # 配置一个连接在池中最大生存的时间,单位是毫秒
+            maxEvictableIdleTimeMillis: 900000
+            # 配置检测连接是否有效
+            validationQuery: SELECT 1 FROM DUAL
+            testWhileIdle: true
+            testOnBorrow: false
+            testOnReturn: false
+            webStatFilter: 
+                enabled: true
+            statViewServlet:
+                enabled: false
+                # 设置白名单,不填则允许所有访问
+                allow:
+                url-pattern: /druid/*
+                # 控制台管理用户名和密码
+                login-username: ruoyi
+                login-password: 123456
+            filter:
+                stat:
+                    enabled: true
+                    # 慢SQL记录
+                    log-slow-sql: true
+                    slow-sql-millis: 1000
+                    merge-sql: true
+                wall:
+                    config:
+                        multi-statement-allow: true

+ 121 - 0
healsphere-admin/src/main/resources/application.yml

@@ -0,0 +1,121 @@
+# 项目相关配置
+zdqz:
+  # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
+  profile: /datadisk/healsphere/uploadPath
+  # 验证码类型 math 数字计算 char 字符验证
+  captchaType: math
+  initPassword: 123456
+
+# 开发环境配置
+server:
+  # 服务器的HTTP端口,默认为8080
+  port: 8081
+  servlet:
+    # 应用的访问路径
+    context-path: /
+  tomcat:
+    # tomcat的URI编码
+    uri-encoding: UTF-8
+    # 连接数满后的排队数,默认为100
+    accept-count: 1000
+    threads:
+      # tomcat最大线程数,默认为200
+      max: 800
+      # Tomcat启动初始化的线程数,默认值10
+      min-spare: 100
+
+# 日志配置
+logging:
+  level:
+    com.zdqz: debug
+    org.springframework: warn
+
+# 用户配置
+user:
+  password:
+    # 密码最大错误次数
+    maxRetryCount: 5
+    # 密码锁定时间(默认10分钟)
+    lockTime: 10
+
+# Spring配置
+spring:
+  # 资源信息
+  messages:
+    # 国际化资源文件路径
+    basename: i18n/messages
+  profiles:
+    active: druid
+  # 文件上传
+  servlet:
+    multipart:
+      # 单个文件大小
+      max-file-size: 10MB
+      # 设置总上传的文件大小
+      max-request-size: 20MB
+  # 服务模块
+  devtools:
+    restart:
+      # 热部署开关
+      enabled: true
+  # redis 配置
+  redis:
+    # 地址
+    host: 173.18.12.194
+    # 端口,默认为6379
+    port: 6379
+    # 数据库索引
+    database: 4
+    # 密码
+    password: 
+    # 连接超时时间
+    timeout: 10s
+    lettuce:
+      pool:
+        # 连接池中的最小空闲连接
+        min-idle: 0
+        # 连接池中的最大空闲连接
+        max-idle: 8
+        # 连接池的最大数据库连接数
+        max-active: 8
+        # #连接池最大阻塞等待时间(使用负值表示没有限制)
+        max-wait: -1ms
+
+# token配置
+token:
+  # 令牌自定义标识
+  header: Authorization
+  # 令牌密钥
+  secret: abcdefghijklmnopqrstuvwxyz
+  # 令牌有效期(默认30分钟)
+  expireTime: 30
+
+# MyBatis配置
+mybatis:
+  # 搜索指定包别名
+  typeAliasesPackage: com.zdqz.**.domain
+  # 配置mapper的扫描,找到所有的mapper.xml映射文件
+  mapperLocations: classpath*:mapper/**/*Mapper.xml
+  # 加载全局的配置文件
+  configLocation: classpath:mybatis/mybatis-config.xml
+
+# PageHelper分页插件
+pagehelper:
+  helperDialect: mysql
+  supportMethodsArguments: true
+  params: count=countSql
+
+# Swagger配置
+swagger:
+  # 是否开启swagger
+  enabled: true
+  # 请求前缀
+  pathMapping: /
+
+# 防止XSS攻击
+xss:
+  # 过滤开关
+  enabled: true
+  excludes: /system/notice
+  # 匹配链接
+  urlPatterns: /system/*,/monitor/*,/tool/*

+ 37 - 0
healsphere-admin/src/main/resources/i18n/messages.properties

@@ -0,0 +1,37 @@
+#错误消息
+not.null=* 必须填写
+user.jcaptcha.error=验证码错误
+user.jcaptcha.expire=验证码已失效
+user.not.exists=用户不存在/密码错误
+user.password.not.match=用户不存在/密码错误
+user.password.retry.limit.count=密码输入错误{0}次
+user.password.retry.limit.exceed=密码输入错误{0}次,帐户锁定{1}分钟
+user.password.delete=对不起,您的账号已被删除
+user.blocked=用户已封禁,请联系管理员
+role.blocked=角色已封禁,请联系管理员
+login.blocked=很遗憾,访问IP已被列入系统黑名单
+user.logout.success=退出成功
+
+length.not.valid=长度必须在{min}到{max}个字符之间
+
+user.username.not.valid=* 2到20个汉字、字母、数字或下划线组成,且必须以非数字开头
+user.password.not.valid=* 5-50个字符
+ 
+user.mobile.phone.number.not.valid=手机号格式错误
+user.login.success=登录成功
+user.register.success=注册成功
+user.notfound=请重新登录
+user.forcelogout=管理员强制退出,请重新登录
+user.unknown.error=未知错误,请重新登录
+
+##文件上传消息
+upload.exceed.maxSize=上传的文件大小超出限制的文件大小!<br/>允许的文件最大大小是:{0}MB!
+upload.filename.exceed.length=上传的文件名最长{0}个字符
+
+##权限
+no.permission=您没有数据的权限,请联系管理员添加权限 [{0}]
+no.create.permission=您没有创建数据的权限,请联系管理员添加权限 [{0}]
+no.update.permission=您没有修改数据的权限,请联系管理员添加权限 [{0}]
+no.delete.permission=您没有删除数据的权限,请联系管理员添加权限 [{0}]
+no.export.permission=您没有导出数据的权限,请联系管理员添加权限 [{0}]
+no.view.permission=您没有查看数据的权限,请联系管理员添加权限 [{0}]

+ 93 - 0
healsphere-admin/src/main/resources/logback.xml

@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration>
+    <!-- 日志存放路径 -->
+	<property name="log.path" value="/datadisk/healsphere/logs" />
+    <!-- 日志输出格式 -->
+	<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
+
+	<!-- 控制台输出 -->
+	<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
+		<encoder>
+			<pattern>${log.pattern}</pattern>
+		</encoder>
+	</appender>
+	
+	<!-- 系统日志输出 -->
+	<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
+	    <file>${log.path}/sys-info.log</file>
+        <!-- 循环政策:基于时间创建日志文件 -->
+		<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+            <!-- 日志文件名格式 -->
+			<fileNamePattern>${log.path}/sys-info.%d{yyyy-MM-dd}.log</fileNamePattern>
+			<!-- 日志最大的历史 60天 -->
+			<maxHistory>60</maxHistory>
+		</rollingPolicy>
+		<encoder>
+			<pattern>${log.pattern}</pattern>
+		</encoder>
+		<filter class="ch.qos.logback.classic.filter.LevelFilter">
+            <!-- 过滤的级别 -->
+            <level>INFO</level>
+            <!-- 匹配时的操作:接收(记录) -->
+            <onMatch>ACCEPT</onMatch>
+            <!-- 不匹配时的操作:拒绝(不记录) -->
+            <onMismatch>DENY</onMismatch>
+        </filter>
+	</appender>
+	
+	<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
+	    <file>${log.path}/sys-error.log</file>
+        <!-- 循环政策:基于时间创建日志文件 -->
+        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+            <!-- 日志文件名格式 -->
+            <fileNamePattern>${log.path}/sys-error.%d{yyyy-MM-dd}.log</fileNamePattern>
+			<!-- 日志最大的历史 60天 -->
+			<maxHistory>60</maxHistory>
+        </rollingPolicy>
+        <encoder>
+            <pattern>${log.pattern}</pattern>
+        </encoder>
+        <filter class="ch.qos.logback.classic.filter.LevelFilter">
+            <!-- 过滤的级别 -->
+            <level>ERROR</level>
+			<!-- 匹配时的操作:接收(记录) -->
+            <onMatch>ACCEPT</onMatch>
+			<!-- 不匹配时的操作:拒绝(不记录) -->
+            <onMismatch>DENY</onMismatch>
+        </filter>
+    </appender>
+	
+	<!-- 用户访问日志输出  -->
+    <appender name="sys-user" class="ch.qos.logback.core.rolling.RollingFileAppender">
+		<file>${log.path}/sys-user.log</file>
+        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+            <!-- 按天回滚 daily -->
+            <fileNamePattern>${log.path}/sys-user.%d{yyyy-MM-dd}.log</fileNamePattern>
+            <!-- 日志最大的历史 60天 -->
+            <maxHistory>60</maxHistory>
+        </rollingPolicy>
+        <encoder>
+            <pattern>${log.pattern}</pattern>
+        </encoder>
+    </appender>
+	
+	<!-- 系统模块日志级别控制  -->
+	<logger name="com.zdqz" level="info" />
+	<!-- Spring日志级别控制  -->
+	<logger name="org.springframework" level="warn" />
+
+	<root level="info">
+		<appender-ref ref="console" />
+	</root>
+	
+	<!--系统操作日志-->
+    <root level="info">
+        <appender-ref ref="file_info" />
+        <appender-ref ref="file_error" />
+    </root>
+	
+	<!--系统用户操作日志-->
+    <logger name="sys-user" level="info">
+        <appender-ref ref="sys-user"/>
+    </logger>
+</configuration> 

+ 20 - 0
healsphere-admin/src/main/resources/mybatis/mybatis-config.xml

@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE configuration
+PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-config.dtd">
+<configuration>
+    <!-- 全局参数 -->
+    <settings>
+        <!-- 使全局的映射器启用或禁用缓存 -->
+        <setting name="cacheEnabled"             value="true"   />
+        <!-- 允许JDBC 支持自动生成主键 -->
+        <setting name="useGeneratedKeys"         value="true"   />
+        <!-- 配置默认的执行器.SIMPLE就是普通执行器;REUSE执行器会重用预处理语句(prepared statements);BATCH执行器将重用语句并执行批量更新 -->
+        <setting name="defaultExecutorType"      value="SIMPLE" />
+		<!-- 指定 MyBatis 所用日志的具体实现 -->
+        <setting name="logImpl"                  value="SLF4J"  />
+        <!-- 使用驼峰命名法转换字段 -->
+		<!-- <setting name="mapUnderscoreToCamelCase" value="true"/> -->
+	</settings>
+	
+</configuration>

+ 40 - 0
healsphere-buss/.classpath

@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" output="target/classes" path="src/main/java">
+		<attributes>
+			<attribute name="optional" value="true"/>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
+		<attributes>
+			<attribute name="maven.pomderived" value="true"/>
+			<attribute name="optional" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="src" output="target/test-classes" path="src/test/java">
+		<attributes>
+			<attribute name="optional" value="true"/>
+			<attribute name="maven.pomderived" value="true"/>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
+		<attributes>
+			<attribute name="maven.pomderived" value="true"/>
+			<attribute name="test" value="true"/>
+			<attribute name="optional" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
+		<attributes>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
+		<attributes>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

+ 2 - 0
healsphere-buss/.gitignore

@@ -0,0 +1,2 @@
+/target/
+/.settings/

+ 23 - 0
healsphere-buss/.project

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>healsphere-system</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.m2e.core.maven2Builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.eclipse.m2e.core.maven2Nature</nature>
+	</natures>
+</projectDescription>

+ 25 - 0
healsphere-buss/pom.xml

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <groupId>com.zdqz</groupId>
+        <artifactId>healsphere</artifactId>
+        <version>3.8.9</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>healsphere-buss</artifactId>
+
+
+    <dependencies>
+
+        <!-- 通用工具-->
+        <dependency>
+            <groupId>com.zdqz</groupId>
+            <artifactId>healsphere-common</artifactId>
+        </dependency>
+
+    </dependencies>
+
+</project>

+ 104 - 0
healsphere-buss/src/main/java/com/zdqz/data/controller/DataDljyController.java

@@ -0,0 +1,104 @@
+package com.zdqz.data.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.zdqz.common.annotation.Log;
+import com.zdqz.common.core.controller.BaseController;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.enums.BusinessType;
+import com.zdqz.data.domain.DataDljy;
+import com.zdqz.data.service.IDataDljyService;
+import com.zdqz.common.utils.poi.ExcelUtil;
+import com.zdqz.common.core.page.TableDataInfo;
+
+/**
+ * 毒力基因耐药药品、敏感药品管理Controller
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-03
+ */
+@RestController
+@RequestMapping("/data/dljy")
+public class DataDljyController extends BaseController
+{
+    @Autowired
+    private IDataDljyService dataDljyService;
+
+    /**
+     * 查询毒力基因耐药药品、敏感药品管理列表
+     */
+    @PreAuthorize("@ss.hasPermi('data:dljy:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(DataDljy dataDljy)
+    {
+        startPage();
+        List<DataDljy> list = dataDljyService.selectDataDljyList(dataDljy);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出毒力基因耐药药品、敏感药品管理列表
+     */
+    @PreAuthorize("@ss.hasPermi('data:dljy:export')")
+    @Log(title = "毒力基因耐药药品、敏感药品管理", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, DataDljy dataDljy)
+    {
+        List<DataDljy> list = dataDljyService.selectDataDljyList(dataDljy);
+        ExcelUtil<DataDljy> util = new ExcelUtil<DataDljy>(DataDljy.class);
+        util.exportExcel(response, list, "毒力基因耐药药品、敏感药品管理数据");
+    }
+
+    /**
+     * 获取毒力基因耐药药品、敏感药品管理详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('data:dljy:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(dataDljyService.selectDataDljyById(id));
+    }
+
+    /**
+     * 新增毒力基因耐药药品、敏感药品管理
+     */
+    @PreAuthorize("@ss.hasPermi('data:dljy:add')")
+    @Log(title = "毒力基因耐药药品、敏感药品管理", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody DataDljy dataDljy)
+    {
+        return toAjax(dataDljyService.insertDataDljy(dataDljy));
+    }
+
+    /**
+     * 修改毒力基因耐药药品、敏感药品管理
+     */
+    @PreAuthorize("@ss.hasPermi('data:dljy:edit')")
+    @Log(title = "毒力基因耐药药品、敏感药品管理", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody DataDljy dataDljy)
+    {
+        return toAjax(dataDljyService.updateDataDljy(dataDljy));
+    }
+
+    /**
+     * 删除毒力基因耐药药品、敏感药品管理
+     */
+    @PreAuthorize("@ss.hasPermi('data:dljy:remove')")
+    @Log(title = "毒力基因耐药药品、敏感药品管理", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(dataDljyService.deleteDataDljyByIds(ids));
+    }
+}

+ 104 - 0
healsphere-buss/src/main/java/com/zdqz/data/controller/DataNyjyController.java

@@ -0,0 +1,104 @@
+package com.zdqz.data.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.zdqz.common.annotation.Log;
+import com.zdqz.common.core.controller.BaseController;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.enums.BusinessType;
+import com.zdqz.data.domain.DataNyjy;
+import com.zdqz.data.service.IDataNyjyService;
+import com.zdqz.common.utils.poi.ExcelUtil;
+import com.zdqz.common.core.page.TableDataInfo;
+
+/**
+ * 耐药基因耐药药品、敏感药品管理Controller
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-03
+ */
+@RestController
+@RequestMapping("/data/nyjy")
+public class DataNyjyController extends BaseController
+{
+    @Autowired
+    private IDataNyjyService dataNyjyService;
+
+    /**
+     * 查询耐药基因耐药药品、敏感药品管理列表
+     */
+    @PreAuthorize("@ss.hasPermi('data:nyjy:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(DataNyjy dataNyjy)
+    {
+        startPage();
+        List<DataNyjy> list = dataNyjyService.selectDataNyjyList(dataNyjy);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出耐药基因耐药药品、敏感药品管理列表
+     */
+    @PreAuthorize("@ss.hasPermi('data:nyjy:export')")
+    @Log(title = "耐药基因耐药药品、敏感药品管理", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, DataNyjy dataNyjy)
+    {
+        List<DataNyjy> list = dataNyjyService.selectDataNyjyList(dataNyjy);
+        ExcelUtil<DataNyjy> util = new ExcelUtil<DataNyjy>(DataNyjy.class);
+        util.exportExcel(response, list, "耐药基因耐药药品、敏感药品管理数据");
+    }
+
+    /**
+     * 获取耐药基因耐药药品、敏感药品管理详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('data:nyjy:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(dataNyjyService.selectDataNyjyById(id));
+    }
+
+    /**
+     * 新增耐药基因耐药药品、敏感药品管理
+     */
+    @PreAuthorize("@ss.hasPermi('data:nyjy:add')")
+    @Log(title = "耐药基因耐药药品、敏感药品管理", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody DataNyjy dataNyjy)
+    {
+        return toAjax(dataNyjyService.insertDataNyjy(dataNyjy));
+    }
+
+    /**
+     * 修改耐药基因耐药药品、敏感药品管理
+     */
+    @PreAuthorize("@ss.hasPermi('data:nyjy:edit')")
+    @Log(title = "耐药基因耐药药品、敏感药品管理", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody DataNyjy dataNyjy)
+    {
+        return toAjax(dataNyjyService.updateDataNyjy(dataNyjy));
+    }
+
+    /**
+     * 删除耐药基因耐药药品、敏感药品管理
+     */
+    @PreAuthorize("@ss.hasPermi('data:nyjy:remove')")
+    @Log(title = "耐药基因耐药药品、敏感药品管理", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(dataNyjyService.deleteDataNyjyByIds(ids));
+    }
+}

+ 117 - 0
healsphere-buss/src/main/java/com/zdqz/data/domain/DataDljy.java

@@ -0,0 +1,117 @@
+package com.zdqz.data.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.zdqz.common.annotation.Excel;
+import com.zdqz.common.core.domain.BaseEntity;
+
+/**
+ * 毒力基因耐药药品、敏感药品管理对象 data_dljy
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-03
+ */
+public class DataDljy extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 编号 */
+    private Long id;
+
+    /** 毒力基因 */
+    @Excel(name = "毒力基因")
+    private String dljy;
+
+    /** 病原体 */
+    @Excel(name = "病原体")
+    private String byt;
+
+    /** 耐药药品 */
+    @Excel(name = "耐药药品")
+    private String nyyp;
+
+    /** 敏感药品 */
+    @Excel(name = "敏感药品")
+    private String mgyp;
+
+    /** 耐药基因的解释 */
+    @Excel(name = "耐药基因的解释")
+    private String nyjyExpress;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+
+    public void setDljy(String dljy) 
+    {
+        this.dljy = dljy;
+    }
+
+    public String getDljy() 
+    {
+        return dljy;
+    }
+
+    public void setByt(String byt) 
+    {
+        this.byt = byt;
+    }
+
+    public String getByt() 
+    {
+        return byt;
+    }
+
+    public void setNyyp(String nyyp) 
+    {
+        this.nyyp = nyyp;
+    }
+
+    public String getNyyp() 
+    {
+        return nyyp;
+    }
+
+    public void setMgyp(String mgyp) 
+    {
+        this.mgyp = mgyp;
+    }
+
+    public String getMgyp() 
+    {
+        return mgyp;
+    }
+
+    public void setNyjyExpress(String nyjyExpress) 
+    {
+        this.nyjyExpress = nyjyExpress;
+    }
+
+    public String getNyjyExpress() 
+    {
+        return nyjyExpress;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("dljy", getDljy())
+            .append("byt", getByt())
+            .append("nyyp", getNyyp())
+            .append("mgyp", getMgyp())
+            .append("nyjyExpress", getNyjyExpress())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

+ 117 - 0
healsphere-buss/src/main/java/com/zdqz/data/domain/DataNyjy.java

@@ -0,0 +1,117 @@
+package com.zdqz.data.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.zdqz.common.annotation.Excel;
+import com.zdqz.common.core.domain.BaseEntity;
+
+/**
+ * 耐药基因耐药药品、敏感药品管理对象 data_nyjy
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-03
+ */
+public class DataNyjy extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 编号 */
+    private Long id;
+
+    /** 耐药基因 */
+    @Excel(name = "耐药基因")
+    private String nyjy;
+
+    /** 病原体 */
+    @Excel(name = "病原体")
+    private String byt;
+
+    /** 耐药药品 */
+    @Excel(name = "耐药药品")
+    private String nyyp;
+
+    /** 敏感药品 */
+    @Excel(name = "敏感药品")
+    private String mgyp;
+
+    /** 耐药基因的解释 */
+    @Excel(name = "耐药基因的解释")
+    private String nyjyExpress;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+
+    public void setNyjy(String nyjy) 
+    {
+        this.nyjy = nyjy;
+    }
+
+    public String getNyjy() 
+    {
+        return nyjy;
+    }
+
+    public void setByt(String byt) 
+    {
+        this.byt = byt;
+    }
+
+    public String getByt() 
+    {
+        return byt;
+    }
+
+    public void setNyyp(String nyyp) 
+    {
+        this.nyyp = nyyp;
+    }
+
+    public String getNyyp() 
+    {
+        return nyyp;
+    }
+
+    public void setMgyp(String mgyp) 
+    {
+        this.mgyp = mgyp;
+    }
+
+    public String getMgyp() 
+    {
+        return mgyp;
+    }
+
+    public void setNyjyExpress(String nyjyExpress) 
+    {
+        this.nyjyExpress = nyjyExpress;
+    }
+
+    public String getNyjyExpress() 
+    {
+        return nyjyExpress;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("nyjy", getNyjy())
+            .append("byt", getByt())
+            .append("nyyp", getNyyp())
+            .append("mgyp", getMgyp())
+            .append("nyjyExpress", getNyjyExpress())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

+ 61 - 0
healsphere-buss/src/main/java/com/zdqz/data/mapper/DataDljyMapper.java

@@ -0,0 +1,61 @@
+package com.zdqz.data.mapper;
+
+import java.util.List;
+import com.zdqz.data.domain.DataDljy;
+
+/**
+ * 毒力基因耐药药品、敏感药品管理Mapper接口
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-03
+ */
+public interface DataDljyMapper 
+{
+    /**
+     * 查询毒力基因耐药药品、敏感药品管理
+     * 
+     * @param id 毒力基因耐药药品、敏感药品管理主键
+     * @return 毒力基因耐药药品、敏感药品管理
+     */
+    public DataDljy selectDataDljyById(Long id);
+
+    /**
+     * 查询毒力基因耐药药品、敏感药品管理列表
+     * 
+     * @param dataDljy 毒力基因耐药药品、敏感药品管理
+     * @return 毒力基因耐药药品、敏感药品管理集合
+     */
+    public List<DataDljy> selectDataDljyList(DataDljy dataDljy);
+
+    /**
+     * 新增毒力基因耐药药品、敏感药品管理
+     * 
+     * @param dataDljy 毒力基因耐药药品、敏感药品管理
+     * @return 结果
+     */
+    public int insertDataDljy(DataDljy dataDljy);
+
+    /**
+     * 修改毒力基因耐药药品、敏感药品管理
+     * 
+     * @param dataDljy 毒力基因耐药药品、敏感药品管理
+     * @return 结果
+     */
+    public int updateDataDljy(DataDljy dataDljy);
+
+    /**
+     * 删除毒力基因耐药药品、敏感药品管理
+     * 
+     * @param id 毒力基因耐药药品、敏感药品管理主键
+     * @return 结果
+     */
+    public int deleteDataDljyById(Long id);
+
+    /**
+     * 批量删除毒力基因耐药药品、敏感药品管理
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteDataDljyByIds(Long[] ids);
+}

+ 61 - 0
healsphere-buss/src/main/java/com/zdqz/data/mapper/DataNyjyMapper.java

@@ -0,0 +1,61 @@
+package com.zdqz.data.mapper;
+
+import java.util.List;
+import com.zdqz.data.domain.DataNyjy;
+
+/**
+ * 耐药基因耐药药品、敏感药品管理Mapper接口
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-03
+ */
+public interface DataNyjyMapper 
+{
+    /**
+     * 查询耐药基因耐药药品、敏感药品管理
+     * 
+     * @param id 耐药基因耐药药品、敏感药品管理主键
+     * @return 耐药基因耐药药品、敏感药品管理
+     */
+    public DataNyjy selectDataNyjyById(Long id);
+
+    /**
+     * 查询耐药基因耐药药品、敏感药品管理列表
+     * 
+     * @param dataNyjy 耐药基因耐药药品、敏感药品管理
+     * @return 耐药基因耐药药品、敏感药品管理集合
+     */
+    public List<DataNyjy> selectDataNyjyList(DataNyjy dataNyjy);
+
+    /**
+     * 新增耐药基因耐药药品、敏感药品管理
+     * 
+     * @param dataNyjy 耐药基因耐药药品、敏感药品管理
+     * @return 结果
+     */
+    public int insertDataNyjy(DataNyjy dataNyjy);
+
+    /**
+     * 修改耐药基因耐药药品、敏感药品管理
+     * 
+     * @param dataNyjy 耐药基因耐药药品、敏感药品管理
+     * @return 结果
+     */
+    public int updateDataNyjy(DataNyjy dataNyjy);
+
+    /**
+     * 删除耐药基因耐药药品、敏感药品管理
+     * 
+     * @param id 耐药基因耐药药品、敏感药品管理主键
+     * @return 结果
+     */
+    public int deleteDataNyjyById(Long id);
+
+    /**
+     * 批量删除耐药基因耐药药品、敏感药品管理
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteDataNyjyByIds(Long[] ids);
+}

+ 61 - 0
healsphere-buss/src/main/java/com/zdqz/data/service/IDataDljyService.java

@@ -0,0 +1,61 @@
+package com.zdqz.data.service;
+
+import java.util.List;
+import com.zdqz.data.domain.DataDljy;
+
+/**
+ * 毒力基因耐药药品、敏感药品管理Service接口
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-03
+ */
+public interface IDataDljyService 
+{
+    /**
+     * 查询毒力基因耐药药品、敏感药品管理
+     * 
+     * @param id 毒力基因耐药药品、敏感药品管理主键
+     * @return 毒力基因耐药药品、敏感药品管理
+     */
+    public DataDljy selectDataDljyById(Long id);
+
+    /**
+     * 查询毒力基因耐药药品、敏感药品管理列表
+     * 
+     * @param dataDljy 毒力基因耐药药品、敏感药品管理
+     * @return 毒力基因耐药药品、敏感药品管理集合
+     */
+    public List<DataDljy> selectDataDljyList(DataDljy dataDljy);
+
+    /**
+     * 新增毒力基因耐药药品、敏感药品管理
+     * 
+     * @param dataDljy 毒力基因耐药药品、敏感药品管理
+     * @return 结果
+     */
+    public int insertDataDljy(DataDljy dataDljy);
+
+    /**
+     * 修改毒力基因耐药药品、敏感药品管理
+     * 
+     * @param dataDljy 毒力基因耐药药品、敏感药品管理
+     * @return 结果
+     */
+    public int updateDataDljy(DataDljy dataDljy);
+
+    /**
+     * 批量删除毒力基因耐药药品、敏感药品管理
+     * 
+     * @param ids 需要删除的毒力基因耐药药品、敏感药品管理主键集合
+     * @return 结果
+     */
+    public int deleteDataDljyByIds(Long[] ids);
+
+    /**
+     * 删除毒力基因耐药药品、敏感药品管理信息
+     * 
+     * @param id 毒力基因耐药药品、敏感药品管理主键
+     * @return 结果
+     */
+    public int deleteDataDljyById(Long id);
+}

+ 61 - 0
healsphere-buss/src/main/java/com/zdqz/data/service/IDataNyjyService.java

@@ -0,0 +1,61 @@
+package com.zdqz.data.service;
+
+import java.util.List;
+import com.zdqz.data.domain.DataNyjy;
+
+/**
+ * 耐药基因耐药药品、敏感药品管理Service接口
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-03
+ */
+public interface IDataNyjyService 
+{
+    /**
+     * 查询耐药基因耐药药品、敏感药品管理
+     * 
+     * @param id 耐药基因耐药药品、敏感药品管理主键
+     * @return 耐药基因耐药药品、敏感药品管理
+     */
+    public DataNyjy selectDataNyjyById(Long id);
+
+    /**
+     * 查询耐药基因耐药药品、敏感药品管理列表
+     * 
+     * @param dataNyjy 耐药基因耐药药品、敏感药品管理
+     * @return 耐药基因耐药药品、敏感药品管理集合
+     */
+    public List<DataNyjy> selectDataNyjyList(DataNyjy dataNyjy);
+
+    /**
+     * 新增耐药基因耐药药品、敏感药品管理
+     * 
+     * @param dataNyjy 耐药基因耐药药品、敏感药品管理
+     * @return 结果
+     */
+    public int insertDataNyjy(DataNyjy dataNyjy);
+
+    /**
+     * 修改耐药基因耐药药品、敏感药品管理
+     * 
+     * @param dataNyjy 耐药基因耐药药品、敏感药品管理
+     * @return 结果
+     */
+    public int updateDataNyjy(DataNyjy dataNyjy);
+
+    /**
+     * 批量删除耐药基因耐药药品、敏感药品管理
+     * 
+     * @param ids 需要删除的耐药基因耐药药品、敏感药品管理主键集合
+     * @return 结果
+     */
+    public int deleteDataNyjyByIds(Long[] ids);
+
+    /**
+     * 删除耐药基因耐药药品、敏感药品管理信息
+     * 
+     * @param id 耐药基因耐药药品、敏感药品管理主键
+     * @return 结果
+     */
+    public int deleteDataNyjyById(Long id);
+}

+ 96 - 0
healsphere-buss/src/main/java/com/zdqz/data/service/impl/DataDljyServiceImpl.java

@@ -0,0 +1,96 @@
+package com.zdqz.data.service.impl;
+
+import java.util.List;
+import com.zdqz.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.zdqz.data.mapper.DataDljyMapper;
+import com.zdqz.data.domain.DataDljy;
+import com.zdqz.data.service.IDataDljyService;
+
+/**
+ * 毒力基因耐药药品、敏感药品管理Service业务层处理
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-03
+ */
+@Service
+public class DataDljyServiceImpl implements IDataDljyService 
+{
+    @Autowired
+    private DataDljyMapper dataDljyMapper;
+
+    /**
+     * 查询毒力基因耐药药品、敏感药品管理
+     * 
+     * @param id 毒力基因耐药药品、敏感药品管理主键
+     * @return 毒力基因耐药药品、敏感药品管理
+     */
+    @Override
+    public DataDljy selectDataDljyById(Long id)
+    {
+        return dataDljyMapper.selectDataDljyById(id);
+    }
+
+    /**
+     * 查询毒力基因耐药药品、敏感药品管理列表
+     * 
+     * @param dataDljy 毒力基因耐药药品、敏感药品管理
+     * @return 毒力基因耐药药品、敏感药品管理
+     */
+    @Override
+    public List<DataDljy> selectDataDljyList(DataDljy dataDljy)
+    {
+        return dataDljyMapper.selectDataDljyList(dataDljy);
+    }
+
+    /**
+     * 新增毒力基因耐药药品、敏感药品管理
+     * 
+     * @param dataDljy 毒力基因耐药药品、敏感药品管理
+     * @return 结果
+     */
+    @Override
+    public int insertDataDljy(DataDljy dataDljy)
+    {
+        dataDljy.setCreateTime(DateUtils.getNowDate());
+        return dataDljyMapper.insertDataDljy(dataDljy);
+    }
+
+    /**
+     * 修改毒力基因耐药药品、敏感药品管理
+     * 
+     * @param dataDljy 毒力基因耐药药品、敏感药品管理
+     * @return 结果
+     */
+    @Override
+    public int updateDataDljy(DataDljy dataDljy)
+    {
+        dataDljy.setUpdateTime(DateUtils.getNowDate());
+        return dataDljyMapper.updateDataDljy(dataDljy);
+    }
+
+    /**
+     * 批量删除毒力基因耐药药品、敏感药品管理
+     * 
+     * @param ids 需要删除的毒力基因耐药药品、敏感药品管理主键
+     * @return 结果
+     */
+    @Override
+    public int deleteDataDljyByIds(Long[] ids)
+    {
+        return dataDljyMapper.deleteDataDljyByIds(ids);
+    }
+
+    /**
+     * 删除毒力基因耐药药品、敏感药品管理信息
+     * 
+     * @param id 毒力基因耐药药品、敏感药品管理主键
+     * @return 结果
+     */
+    @Override
+    public int deleteDataDljyById(Long id)
+    {
+        return dataDljyMapper.deleteDataDljyById(id);
+    }
+}

+ 96 - 0
healsphere-buss/src/main/java/com/zdqz/data/service/impl/DataNyjyServiceImpl.java

@@ -0,0 +1,96 @@
+package com.zdqz.data.service.impl;
+
+import java.util.List;
+import com.zdqz.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.zdqz.data.mapper.DataNyjyMapper;
+import com.zdqz.data.domain.DataNyjy;
+import com.zdqz.data.service.IDataNyjyService;
+
+/**
+ * 耐药基因耐药药品、敏感药品管理Service业务层处理
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-03
+ */
+@Service
+public class DataNyjyServiceImpl implements IDataNyjyService 
+{
+    @Autowired
+    private DataNyjyMapper dataNyjyMapper;
+
+    /**
+     * 查询耐药基因耐药药品、敏感药品管理
+     * 
+     * @param id 耐药基因耐药药品、敏感药品管理主键
+     * @return 耐药基因耐药药品、敏感药品管理
+     */
+    @Override
+    public DataNyjy selectDataNyjyById(Long id)
+    {
+        return dataNyjyMapper.selectDataNyjyById(id);
+    }
+
+    /**
+     * 查询耐药基因耐药药品、敏感药品管理列表
+     * 
+     * @param dataNyjy 耐药基因耐药药品、敏感药品管理
+     * @return 耐药基因耐药药品、敏感药品管理
+     */
+    @Override
+    public List<DataNyjy> selectDataNyjyList(DataNyjy dataNyjy)
+    {
+        return dataNyjyMapper.selectDataNyjyList(dataNyjy);
+    }
+
+    /**
+     * 新增耐药基因耐药药品、敏感药品管理
+     * 
+     * @param dataNyjy 耐药基因耐药药品、敏感药品管理
+     * @return 结果
+     */
+    @Override
+    public int insertDataNyjy(DataNyjy dataNyjy)
+    {
+        dataNyjy.setCreateTime(DateUtils.getNowDate());
+        return dataNyjyMapper.insertDataNyjy(dataNyjy);
+    }
+
+    /**
+     * 修改耐药基因耐药药品、敏感药品管理
+     * 
+     * @param dataNyjy 耐药基因耐药药品、敏感药品管理
+     * @return 结果
+     */
+    @Override
+    public int updateDataNyjy(DataNyjy dataNyjy)
+    {
+        dataNyjy.setUpdateTime(DateUtils.getNowDate());
+        return dataNyjyMapper.updateDataNyjy(dataNyjy);
+    }
+
+    /**
+     * 批量删除耐药基因耐药药品、敏感药品管理
+     * 
+     * @param ids 需要删除的耐药基因耐药药品、敏感药品管理主键
+     * @return 结果
+     */
+    @Override
+    public int deleteDataNyjyByIds(Long[] ids)
+    {
+        return dataNyjyMapper.deleteDataNyjyByIds(ids);
+    }
+
+    /**
+     * 删除耐药基因耐药药品、敏感药品管理信息
+     * 
+     * @param id 耐药基因耐药药品、敏感药品管理主键
+     * @return 结果
+     */
+    @Override
+    public int deleteDataNyjyById(Long id)
+    {
+        return dataNyjyMapper.deleteDataNyjyById(id);
+    }
+}

+ 104 - 0
healsphere-buss/src/main/java/com/zdqz/sample/controller/SampleDeptController.java

@@ -0,0 +1,104 @@
+package com.zdqz.sample.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.zdqz.common.annotation.Log;
+import com.zdqz.common.core.controller.BaseController;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.enums.BusinessType;
+import com.zdqz.sample.domain.SampleDept;
+import com.zdqz.sample.service.ISampleDeptService;
+import com.zdqz.common.utils.poi.ExcelUtil;
+import com.zdqz.common.core.page.TableDataInfo;
+
+/**
+ * 送检科室Controller
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+@RestController
+@RequestMapping("/sample/sampleDept")
+public class SampleDeptController extends BaseController
+{
+    @Autowired
+    private ISampleDeptService sampleDeptService;
+
+    /**
+     * 查询送检科室列表
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleDept:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(SampleDept sampleDept)
+    {
+        startPage();
+        List<SampleDept> list = sampleDeptService.selectSampleDeptList(sampleDept);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出送检科室列表
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleDept:export')")
+    @Log(title = "送检科室", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, SampleDept sampleDept)
+    {
+        List<SampleDept> list = sampleDeptService.selectSampleDeptList(sampleDept);
+        ExcelUtil<SampleDept> util = new ExcelUtil<SampleDept>(SampleDept.class);
+        util.exportExcel(response, list, "送检科室数据");
+    }
+
+    /**
+     * 获取送检科室详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleDept:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(sampleDeptService.selectSampleDeptById(id));
+    }
+
+    /**
+     * 新增送检科室
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleDept:add')")
+    @Log(title = "送检科室", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody SampleDept sampleDept)
+    {
+        return toAjax(sampleDeptService.insertSampleDept(sampleDept));
+    }
+
+    /**
+     * 修改送检科室
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleDept:edit')")
+    @Log(title = "送检科室", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody SampleDept sampleDept)
+    {
+        return toAjax(sampleDeptService.updateSampleDept(sampleDept));
+    }
+
+    /**
+     * 删除送检科室
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleDept:remove')")
+    @Log(title = "送检科室", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(sampleDeptService.deleteSampleDeptByIds(ids));
+    }
+}

+ 104 - 0
healsphere-buss/src/main/java/com/zdqz/sample/controller/SampleHospitalController.java

@@ -0,0 +1,104 @@
+package com.zdqz.sample.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.zdqz.common.annotation.Log;
+import com.zdqz.common.core.controller.BaseController;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.enums.BusinessType;
+import com.zdqz.sample.domain.SampleHospital;
+import com.zdqz.sample.service.ISampleHospitalService;
+import com.zdqz.common.utils.poi.ExcelUtil;
+import com.zdqz.common.core.page.TableDataInfo;
+
+/**
+ * 送检医院Controller
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+@RestController
+@RequestMapping("/sample/sampleHospital")
+public class SampleHospitalController extends BaseController
+{
+    @Autowired
+    private ISampleHospitalService sampleHospitalService;
+
+    /**
+     * 查询送检医院列表
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleHospital:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(SampleHospital sampleHospital)
+    {
+        startPage();
+        List<SampleHospital> list = sampleHospitalService.selectSampleHospitalList(sampleHospital);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出送检医院列表
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleHospital:export')")
+    @Log(title = "送检医院", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, SampleHospital sampleHospital)
+    {
+        List<SampleHospital> list = sampleHospitalService.selectSampleHospitalList(sampleHospital);
+        ExcelUtil<SampleHospital> util = new ExcelUtil<SampleHospital>(SampleHospital.class);
+        util.exportExcel(response, list, "送检医院数据");
+    }
+
+    /**
+     * 获取送检医院详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleHospital:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(sampleHospitalService.selectSampleHospitalById(id));
+    }
+
+    /**
+     * 新增送检医院
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleHospital:add')")
+    @Log(title = "送检医院", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody SampleHospital sampleHospital)
+    {
+        return toAjax(sampleHospitalService.insertSampleHospital(sampleHospital));
+    }
+
+    /**
+     * 修改送检医院
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleHospital:edit')")
+    @Log(title = "送检医院", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody SampleHospital sampleHospital)
+    {
+        return toAjax(sampleHospitalService.updateSampleHospital(sampleHospital));
+    }
+
+    /**
+     * 删除送检医院
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleHospital:remove')")
+    @Log(title = "送检医院", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(sampleHospitalService.deleteSampleHospitalByIds(ids));
+    }
+}

+ 104 - 0
healsphere-buss/src/main/java/com/zdqz/sample/controller/SampleInfoController.java

@@ -0,0 +1,104 @@
+package com.zdqz.sample.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.zdqz.common.annotation.Log;
+import com.zdqz.common.core.controller.BaseController;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.enums.BusinessType;
+import com.zdqz.sample.domain.SampleInfo;
+import com.zdqz.sample.service.ISampleInfoService;
+import com.zdqz.common.utils.poi.ExcelUtil;
+import com.zdqz.common.core.page.TableDataInfo;
+
+/**
+ * 样品管理Controller
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+@RestController
+@RequestMapping("/sample/sampleInfo")
+public class SampleInfoController extends BaseController
+{
+    @Autowired
+    private ISampleInfoService sampleInfoService;
+
+    /**
+     * 查询样品管理列表
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleInfo:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(SampleInfo sampleInfo)
+    {
+        startPage();
+        List<SampleInfo> list = sampleInfoService.selectSampleInfoList(sampleInfo);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出样品管理列表
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleInfo:export')")
+    @Log(title = "样品管理", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, SampleInfo sampleInfo)
+    {
+        List<SampleInfo> list = sampleInfoService.selectSampleInfoList(sampleInfo);
+        ExcelUtil<SampleInfo> util = new ExcelUtil<SampleInfo>(SampleInfo.class);
+        util.exportExcel(response, list, "样品管理数据");
+    }
+
+    /**
+     * 获取样品管理详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleInfo:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(sampleInfoService.selectSampleInfoById(id));
+    }
+
+    /**
+     * 新增样品管理
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleInfo:add')")
+    @Log(title = "样品管理", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody SampleInfo sampleInfo)
+    {
+        return toAjax(sampleInfoService.insertSampleInfo(sampleInfo));
+    }
+
+    /**
+     * 修改样品管理
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleInfo:edit')")
+    @Log(title = "样品管理", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody SampleInfo sampleInfo)
+    {
+        return toAjax(sampleInfoService.updateSampleInfo(sampleInfo));
+    }
+
+    /**
+     * 删除样品管理
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleInfo:remove')")
+    @Log(title = "样品管理", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(sampleInfoService.deleteSampleInfoByIds(ids));
+    }
+}

+ 104 - 0
healsphere-buss/src/main/java/com/zdqz/sample/controller/SamplePatientController.java

@@ -0,0 +1,104 @@
+package com.zdqz.sample.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.zdqz.common.annotation.Log;
+import com.zdqz.common.core.controller.BaseController;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.enums.BusinessType;
+import com.zdqz.sample.domain.SamplePatient;
+import com.zdqz.sample.service.ISamplePatientService;
+import com.zdqz.common.utils.poi.ExcelUtil;
+import com.zdqz.common.core.page.TableDataInfo;
+
+/**
+ * 样品患者信息Controller
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+@RestController
+@RequestMapping("/sample/samplePatient")
+public class SamplePatientController extends BaseController
+{
+    @Autowired
+    private ISamplePatientService samplePatientService;
+
+    /**
+     * 查询样品患者信息列表
+     */
+    @PreAuthorize("@ss.hasPermi('sample:samplePatient:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(SamplePatient samplePatient)
+    {
+        startPage();
+        List<SamplePatient> list = samplePatientService.selectSamplePatientList(samplePatient);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出样品患者信息列表
+     */
+    @PreAuthorize("@ss.hasPermi('sample:samplePatient:export')")
+    @Log(title = "样品患者信息", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, SamplePatient samplePatient)
+    {
+        List<SamplePatient> list = samplePatientService.selectSamplePatientList(samplePatient);
+        ExcelUtil<SamplePatient> util = new ExcelUtil<SamplePatient>(SamplePatient.class);
+        util.exportExcel(response, list, "样品患者信息数据");
+    }
+
+    /**
+     * 获取样品患者信息详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('sample:samplePatient:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(samplePatientService.selectSamplePatientById(id));
+    }
+
+    /**
+     * 新增样品患者信息
+     */
+    @PreAuthorize("@ss.hasPermi('sample:samplePatient:add')")
+    @Log(title = "样品患者信息", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody SamplePatient samplePatient)
+    {
+        return toAjax(samplePatientService.insertSamplePatient(samplePatient));
+    }
+
+    /**
+     * 修改样品患者信息
+     */
+    @PreAuthorize("@ss.hasPermi('sample:samplePatient:edit')")
+    @Log(title = "样品患者信息", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody SamplePatient samplePatient)
+    {
+        return toAjax(samplePatientService.updateSamplePatient(samplePatient));
+    }
+
+    /**
+     * 删除样品患者信息
+     */
+    @PreAuthorize("@ss.hasPermi('sample:samplePatient:remove')")
+    @Log(title = "样品患者信息", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(samplePatientService.deleteSamplePatientByIds(ids));
+    }
+}

+ 104 - 0
healsphere-buss/src/main/java/com/zdqz/sample/controller/SampleTypeController.java

@@ -0,0 +1,104 @@
+package com.zdqz.sample.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.zdqz.common.annotation.Log;
+import com.zdqz.common.core.controller.BaseController;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.enums.BusinessType;
+import com.zdqz.sample.domain.SampleType;
+import com.zdqz.sample.service.ISampleTypeService;
+import com.zdqz.common.utils.poi.ExcelUtil;
+import com.zdqz.common.core.page.TableDataInfo;
+
+/**
+ * 样本类型Controller
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+@RestController
+@RequestMapping("/sample/sampleType")
+public class SampleTypeController extends BaseController
+{
+    @Autowired
+    private ISampleTypeService sampleTypeService;
+
+    /**
+     * 查询样本类型列表
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleType:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(SampleType sampleType)
+    {
+        startPage();
+        List<SampleType> list = sampleTypeService.selectSampleTypeList(sampleType);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出样本类型列表
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleType:export')")
+    @Log(title = "样本类型", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, SampleType sampleType)
+    {
+        List<SampleType> list = sampleTypeService.selectSampleTypeList(sampleType);
+        ExcelUtil<SampleType> util = new ExcelUtil<SampleType>(SampleType.class);
+        util.exportExcel(response, list, "样本类型数据");
+    }
+
+    /**
+     * 获取样本类型详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleType:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(sampleTypeService.selectSampleTypeById(id));
+    }
+
+    /**
+     * 新增样本类型
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleType:add')")
+    @Log(title = "样本类型", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody SampleType sampleType)
+    {
+        return toAjax(sampleTypeService.insertSampleType(sampleType));
+    }
+
+    /**
+     * 修改样本类型
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleType:edit')")
+    @Log(title = "样本类型", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody SampleType sampleType)
+    {
+        return toAjax(sampleTypeService.updateSampleType(sampleType));
+    }
+
+    /**
+     * 删除样本类型
+     */
+    @PreAuthorize("@ss.hasPermi('sample:sampleType:remove')")
+    @Log(title = "样本类型", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(sampleTypeService.deleteSampleTypeByIds(ids));
+    }
+}

+ 87 - 0
healsphere-buss/src/main/java/com/zdqz/sample/domain/SampleDept.java

@@ -0,0 +1,87 @@
+package com.zdqz.sample.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.zdqz.common.annotation.Excel;
+import com.zdqz.common.core.domain.BaseEntity;
+
+/**
+ * 送检科室对象 sample_dept
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+public class SampleDept extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 编号 */
+    private Long id;
+
+    /** 科室 */
+    @Excel(name = "科室")
+    private String name;
+
+    /** 状态 */
+    @Excel(name = "状态")
+    private Long status;
+
+    /** 排序号 */
+    @Excel(name = "排序号")
+    private Long seq;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+
+    public void setName(String name) 
+    {
+        this.name = name;
+    }
+
+    public String getName() 
+    {
+        return name;
+    }
+
+    public void setStatus(Long status) 
+    {
+        this.status = status;
+    }
+
+    public Long getStatus() 
+    {
+        return status;
+    }
+
+    public void setSeq(Long seq) 
+    {
+        this.seq = seq;
+    }
+
+    public Long getSeq() 
+    {
+        return seq;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("name", getName())
+            .append("status", getStatus())
+            .append("seq", getSeq())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

+ 132 - 0
healsphere-buss/src/main/java/com/zdqz/sample/domain/SampleHospital.java

@@ -0,0 +1,132 @@
+package com.zdqz.sample.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.zdqz.common.annotation.Excel;
+import com.zdqz.common.core.domain.BaseEntity;
+
+/**
+ * 送检医院对象 sample_hospital
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+public class SampleHospital extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 编号 */
+    private Long id;
+
+    /** 医院名称 */
+    @Excel(name = "医院名称")
+    private String name;
+
+    /** 状态 */
+    @Excel(name = "状态")
+    private Long status;
+
+    /** 医院等级 */
+    @Excel(name = "医院等级")
+    private String level;
+
+    /** 中国行政区域编号 */
+    @Excel(name = "中国行政区域编号")
+    private Long cnAreanId;
+
+    /** 中国行政区域组合名称 */
+    @Excel(name = "中国行政区域组合名称")
+    private String cnAreaname;
+
+    /** 排序号 */
+    @Excel(name = "排序号")
+    private Long seq;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+
+    public void setName(String name) 
+    {
+        this.name = name;
+    }
+
+    public String getName() 
+    {
+        return name;
+    }
+
+    public void setStatus(Long status) 
+    {
+        this.status = status;
+    }
+
+    public Long getStatus() 
+    {
+        return status;
+    }
+
+    public void setLevel(String level) 
+    {
+        this.level = level;
+    }
+
+    public String getLevel() 
+    {
+        return level;
+    }
+
+    public void setCnAreanId(Long cnAreanId) 
+    {
+        this.cnAreanId = cnAreanId;
+    }
+
+    public Long getCnAreanId() 
+    {
+        return cnAreanId;
+    }
+
+    public void setCnAreaname(String cnAreaname) 
+    {
+        this.cnAreaname = cnAreaname;
+    }
+
+    public String getCnAreaname() 
+    {
+        return cnAreaname;
+    }
+
+    public void setSeq(Long seq) 
+    {
+        this.seq = seq;
+    }
+
+    public Long getSeq() 
+    {
+        return seq;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("name", getName())
+            .append("status", getStatus())
+            .append("level", getLevel())
+            .append("cnAreanId", getCnAreanId())
+            .append("cnAreaname", getCnAreaname())
+            .append("seq", getSeq())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

+ 147 - 0
healsphere-buss/src/main/java/com/zdqz/sample/domain/SampleInfo.java

@@ -0,0 +1,147 @@
+package com.zdqz.sample.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.zdqz.common.annotation.Excel;
+import com.zdqz.common.core.domain.BaseEntity;
+
+/**
+ * 样品管理对象 sample_info
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+public class SampleInfo extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 编号 */
+    private Long id;
+
+    /** 实验编号 */
+    @Excel(name = "实验编号")
+    private String experimentId;
+
+    /** 患者编号 */
+    @Excel(name = "患者编号")
+    private Long patientId;
+
+    /** 患者电话 */
+    @Excel(name = "患者电话")
+    private String patientPhone;
+
+    /** 样本类型 */
+    @Excel(name = "样本类型")
+    private Long sampleTypeId;
+
+    /** 送检医院 */
+    @Excel(name = "送检医院")
+    private Long sampleHospitalId;
+
+    /** 送检科室 */
+    @Excel(name = "送检科室")
+    private Long sampleDeptId;
+
+    /** 医生名字 */
+    @Excel(name = "医生名字")
+    private String doctorName;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+
+    public void setExperimentId(String experimentId) 
+    {
+        this.experimentId = experimentId;
+    }
+
+    public String getExperimentId() 
+    {
+        return experimentId;
+    }
+
+    public void setPatientId(Long patientId) 
+    {
+        this.patientId = patientId;
+    }
+
+    public Long getPatientId() 
+    {
+        return patientId;
+    }
+
+    public void setPatientPhone(String patientPhone) 
+    {
+        this.patientPhone = patientPhone;
+    }
+
+    public String getPatientPhone() 
+    {
+        return patientPhone;
+    }
+
+    public void setSampleTypeId(Long sampleTypeId) 
+    {
+        this.sampleTypeId = sampleTypeId;
+    }
+
+    public Long getSampleTypeId() 
+    {
+        return sampleTypeId;
+    }
+
+    public void setSampleHospitalId(Long sampleHospitalId) 
+    {
+        this.sampleHospitalId = sampleHospitalId;
+    }
+
+    public Long getSampleHospitalId() 
+    {
+        return sampleHospitalId;
+    }
+
+    public void setSampleDeptId(Long sampleDeptId) 
+    {
+        this.sampleDeptId = sampleDeptId;
+    }
+
+    public Long getSampleDeptId() 
+    {
+        return sampleDeptId;
+    }
+
+    public void setDoctorName(String doctorName) 
+    {
+        this.doctorName = doctorName;
+    }
+
+    public String getDoctorName() 
+    {
+        return doctorName;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("experimentId", getExperimentId())
+            .append("patientId", getPatientId())
+            .append("patientPhone", getPatientPhone())
+            .append("sampleTypeId", getSampleTypeId())
+            .append("sampleHospitalId", getSampleHospitalId())
+            .append("sampleDeptId", getSampleDeptId())
+            .append("doctorName", getDoctorName())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

ファイルの差分が大きいため隠しています
+ 1017 - 0
healsphere-buss/src/main/java/com/zdqz/sample/domain/SamplePatient.java


+ 87 - 0
healsphere-buss/src/main/java/com/zdqz/sample/domain/SampleType.java

@@ -0,0 +1,87 @@
+package com.zdqz.sample.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.zdqz.common.annotation.Excel;
+import com.zdqz.common.core.domain.BaseEntity;
+
+/**
+ * 样本类型对象 sample_type
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+public class SampleType extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 编号 */
+    private Long id;
+
+    /** 名称 */
+    @Excel(name = "名称")
+    private String name;
+
+    /** 状态 */
+    @Excel(name = "状态")
+    private Long status;
+
+    /** 排序号 */
+    @Excel(name = "排序号")
+    private Long seq;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+
+    public void setName(String name) 
+    {
+        this.name = name;
+    }
+
+    public String getName() 
+    {
+        return name;
+    }
+
+    public void setStatus(Long status) 
+    {
+        this.status = status;
+    }
+
+    public Long getStatus() 
+    {
+        return status;
+    }
+
+    public void setSeq(Long seq) 
+    {
+        this.seq = seq;
+    }
+
+    public Long getSeq() 
+    {
+        return seq;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("name", getName())
+            .append("status", getStatus())
+            .append("seq", getSeq())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

+ 61 - 0
healsphere-buss/src/main/java/com/zdqz/sample/mapper/SampleDeptMapper.java

@@ -0,0 +1,61 @@
+package com.zdqz.sample.mapper;
+
+import java.util.List;
+import com.zdqz.sample.domain.SampleDept;
+
+/**
+ * 送检科室Mapper接口
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+public interface SampleDeptMapper 
+{
+    /**
+     * 查询送检科室
+     * 
+     * @param id 送检科室主键
+     * @return 送检科室
+     */
+    public SampleDept selectSampleDeptById(Long id);
+
+    /**
+     * 查询送检科室列表
+     * 
+     * @param sampleDept 送检科室
+     * @return 送检科室集合
+     */
+    public List<SampleDept> selectSampleDeptList(SampleDept sampleDept);
+
+    /**
+     * 新增送检科室
+     * 
+     * @param sampleDept 送检科室
+     * @return 结果
+     */
+    public int insertSampleDept(SampleDept sampleDept);
+
+    /**
+     * 修改送检科室
+     * 
+     * @param sampleDept 送检科室
+     * @return 结果
+     */
+    public int updateSampleDept(SampleDept sampleDept);
+
+    /**
+     * 删除送检科室
+     * 
+     * @param id 送检科室主键
+     * @return 结果
+     */
+    public int deleteSampleDeptById(Long id);
+
+    /**
+     * 批量删除送检科室
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteSampleDeptByIds(Long[] ids);
+}

+ 61 - 0
healsphere-buss/src/main/java/com/zdqz/sample/mapper/SampleHospitalMapper.java

@@ -0,0 +1,61 @@
+package com.zdqz.sample.mapper;
+
+import java.util.List;
+import com.zdqz.sample.domain.SampleHospital;
+
+/**
+ * 送检医院Mapper接口
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+public interface SampleHospitalMapper 
+{
+    /**
+     * 查询送检医院
+     * 
+     * @param id 送检医院主键
+     * @return 送检医院
+     */
+    public SampleHospital selectSampleHospitalById(Long id);
+
+    /**
+     * 查询送检医院列表
+     * 
+     * @param sampleHospital 送检医院
+     * @return 送检医院集合
+     */
+    public List<SampleHospital> selectSampleHospitalList(SampleHospital sampleHospital);
+
+    /**
+     * 新增送检医院
+     * 
+     * @param sampleHospital 送检医院
+     * @return 结果
+     */
+    public int insertSampleHospital(SampleHospital sampleHospital);
+
+    /**
+     * 修改送检医院
+     * 
+     * @param sampleHospital 送检医院
+     * @return 结果
+     */
+    public int updateSampleHospital(SampleHospital sampleHospital);
+
+    /**
+     * 删除送检医院
+     * 
+     * @param id 送检医院主键
+     * @return 结果
+     */
+    public int deleteSampleHospitalById(Long id);
+
+    /**
+     * 批量删除送检医院
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteSampleHospitalByIds(Long[] ids);
+}

+ 61 - 0
healsphere-buss/src/main/java/com/zdqz/sample/mapper/SampleInfoMapper.java

@@ -0,0 +1,61 @@
+package com.zdqz.sample.mapper;
+
+import java.util.List;
+import com.zdqz.sample.domain.SampleInfo;
+
+/**
+ * 样品管理Mapper接口
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+public interface SampleInfoMapper 
+{
+    /**
+     * 查询样品管理
+     * 
+     * @param id 样品管理主键
+     * @return 样品管理
+     */
+    public SampleInfo selectSampleInfoById(Long id);
+
+    /**
+     * 查询样品管理列表
+     * 
+     * @param sampleInfo 样品管理
+     * @return 样品管理集合
+     */
+    public List<SampleInfo> selectSampleInfoList(SampleInfo sampleInfo);
+
+    /**
+     * 新增样品管理
+     * 
+     * @param sampleInfo 样品管理
+     * @return 结果
+     */
+    public int insertSampleInfo(SampleInfo sampleInfo);
+
+    /**
+     * 修改样品管理
+     * 
+     * @param sampleInfo 样品管理
+     * @return 结果
+     */
+    public int updateSampleInfo(SampleInfo sampleInfo);
+
+    /**
+     * 删除样品管理
+     * 
+     * @param id 样品管理主键
+     * @return 结果
+     */
+    public int deleteSampleInfoById(Long id);
+
+    /**
+     * 批量删除样品管理
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteSampleInfoByIds(Long[] ids);
+}

+ 61 - 0
healsphere-buss/src/main/java/com/zdqz/sample/mapper/SamplePatientMapper.java

@@ -0,0 +1,61 @@
+package com.zdqz.sample.mapper;
+
+import java.util.List;
+import com.zdqz.sample.domain.SamplePatient;
+
+/**
+ * 样品患者信息Mapper接口
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+public interface SamplePatientMapper 
+{
+    /**
+     * 查询样品患者信息
+     * 
+     * @param id 样品患者信息主键
+     * @return 样品患者信息
+     */
+    public SamplePatient selectSamplePatientById(Long id);
+
+    /**
+     * 查询样品患者信息列表
+     * 
+     * @param samplePatient 样品患者信息
+     * @return 样品患者信息集合
+     */
+    public List<SamplePatient> selectSamplePatientList(SamplePatient samplePatient);
+
+    /**
+     * 新增样品患者信息
+     * 
+     * @param samplePatient 样品患者信息
+     * @return 结果
+     */
+    public int insertSamplePatient(SamplePatient samplePatient);
+
+    /**
+     * 修改样品患者信息
+     * 
+     * @param samplePatient 样品患者信息
+     * @return 结果
+     */
+    public int updateSamplePatient(SamplePatient samplePatient);
+
+    /**
+     * 删除样品患者信息
+     * 
+     * @param id 样品患者信息主键
+     * @return 结果
+     */
+    public int deleteSamplePatientById(Long id);
+
+    /**
+     * 批量删除样品患者信息
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteSamplePatientByIds(Long[] ids);
+}

+ 61 - 0
healsphere-buss/src/main/java/com/zdqz/sample/mapper/SampleTypeMapper.java

@@ -0,0 +1,61 @@
+package com.zdqz.sample.mapper;
+
+import java.util.List;
+import com.zdqz.sample.domain.SampleType;
+
+/**
+ * 样本类型Mapper接口
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+public interface SampleTypeMapper 
+{
+    /**
+     * 查询样本类型
+     * 
+     * @param id 样本类型主键
+     * @return 样本类型
+     */
+    public SampleType selectSampleTypeById(Long id);
+
+    /**
+     * 查询样本类型列表
+     * 
+     * @param sampleType 样本类型
+     * @return 样本类型集合
+     */
+    public List<SampleType> selectSampleTypeList(SampleType sampleType);
+
+    /**
+     * 新增样本类型
+     * 
+     * @param sampleType 样本类型
+     * @return 结果
+     */
+    public int insertSampleType(SampleType sampleType);
+
+    /**
+     * 修改样本类型
+     * 
+     * @param sampleType 样本类型
+     * @return 结果
+     */
+    public int updateSampleType(SampleType sampleType);
+
+    /**
+     * 删除样本类型
+     * 
+     * @param id 样本类型主键
+     * @return 结果
+     */
+    public int deleteSampleTypeById(Long id);
+
+    /**
+     * 批量删除样本类型
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteSampleTypeByIds(Long[] ids);
+}

+ 61 - 0
healsphere-buss/src/main/java/com/zdqz/sample/service/ISampleDeptService.java

@@ -0,0 +1,61 @@
+package com.zdqz.sample.service;
+
+import java.util.List;
+import com.zdqz.sample.domain.SampleDept;
+
+/**
+ * 送检科室Service接口
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+public interface ISampleDeptService 
+{
+    /**
+     * 查询送检科室
+     * 
+     * @param id 送检科室主键
+     * @return 送检科室
+     */
+    public SampleDept selectSampleDeptById(Long id);
+
+    /**
+     * 查询送检科室列表
+     * 
+     * @param sampleDept 送检科室
+     * @return 送检科室集合
+     */
+    public List<SampleDept> selectSampleDeptList(SampleDept sampleDept);
+
+    /**
+     * 新增送检科室
+     * 
+     * @param sampleDept 送检科室
+     * @return 结果
+     */
+    public int insertSampleDept(SampleDept sampleDept);
+
+    /**
+     * 修改送检科室
+     * 
+     * @param sampleDept 送检科室
+     * @return 结果
+     */
+    public int updateSampleDept(SampleDept sampleDept);
+
+    /**
+     * 批量删除送检科室
+     * 
+     * @param ids 需要删除的送检科室主键集合
+     * @return 结果
+     */
+    public int deleteSampleDeptByIds(Long[] ids);
+
+    /**
+     * 删除送检科室信息
+     * 
+     * @param id 送检科室主键
+     * @return 结果
+     */
+    public int deleteSampleDeptById(Long id);
+}

+ 61 - 0
healsphere-buss/src/main/java/com/zdqz/sample/service/ISampleHospitalService.java

@@ -0,0 +1,61 @@
+package com.zdqz.sample.service;
+
+import java.util.List;
+import com.zdqz.sample.domain.SampleHospital;
+
+/**
+ * 送检医院Service接口
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+public interface ISampleHospitalService 
+{
+    /**
+     * 查询送检医院
+     * 
+     * @param id 送检医院主键
+     * @return 送检医院
+     */
+    public SampleHospital selectSampleHospitalById(Long id);
+
+    /**
+     * 查询送检医院列表
+     * 
+     * @param sampleHospital 送检医院
+     * @return 送检医院集合
+     */
+    public List<SampleHospital> selectSampleHospitalList(SampleHospital sampleHospital);
+
+    /**
+     * 新增送检医院
+     * 
+     * @param sampleHospital 送检医院
+     * @return 结果
+     */
+    public int insertSampleHospital(SampleHospital sampleHospital);
+
+    /**
+     * 修改送检医院
+     * 
+     * @param sampleHospital 送检医院
+     * @return 结果
+     */
+    public int updateSampleHospital(SampleHospital sampleHospital);
+
+    /**
+     * 批量删除送检医院
+     * 
+     * @param ids 需要删除的送检医院主键集合
+     * @return 结果
+     */
+    public int deleteSampleHospitalByIds(Long[] ids);
+
+    /**
+     * 删除送检医院信息
+     * 
+     * @param id 送检医院主键
+     * @return 结果
+     */
+    public int deleteSampleHospitalById(Long id);
+}

+ 61 - 0
healsphere-buss/src/main/java/com/zdqz/sample/service/ISampleInfoService.java

@@ -0,0 +1,61 @@
+package com.zdqz.sample.service;
+
+import java.util.List;
+import com.zdqz.sample.domain.SampleInfo;
+
+/**
+ * 样品管理Service接口
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+public interface ISampleInfoService 
+{
+    /**
+     * 查询样品管理
+     * 
+     * @param id 样品管理主键
+     * @return 样品管理
+     */
+    public SampleInfo selectSampleInfoById(Long id);
+
+    /**
+     * 查询样品管理列表
+     * 
+     * @param sampleInfo 样品管理
+     * @return 样品管理集合
+     */
+    public List<SampleInfo> selectSampleInfoList(SampleInfo sampleInfo);
+
+    /**
+     * 新增样品管理
+     * 
+     * @param sampleInfo 样品管理
+     * @return 结果
+     */
+    public int insertSampleInfo(SampleInfo sampleInfo);
+
+    /**
+     * 修改样品管理
+     * 
+     * @param sampleInfo 样品管理
+     * @return 结果
+     */
+    public int updateSampleInfo(SampleInfo sampleInfo);
+
+    /**
+     * 批量删除样品管理
+     * 
+     * @param ids 需要删除的样品管理主键集合
+     * @return 结果
+     */
+    public int deleteSampleInfoByIds(Long[] ids);
+
+    /**
+     * 删除样品管理信息
+     * 
+     * @param id 样品管理主键
+     * @return 结果
+     */
+    public int deleteSampleInfoById(Long id);
+}

+ 61 - 0
healsphere-buss/src/main/java/com/zdqz/sample/service/ISamplePatientService.java

@@ -0,0 +1,61 @@
+package com.zdqz.sample.service;
+
+import java.util.List;
+import com.zdqz.sample.domain.SamplePatient;
+
+/**
+ * 样品患者信息Service接口
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+public interface ISamplePatientService 
+{
+    /**
+     * 查询样品患者信息
+     * 
+     * @param id 样品患者信息主键
+     * @return 样品患者信息
+     */
+    public SamplePatient selectSamplePatientById(Long id);
+
+    /**
+     * 查询样品患者信息列表
+     * 
+     * @param samplePatient 样品患者信息
+     * @return 样品患者信息集合
+     */
+    public List<SamplePatient> selectSamplePatientList(SamplePatient samplePatient);
+
+    /**
+     * 新增样品患者信息
+     * 
+     * @param samplePatient 样品患者信息
+     * @return 结果
+     */
+    public int insertSamplePatient(SamplePatient samplePatient);
+
+    /**
+     * 修改样品患者信息
+     * 
+     * @param samplePatient 样品患者信息
+     * @return 结果
+     */
+    public int updateSamplePatient(SamplePatient samplePatient);
+
+    /**
+     * 批量删除样品患者信息
+     * 
+     * @param ids 需要删除的样品患者信息主键集合
+     * @return 结果
+     */
+    public int deleteSamplePatientByIds(Long[] ids);
+
+    /**
+     * 删除样品患者信息信息
+     * 
+     * @param id 样品患者信息主键
+     * @return 结果
+     */
+    public int deleteSamplePatientById(Long id);
+}

+ 61 - 0
healsphere-buss/src/main/java/com/zdqz/sample/service/ISampleTypeService.java

@@ -0,0 +1,61 @@
+package com.zdqz.sample.service;
+
+import java.util.List;
+import com.zdqz.sample.domain.SampleType;
+
+/**
+ * 样本类型Service接口
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+public interface ISampleTypeService 
+{
+    /**
+     * 查询样本类型
+     * 
+     * @param id 样本类型主键
+     * @return 样本类型
+     */
+    public SampleType selectSampleTypeById(Long id);
+
+    /**
+     * 查询样本类型列表
+     * 
+     * @param sampleType 样本类型
+     * @return 样本类型集合
+     */
+    public List<SampleType> selectSampleTypeList(SampleType sampleType);
+
+    /**
+     * 新增样本类型
+     * 
+     * @param sampleType 样本类型
+     * @return 结果
+     */
+    public int insertSampleType(SampleType sampleType);
+
+    /**
+     * 修改样本类型
+     * 
+     * @param sampleType 样本类型
+     * @return 结果
+     */
+    public int updateSampleType(SampleType sampleType);
+
+    /**
+     * 批量删除样本类型
+     * 
+     * @param ids 需要删除的样本类型主键集合
+     * @return 结果
+     */
+    public int deleteSampleTypeByIds(Long[] ids);
+
+    /**
+     * 删除样本类型信息
+     * 
+     * @param id 样本类型主键
+     * @return 结果
+     */
+    public int deleteSampleTypeById(Long id);
+}

+ 96 - 0
healsphere-buss/src/main/java/com/zdqz/sample/service/impl/SampleDeptServiceImpl.java

@@ -0,0 +1,96 @@
+package com.zdqz.sample.service.impl;
+
+import java.util.List;
+import com.zdqz.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.zdqz.sample.mapper.SampleDeptMapper;
+import com.zdqz.sample.domain.SampleDept;
+import com.zdqz.sample.service.ISampleDeptService;
+
+/**
+ * 送检科室Service业务层处理
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+@Service
+public class SampleDeptServiceImpl implements ISampleDeptService 
+{
+    @Autowired
+    private SampleDeptMapper sampleDeptMapper;
+
+    /**
+     * 查询送检科室
+     * 
+     * @param id 送检科室主键
+     * @return 送检科室
+     */
+    @Override
+    public SampleDept selectSampleDeptById(Long id)
+    {
+        return sampleDeptMapper.selectSampleDeptById(id);
+    }
+
+    /**
+     * 查询送检科室列表
+     * 
+     * @param sampleDept 送检科室
+     * @return 送检科室
+     */
+    @Override
+    public List<SampleDept> selectSampleDeptList(SampleDept sampleDept)
+    {
+        return sampleDeptMapper.selectSampleDeptList(sampleDept);
+    }
+
+    /**
+     * 新增送检科室
+     * 
+     * @param sampleDept 送检科室
+     * @return 结果
+     */
+    @Override
+    public int insertSampleDept(SampleDept sampleDept)
+    {
+        sampleDept.setCreateTime(DateUtils.getNowDate());
+        return sampleDeptMapper.insertSampleDept(sampleDept);
+    }
+
+    /**
+     * 修改送检科室
+     * 
+     * @param sampleDept 送检科室
+     * @return 结果
+     */
+    @Override
+    public int updateSampleDept(SampleDept sampleDept)
+    {
+        sampleDept.setUpdateTime(DateUtils.getNowDate());
+        return sampleDeptMapper.updateSampleDept(sampleDept);
+    }
+
+    /**
+     * 批量删除送检科室
+     * 
+     * @param ids 需要删除的送检科室主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSampleDeptByIds(Long[] ids)
+    {
+        return sampleDeptMapper.deleteSampleDeptByIds(ids);
+    }
+
+    /**
+     * 删除送检科室信息
+     * 
+     * @param id 送检科室主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSampleDeptById(Long id)
+    {
+        return sampleDeptMapper.deleteSampleDeptById(id);
+    }
+}

+ 96 - 0
healsphere-buss/src/main/java/com/zdqz/sample/service/impl/SampleHospitalServiceImpl.java

@@ -0,0 +1,96 @@
+package com.zdqz.sample.service.impl;
+
+import java.util.List;
+import com.zdqz.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.zdqz.sample.mapper.SampleHospitalMapper;
+import com.zdqz.sample.domain.SampleHospital;
+import com.zdqz.sample.service.ISampleHospitalService;
+
+/**
+ * 送检医院Service业务层处理
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+@Service
+public class SampleHospitalServiceImpl implements ISampleHospitalService 
+{
+    @Autowired
+    private SampleHospitalMapper sampleHospitalMapper;
+
+    /**
+     * 查询送检医院
+     * 
+     * @param id 送检医院主键
+     * @return 送检医院
+     */
+    @Override
+    public SampleHospital selectSampleHospitalById(Long id)
+    {
+        return sampleHospitalMapper.selectSampleHospitalById(id);
+    }
+
+    /**
+     * 查询送检医院列表
+     * 
+     * @param sampleHospital 送检医院
+     * @return 送检医院
+     */
+    @Override
+    public List<SampleHospital> selectSampleHospitalList(SampleHospital sampleHospital)
+    {
+        return sampleHospitalMapper.selectSampleHospitalList(sampleHospital);
+    }
+
+    /**
+     * 新增送检医院
+     * 
+     * @param sampleHospital 送检医院
+     * @return 结果
+     */
+    @Override
+    public int insertSampleHospital(SampleHospital sampleHospital)
+    {
+        sampleHospital.setCreateTime(DateUtils.getNowDate());
+        return sampleHospitalMapper.insertSampleHospital(sampleHospital);
+    }
+
+    /**
+     * 修改送检医院
+     * 
+     * @param sampleHospital 送检医院
+     * @return 结果
+     */
+    @Override
+    public int updateSampleHospital(SampleHospital sampleHospital)
+    {
+        sampleHospital.setUpdateTime(DateUtils.getNowDate());
+        return sampleHospitalMapper.updateSampleHospital(sampleHospital);
+    }
+
+    /**
+     * 批量删除送检医院
+     * 
+     * @param ids 需要删除的送检医院主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSampleHospitalByIds(Long[] ids)
+    {
+        return sampleHospitalMapper.deleteSampleHospitalByIds(ids);
+    }
+
+    /**
+     * 删除送检医院信息
+     * 
+     * @param id 送检医院主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSampleHospitalById(Long id)
+    {
+        return sampleHospitalMapper.deleteSampleHospitalById(id);
+    }
+}

+ 96 - 0
healsphere-buss/src/main/java/com/zdqz/sample/service/impl/SampleInfoServiceImpl.java

@@ -0,0 +1,96 @@
+package com.zdqz.sample.service.impl;
+
+import java.util.List;
+import com.zdqz.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.zdqz.sample.mapper.SampleInfoMapper;
+import com.zdqz.sample.domain.SampleInfo;
+import com.zdqz.sample.service.ISampleInfoService;
+
+/**
+ * 样品管理Service业务层处理
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+@Service
+public class SampleInfoServiceImpl implements ISampleInfoService 
+{
+    @Autowired
+    private SampleInfoMapper sampleInfoMapper;
+
+    /**
+     * 查询样品管理
+     * 
+     * @param id 样品管理主键
+     * @return 样品管理
+     */
+    @Override
+    public SampleInfo selectSampleInfoById(Long id)
+    {
+        return sampleInfoMapper.selectSampleInfoById(id);
+    }
+
+    /**
+     * 查询样品管理列表
+     * 
+     * @param sampleInfo 样品管理
+     * @return 样品管理
+     */
+    @Override
+    public List<SampleInfo> selectSampleInfoList(SampleInfo sampleInfo)
+    {
+        return sampleInfoMapper.selectSampleInfoList(sampleInfo);
+    }
+
+    /**
+     * 新增样品管理
+     * 
+     * @param sampleInfo 样品管理
+     * @return 结果
+     */
+    @Override
+    public int insertSampleInfo(SampleInfo sampleInfo)
+    {
+        sampleInfo.setCreateTime(DateUtils.getNowDate());
+        return sampleInfoMapper.insertSampleInfo(sampleInfo);
+    }
+
+    /**
+     * 修改样品管理
+     * 
+     * @param sampleInfo 样品管理
+     * @return 结果
+     */
+    @Override
+    public int updateSampleInfo(SampleInfo sampleInfo)
+    {
+        sampleInfo.setUpdateTime(DateUtils.getNowDate());
+        return sampleInfoMapper.updateSampleInfo(sampleInfo);
+    }
+
+    /**
+     * 批量删除样品管理
+     * 
+     * @param ids 需要删除的样品管理主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSampleInfoByIds(Long[] ids)
+    {
+        return sampleInfoMapper.deleteSampleInfoByIds(ids);
+    }
+
+    /**
+     * 删除样品管理信息
+     * 
+     * @param id 样品管理主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSampleInfoById(Long id)
+    {
+        return sampleInfoMapper.deleteSampleInfoById(id);
+    }
+}

+ 96 - 0
healsphere-buss/src/main/java/com/zdqz/sample/service/impl/SamplePatientServiceImpl.java

@@ -0,0 +1,96 @@
+package com.zdqz.sample.service.impl;
+
+import java.util.List;
+import com.zdqz.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.zdqz.sample.mapper.SamplePatientMapper;
+import com.zdqz.sample.domain.SamplePatient;
+import com.zdqz.sample.service.ISamplePatientService;
+
+/**
+ * 样品患者信息Service业务层处理
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+@Service
+public class SamplePatientServiceImpl implements ISamplePatientService 
+{
+    @Autowired
+    private SamplePatientMapper samplePatientMapper;
+
+    /**
+     * 查询样品患者信息
+     * 
+     * @param id 样品患者信息主键
+     * @return 样品患者信息
+     */
+    @Override
+    public SamplePatient selectSamplePatientById(Long id)
+    {
+        return samplePatientMapper.selectSamplePatientById(id);
+    }
+
+    /**
+     * 查询样品患者信息列表
+     * 
+     * @param samplePatient 样品患者信息
+     * @return 样品患者信息
+     */
+    @Override
+    public List<SamplePatient> selectSamplePatientList(SamplePatient samplePatient)
+    {
+        return samplePatientMapper.selectSamplePatientList(samplePatient);
+    }
+
+    /**
+     * 新增样品患者信息
+     * 
+     * @param samplePatient 样品患者信息
+     * @return 结果
+     */
+    @Override
+    public int insertSamplePatient(SamplePatient samplePatient)
+    {
+        samplePatient.setCreateTime(DateUtils.getNowDate());
+        return samplePatientMapper.insertSamplePatient(samplePatient);
+    }
+
+    /**
+     * 修改样品患者信息
+     * 
+     * @param samplePatient 样品患者信息
+     * @return 结果
+     */
+    @Override
+    public int updateSamplePatient(SamplePatient samplePatient)
+    {
+        samplePatient.setUpdateTime(DateUtils.getNowDate());
+        return samplePatientMapper.updateSamplePatient(samplePatient);
+    }
+
+    /**
+     * 批量删除样品患者信息
+     * 
+     * @param ids 需要删除的样品患者信息主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSamplePatientByIds(Long[] ids)
+    {
+        return samplePatientMapper.deleteSamplePatientByIds(ids);
+    }
+
+    /**
+     * 删除样品患者信息信息
+     * 
+     * @param id 样品患者信息主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSamplePatientById(Long id)
+    {
+        return samplePatientMapper.deleteSamplePatientById(id);
+    }
+}

+ 96 - 0
healsphere-buss/src/main/java/com/zdqz/sample/service/impl/SampleTypeServiceImpl.java

@@ -0,0 +1,96 @@
+package com.zdqz.sample.service.impl;
+
+import java.util.List;
+import com.zdqz.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.zdqz.sample.mapper.SampleTypeMapper;
+import com.zdqz.sample.domain.SampleType;
+import com.zdqz.sample.service.ISampleTypeService;
+
+/**
+ * 样本类型Service业务层处理
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-04
+ */
+@Service
+public class SampleTypeServiceImpl implements ISampleTypeService 
+{
+    @Autowired
+    private SampleTypeMapper sampleTypeMapper;
+
+    /**
+     * 查询样本类型
+     * 
+     * @param id 样本类型主键
+     * @return 样本类型
+     */
+    @Override
+    public SampleType selectSampleTypeById(Long id)
+    {
+        return sampleTypeMapper.selectSampleTypeById(id);
+    }
+
+    /**
+     * 查询样本类型列表
+     * 
+     * @param sampleType 样本类型
+     * @return 样本类型
+     */
+    @Override
+    public List<SampleType> selectSampleTypeList(SampleType sampleType)
+    {
+        return sampleTypeMapper.selectSampleTypeList(sampleType);
+    }
+
+    /**
+     * 新增样本类型
+     * 
+     * @param sampleType 样本类型
+     * @return 结果
+     */
+    @Override
+    public int insertSampleType(SampleType sampleType)
+    {
+        sampleType.setCreateTime(DateUtils.getNowDate());
+        return sampleTypeMapper.insertSampleType(sampleType);
+    }
+
+    /**
+     * 修改样本类型
+     * 
+     * @param sampleType 样本类型
+     * @return 结果
+     */
+    @Override
+    public int updateSampleType(SampleType sampleType)
+    {
+        sampleType.setUpdateTime(DateUtils.getNowDate());
+        return sampleTypeMapper.updateSampleType(sampleType);
+    }
+
+    /**
+     * 批量删除样本类型
+     * 
+     * @param ids 需要删除的样本类型主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSampleTypeByIds(Long[] ids)
+    {
+        return sampleTypeMapper.deleteSampleTypeByIds(ids);
+    }
+
+    /**
+     * 删除样本类型信息
+     * 
+     * @param id 样本类型主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSampleTypeById(Long id)
+    {
+        return sampleTypeMapper.deleteSampleTypeById(id);
+    }
+}

+ 104 - 0
healsphere-buss/src/main/java/com/zdqz/system/controller/SysAreaController.java

@@ -0,0 +1,104 @@
+package com.zdqz.system.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.zdqz.common.annotation.Log;
+import com.zdqz.common.core.controller.BaseController;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.enums.BusinessType;
+import com.zdqz.system.domain.SysArea;
+import com.zdqz.system.service.ISysAreaService;
+import com.zdqz.common.utils.poi.ExcelUtil;
+import com.zdqz.common.core.page.TableDataInfo;
+
+/**
+ * 世界国家区域Controller
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-03
+ */
+@RestController
+@RequestMapping("/system/area")
+public class SysAreaController extends BaseController
+{
+    @Autowired
+    private ISysAreaService sysAreaService;
+
+    /**
+     * 查询世界国家区域列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:area:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(SysArea sysArea)
+    {
+        startPage();
+        List<SysArea> list = sysAreaService.selectSysAreaList(sysArea);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出世界国家区域列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:area:export')")
+    @Log(title = "世界国家区域", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, SysArea sysArea)
+    {
+        List<SysArea> list = sysAreaService.selectSysAreaList(sysArea);
+        ExcelUtil<SysArea> util = new ExcelUtil<SysArea>(SysArea.class);
+        util.exportExcel(response, list, "世界国家区域数据");
+    }
+
+    /**
+     * 获取世界国家区域详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:area:query')")
+    @GetMapping(value = "/{areaId}")
+    public AjaxResult getInfo(@PathVariable("areaId") String areaId)
+    {
+        return success(sysAreaService.selectSysAreaByAreaId(areaId));
+    }
+
+    /**
+     * 新增世界国家区域
+     */
+    @PreAuthorize("@ss.hasPermi('system:area:add')")
+    @Log(title = "世界国家区域", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody SysArea sysArea)
+    {
+        return toAjax(sysAreaService.insertSysArea(sysArea));
+    }
+
+    /**
+     * 修改世界国家区域
+     */
+    @PreAuthorize("@ss.hasPermi('system:area:edit')")
+    @Log(title = "世界国家区域", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody SysArea sysArea)
+    {
+        return toAjax(sysAreaService.updateSysArea(sysArea));
+    }
+
+    /**
+     * 删除世界国家区域
+     */
+    @PreAuthorize("@ss.hasPermi('system:area:remove')")
+    @Log(title = "世界国家区域", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{areaIds}")
+    public AjaxResult remove(@PathVariable String[] areaIds)
+    {
+        return toAjax(sysAreaService.deleteSysAreaByAreaIds(areaIds));
+    }
+}

+ 104 - 0
healsphere-buss/src/main/java/com/zdqz/system/controller/SysCnareaController.java

@@ -0,0 +1,104 @@
+package com.zdqz.system.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.zdqz.common.annotation.Log;
+import com.zdqz.common.core.controller.BaseController;
+import com.zdqz.common.core.domain.AjaxResult;
+import com.zdqz.common.enums.BusinessType;
+import com.zdqz.system.domain.SysCnarea;
+import com.zdqz.system.service.ISysCnareaService;
+import com.zdqz.common.utils.poi.ExcelUtil;
+import com.zdqz.common.core.page.TableDataInfo;
+
+/**
+ * 中国行政区域Controller
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-03
+ */
+@RestController
+@RequestMapping("/system/cnarea")
+public class SysCnareaController extends BaseController
+{
+    @Autowired
+    private ISysCnareaService sysCnareaService;
+
+    /**
+     * 查询中国行政区域列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:cnarea:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(SysCnarea sysCnarea)
+    {
+        startPage();
+        List<SysCnarea> list = sysCnareaService.selectSysCnareaList(sysCnarea);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出中国行政区域列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:cnarea:export')")
+    @Log(title = "中国行政区域", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, SysCnarea sysCnarea)
+    {
+        List<SysCnarea> list = sysCnareaService.selectSysCnareaList(sysCnarea);
+        ExcelUtil<SysCnarea> util = new ExcelUtil<SysCnarea>(SysCnarea.class);
+        util.exportExcel(response, list, "中国行政区域数据");
+    }
+
+    /**
+     * 获取中国行政区域详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:cnarea:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") String id)
+    {
+        return success(sysCnareaService.selectSysCnareaById(id));
+    }
+
+    /**
+     * 新增中国行政区域
+     */
+    @PreAuthorize("@ss.hasPermi('system:cnarea:add')")
+    @Log(title = "中国行政区域", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody SysCnarea sysCnarea)
+    {
+        return toAjax(sysCnareaService.insertSysCnarea(sysCnarea));
+    }
+
+    /**
+     * 修改中国行政区域
+     */
+    @PreAuthorize("@ss.hasPermi('system:cnarea:edit')")
+    @Log(title = "中国行政区域", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody SysCnarea sysCnarea)
+    {
+        return toAjax(sysCnareaService.updateSysCnarea(sysCnarea));
+    }
+
+    /**
+     * 删除中国行政区域
+     */
+    @PreAuthorize("@ss.hasPermi('system:cnarea:remove')")
+    @Log(title = "中国行政区域", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable String[] ids)
+    {
+        return toAjax(sysCnareaService.deleteSysCnareaByIds(ids));
+    }
+}

+ 142 - 0
healsphere-buss/src/main/java/com/zdqz/system/domain/SysArea.java

@@ -0,0 +1,142 @@
+package com.zdqz.system.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.zdqz.common.annotation.Excel;
+import com.zdqz.common.core.domain.BaseEntity;
+
+/**
+ * 世界国家区域对象 sys_area
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-03
+ */
+public class SysArea extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 编号 */
+    private String areaId;
+
+    /** 父编号 */
+    @Excel(name = "父编号")
+    private String areaParentId;
+
+    /** 路径 */
+    @Excel(name = "路径")
+    private String path;
+
+    /** 层级 */
+    @Excel(name = "层级")
+    private String areaDeep;
+
+    /** 中文名称 */
+    @Excel(name = "中文名称")
+    private String areaName;
+
+    /** 英文名称 */
+    @Excel(name = "英文名称")
+    private String nameEn;
+
+    /** 中文拼音 */
+    @Excel(name = "中文拼音")
+    private String namePinyin;
+
+    /** 代码 */
+    @Excel(name = "代码")
+    private String code;
+
+    public void setAreaId(String areaId) 
+    {
+        this.areaId = areaId;
+    }
+
+    public String getAreaId() 
+    {
+        return areaId;
+    }
+
+    public void setAreaParentId(String areaParentId) 
+    {
+        this.areaParentId = areaParentId;
+    }
+
+    public String getAreaParentId() 
+    {
+        return areaParentId;
+    }
+
+    public void setPath(String path) 
+    {
+        this.path = path;
+    }
+
+    public String getPath() 
+    {
+        return path;
+    }
+
+    public void setAreaDeep(String areaDeep) 
+    {
+        this.areaDeep = areaDeep;
+    }
+
+    public String getAreaDeep() 
+    {
+        return areaDeep;
+    }
+
+    public void setAreaName(String areaName) 
+    {
+        this.areaName = areaName;
+    }
+
+    public String getAreaName() 
+    {
+        return areaName;
+    }
+
+    public void setNameEn(String nameEn) 
+    {
+        this.nameEn = nameEn;
+    }
+
+    public String getNameEn() 
+    {
+        return nameEn;
+    }
+
+    public void setNamePinyin(String namePinyin) 
+    {
+        this.namePinyin = namePinyin;
+    }
+
+    public String getNamePinyin() 
+    {
+        return namePinyin;
+    }
+
+    public void setCode(String code) 
+    {
+        this.code = code;
+    }
+
+    public String getCode() 
+    {
+        return code;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("areaId", getAreaId())
+            .append("areaParentId", getAreaParentId())
+            .append("path", getPath())
+            .append("areaDeep", getAreaDeep())
+            .append("areaName", getAreaName())
+            .append("nameEn", getNameEn())
+            .append("namePinyin", getNamePinyin())
+            .append("code", getCode())
+            .toString();
+    }
+}

+ 203 - 0
healsphere-buss/src/main/java/com/zdqz/system/domain/SysCnarea.java

@@ -0,0 +1,203 @@
+package com.zdqz.system.domain;
+
+import java.math.BigDecimal;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.zdqz.common.annotation.Excel;
+import com.zdqz.common.core.domain.BaseEntity;
+
+/**
+ * 中国行政区域对象 sys_cnarea_2023
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-03
+ */
+public class SysCnarea extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 编号 */
+    private String id;
+
+    /** 层级 */
+    @Excel(name = "层级")
+    private String level;
+
+    /** 父级行政代码 */
+    @Excel(name = "父级行政代码")
+    private String parentCode;
+
+    /** 行政代码 */
+    @Excel(name = "行政代码")
+    private String areaCode;
+
+    /** 邮政编码 */
+    @Excel(name = "邮政编码")
+    private Integer zipCode;
+
+    /** 区号 */
+    @Excel(name = "区号")
+    private String cityCode;
+
+    /** 名称 */
+    @Excel(name = "名称")
+    private String name;
+
+    /** 简称 */
+    @Excel(name = "简称")
+    private String shortName;
+
+    /** 组合名 */
+    @Excel(name = "组合名")
+    private String mergerName;
+
+    /** 拼音 */
+    @Excel(name = "拼音")
+    private String pinyin;
+
+    /** 经度 */
+    @Excel(name = "经度")
+    private BigDecimal lng;
+
+    /** 纬度 */
+    @Excel(name = "纬度")
+    private BigDecimal lat;
+
+    public void setId(String id) 
+    {
+        this.id = id;
+    }
+
+    public String getId() 
+    {
+        return id;
+    }
+
+    public void setLevel(String level) 
+    {
+        this.level = level;
+    }
+
+    public String getLevel() 
+    {
+        return level;
+    }
+
+    public void setParentCode(String parentCode) 
+    {
+        this.parentCode = parentCode;
+    }
+
+    public String getParentCode() 
+    {
+        return parentCode;
+    }
+
+    public void setAreaCode(String areaCode) 
+    {
+        this.areaCode = areaCode;
+    }
+
+    public String getAreaCode() 
+    {
+        return areaCode;
+    }
+
+    public void setZipCode(Integer zipCode) 
+    {
+        this.zipCode = zipCode;
+    }
+
+    public Integer getZipCode() 
+    {
+        return zipCode;
+    }
+
+    public void setCityCode(String cityCode) 
+    {
+        this.cityCode = cityCode;
+    }
+
+    public String getCityCode() 
+    {
+        return cityCode;
+    }
+
+    public void setName(String name) 
+    {
+        this.name = name;
+    }
+
+    public String getName() 
+    {
+        return name;
+    }
+
+    public void setShortName(String shortName) 
+    {
+        this.shortName = shortName;
+    }
+
+    public String getShortName() 
+    {
+        return shortName;
+    }
+
+    public void setMergerName(String mergerName) 
+    {
+        this.mergerName = mergerName;
+    }
+
+    public String getMergerName() 
+    {
+        return mergerName;
+    }
+
+    public void setPinyin(String pinyin) 
+    {
+        this.pinyin = pinyin;
+    }
+
+    public String getPinyin() 
+    {
+        return pinyin;
+    }
+
+    public void setLng(BigDecimal lng) 
+    {
+        this.lng = lng;
+    }
+
+    public BigDecimal getLng() 
+    {
+        return lng;
+    }
+
+    public void setLat(BigDecimal lat) 
+    {
+        this.lat = lat;
+    }
+
+    public BigDecimal getLat() 
+    {
+        return lat;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("level", getLevel())
+            .append("parentCode", getParentCode())
+            .append("areaCode", getAreaCode())
+            .append("zipCode", getZipCode())
+            .append("cityCode", getCityCode())
+            .append("name", getName())
+            .append("shortName", getShortName())
+            .append("mergerName", getMergerName())
+            .append("pinyin", getPinyin())
+            .append("lng", getLng())
+            .append("lat", getLat())
+            .toString();
+    }
+}

+ 61 - 0
healsphere-buss/src/main/java/com/zdqz/system/mapper/SysAreaMapper.java

@@ -0,0 +1,61 @@
+package com.zdqz.system.mapper;
+
+import java.util.List;
+import com.zdqz.system.domain.SysArea;
+
+/**
+ * 世界国家区域Mapper接口
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-03
+ */
+public interface SysAreaMapper 
+{
+    /**
+     * 查询世界国家区域
+     * 
+     * @param areaId 世界国家区域主键
+     * @return 世界国家区域
+     */
+    public SysArea selectSysAreaByAreaId(String areaId);
+
+    /**
+     * 查询世界国家区域列表
+     * 
+     * @param sysArea 世界国家区域
+     * @return 世界国家区域集合
+     */
+    public List<SysArea> selectSysAreaList(SysArea sysArea);
+
+    /**
+     * 新增世界国家区域
+     * 
+     * @param sysArea 世界国家区域
+     * @return 结果
+     */
+    public int insertSysArea(SysArea sysArea);
+
+    /**
+     * 修改世界国家区域
+     * 
+     * @param sysArea 世界国家区域
+     * @return 结果
+     */
+    public int updateSysArea(SysArea sysArea);
+
+    /**
+     * 删除世界国家区域
+     * 
+     * @param areaId 世界国家区域主键
+     * @return 结果
+     */
+    public int deleteSysAreaByAreaId(String areaId);
+
+    /**
+     * 批量删除世界国家区域
+     * 
+     * @param areaIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteSysAreaByAreaIds(String[] areaIds);
+}

+ 61 - 0
healsphere-buss/src/main/java/com/zdqz/system/mapper/SysCnareaMapper.java

@@ -0,0 +1,61 @@
+package com.zdqz.system.mapper;
+
+import java.util.List;
+import com.zdqz.system.domain.SysCnarea;
+
+/**
+ * 中国行政区域Mapper接口
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-03
+ */
+public interface SysCnareaMapper 
+{
+    /**
+     * 查询中国行政区域
+     * 
+     * @param id 中国行政区域主键
+     * @return 中国行政区域
+     */
+    public SysCnarea selectSysCnareaById(String id);
+
+    /**
+     * 查询中国行政区域列表
+     * 
+     * @param sysCnarea 中国行政区域
+     * @return 中国行政区域集合
+     */
+    public List<SysCnarea> selectSysCnareaList(SysCnarea sysCnarea);
+
+    /**
+     * 新增中国行政区域
+     * 
+     * @param sysCnarea 中国行政区域
+     * @return 结果
+     */
+    public int insertSysCnarea(SysCnarea sysCnarea);
+
+    /**
+     * 修改中国行政区域
+     * 
+     * @param sysCnarea 中国行政区域
+     * @return 结果
+     */
+    public int updateSysCnarea(SysCnarea sysCnarea);
+
+    /**
+     * 删除中国行政区域
+     * 
+     * @param id 中国行政区域主键
+     * @return 结果
+     */
+    public int deleteSysCnareaById(String id);
+
+    /**
+     * 批量删除中国行政区域
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteSysCnareaByIds(String[] ids);
+}

+ 61 - 0
healsphere-buss/src/main/java/com/zdqz/system/service/ISysAreaService.java

@@ -0,0 +1,61 @@
+package com.zdqz.system.service;
+
+import java.util.List;
+import com.zdqz.system.domain.SysArea;
+
+/**
+ * 世界国家区域Service接口
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-03
+ */
+public interface ISysAreaService 
+{
+    /**
+     * 查询世界国家区域
+     * 
+     * @param areaId 世界国家区域主键
+     * @return 世界国家区域
+     */
+    public SysArea selectSysAreaByAreaId(String areaId);
+
+    /**
+     * 查询世界国家区域列表
+     * 
+     * @param sysArea 世界国家区域
+     * @return 世界国家区域集合
+     */
+    public List<SysArea> selectSysAreaList(SysArea sysArea);
+
+    /**
+     * 新增世界国家区域
+     * 
+     * @param sysArea 世界国家区域
+     * @return 结果
+     */
+    public int insertSysArea(SysArea sysArea);
+
+    /**
+     * 修改世界国家区域
+     * 
+     * @param sysArea 世界国家区域
+     * @return 结果
+     */
+    public int updateSysArea(SysArea sysArea);
+
+    /**
+     * 批量删除世界国家区域
+     * 
+     * @param areaIds 需要删除的世界国家区域主键集合
+     * @return 结果
+     */
+    public int deleteSysAreaByAreaIds(String[] areaIds);
+
+    /**
+     * 删除世界国家区域信息
+     * 
+     * @param areaId 世界国家区域主键
+     * @return 结果
+     */
+    public int deleteSysAreaByAreaId(String areaId);
+}

+ 61 - 0
healsphere-buss/src/main/java/com/zdqz/system/service/ISysCnareaService.java

@@ -0,0 +1,61 @@
+package com.zdqz.system.service;
+
+import java.util.List;
+import com.zdqz.system.domain.SysCnarea;
+
+/**
+ * 中国行政区域Service接口
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-03
+ */
+public interface ISysCnareaService 
+{
+    /**
+     * 查询中国行政区域
+     * 
+     * @param id 中国行政区域主键
+     * @return 中国行政区域
+     */
+    public SysCnarea selectSysCnareaById(String id);
+
+    /**
+     * 查询中国行政区域列表
+     * 
+     * @param sysCnarea 中国行政区域
+     * @return 中国行政区域集合
+     */
+    public List<SysCnarea> selectSysCnareaList(SysCnarea sysCnarea);
+
+    /**
+     * 新增中国行政区域
+     * 
+     * @param sysCnarea 中国行政区域
+     * @return 结果
+     */
+    public int insertSysCnarea(SysCnarea sysCnarea);
+
+    /**
+     * 修改中国行政区域
+     * 
+     * @param sysCnarea 中国行政区域
+     * @return 结果
+     */
+    public int updateSysCnarea(SysCnarea sysCnarea);
+
+    /**
+     * 批量删除中国行政区域
+     * 
+     * @param ids 需要删除的中国行政区域主键集合
+     * @return 结果
+     */
+    public int deleteSysCnareaByIds(String[] ids);
+
+    /**
+     * 删除中国行政区域信息
+     * 
+     * @param id 中国行政区域主键
+     * @return 结果
+     */
+    public int deleteSysCnareaById(String id);
+}

+ 93 - 0
healsphere-buss/src/main/java/com/zdqz/system/service/impl/SysAreaServiceImpl.java

@@ -0,0 +1,93 @@
+package com.zdqz.system.service.impl;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.zdqz.system.mapper.SysAreaMapper;
+import com.zdqz.system.domain.SysArea;
+import com.zdqz.system.service.ISysAreaService;
+
+/**
+ * 世界国家区域Service业务层处理
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-03
+ */
+@Service
+public class SysAreaServiceImpl implements ISysAreaService 
+{
+    @Autowired
+    private SysAreaMapper sysAreaMapper;
+
+    /**
+     * 查询世界国家区域
+     * 
+     * @param areaId 世界国家区域主键
+     * @return 世界国家区域
+     */
+    @Override
+    public SysArea selectSysAreaByAreaId(String areaId)
+    {
+        return sysAreaMapper.selectSysAreaByAreaId(areaId);
+    }
+
+    /**
+     * 查询世界国家区域列表
+     * 
+     * @param sysArea 世界国家区域
+     * @return 世界国家区域
+     */
+    @Override
+    public List<SysArea> selectSysAreaList(SysArea sysArea)
+    {
+        return sysAreaMapper.selectSysAreaList(sysArea);
+    }
+
+    /**
+     * 新增世界国家区域
+     * 
+     * @param sysArea 世界国家区域
+     * @return 结果
+     */
+    @Override
+    public int insertSysArea(SysArea sysArea)
+    {
+        return sysAreaMapper.insertSysArea(sysArea);
+    }
+
+    /**
+     * 修改世界国家区域
+     * 
+     * @param sysArea 世界国家区域
+     * @return 结果
+     */
+    @Override
+    public int updateSysArea(SysArea sysArea)
+    {
+        return sysAreaMapper.updateSysArea(sysArea);
+    }
+
+    /**
+     * 批量删除世界国家区域
+     * 
+     * @param areaIds 需要删除的世界国家区域主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSysAreaByAreaIds(String[] areaIds)
+    {
+        return sysAreaMapper.deleteSysAreaByAreaIds(areaIds);
+    }
+
+    /**
+     * 删除世界国家区域信息
+     * 
+     * @param areaId 世界国家区域主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSysAreaByAreaId(String areaId)
+    {
+        return sysAreaMapper.deleteSysAreaByAreaId(areaId);
+    }
+}

+ 93 - 0
healsphere-buss/src/main/java/com/zdqz/system/service/impl/SysCnareaServiceImpl.java

@@ -0,0 +1,93 @@
+package com.zdqz.system.service.impl;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.zdqz.system.mapper.SysCnareaMapper;
+import com.zdqz.system.domain.SysCnarea;
+import com.zdqz.system.service.ISysCnareaService;
+
+/**
+ * 中国行政区域Service业务层处理
+ * 
+ * @author 攻心小虫
+ * @date 2025-06-03
+ */
+@Service
+public class SysCnareaServiceImpl implements ISysCnareaService 
+{
+    @Autowired
+    private SysCnareaMapper sysCnareaMapper;
+
+    /**
+     * 查询中国行政区域
+     * 
+     * @param id 中国行政区域主键
+     * @return 中国行政区域
+     */
+    @Override
+    public SysCnarea selectSysCnareaById(String id)
+    {
+        return sysCnareaMapper.selectSysCnareaById(id);
+    }
+
+    /**
+     * 查询中国行政区域列表
+     * 
+     * @param sysCnarea 中国行政区域
+     * @return 中国行政区域
+     */
+    @Override
+    public List<SysCnarea> selectSysCnareaList(SysCnarea sysCnarea)
+    {
+        return sysCnareaMapper.selectSysCnareaList(sysCnarea);
+    }
+
+    /**
+     * 新增中国行政区域
+     * 
+     * @param sysCnarea 中国行政区域
+     * @return 结果
+     */
+    @Override
+    public int insertSysCnarea(SysCnarea sysCnarea)
+    {
+        return sysCnareaMapper.insertSysCnarea(sysCnarea);
+    }
+
+    /**
+     * 修改中国行政区域
+     * 
+     * @param sysCnarea 中国行政区域
+     * @return 结果
+     */
+    @Override
+    public int updateSysCnarea(SysCnarea sysCnarea)
+    {
+        return sysCnareaMapper.updateSysCnarea(sysCnarea);
+    }
+
+    /**
+     * 批量删除中国行政区域
+     * 
+     * @param ids 需要删除的中国行政区域主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSysCnareaByIds(String[] ids)
+    {
+        return sysCnareaMapper.deleteSysCnareaByIds(ids);
+    }
+
+    /**
+     * 删除中国行政区域信息
+     * 
+     * @param id 中国行政区域主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSysCnareaById(String id)
+    {
+        return sysCnareaMapper.deleteSysCnareaById(id);
+    }
+}

+ 96 - 0
healsphere-buss/src/main/resources/mapper/data/DataDljyMapper.xml

@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.zdqz.data.mapper.DataDljyMapper">
+    
+    <resultMap type="DataDljy" id="DataDljyResult">
+        <result property="id"    column="id"    />
+        <result property="dljy"    column="dljy"    />
+        <result property="byt"    column="byt"    />
+        <result property="nyyp"    column="nyyp"    />
+        <result property="mgyp"    column="mgyp"    />
+        <result property="nyjyExpress"    column="nyjy_express"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectDataDljyVo">
+        select id, dljy, byt, nyyp, mgyp, nyjy_express, create_by, create_time, update_by, update_time, remark from data_dljy
+    </sql>
+
+    <select id="selectDataDljyList" parameterType="DataDljy" resultMap="DataDljyResult">
+        <include refid="selectDataDljyVo"/>
+        <where>  
+            <if test="dljy != null  and dljy != ''"> and dljy = #{dljy}</if>
+            <if test="byt != null  and byt != ''"> and byt = #{byt}</if>
+            <if test="nyyp != null  and nyyp != ''"> and nyyp = #{nyyp}</if>
+            <if test="mgyp != null  and mgyp != ''"> and mgyp = #{mgyp}</if>
+            <if test="nyjyExpress != null  and nyjyExpress != ''"> and nyjy_express = #{nyjyExpress}</if>
+        </where>
+    </select>
+    
+    <select id="selectDataDljyById" parameterType="Long" resultMap="DataDljyResult">
+        <include refid="selectDataDljyVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertDataDljy" parameterType="DataDljy" useGeneratedKeys="true" keyProperty="id">
+        insert into data_dljy
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="dljy != null">dljy,</if>
+            <if test="byt != null">byt,</if>
+            <if test="nyyp != null">nyyp,</if>
+            <if test="mgyp != null">mgyp,</if>
+            <if test="nyjyExpress != null">nyjy_express,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="dljy != null">#{dljy},</if>
+            <if test="byt != null">#{byt},</if>
+            <if test="nyyp != null">#{nyyp},</if>
+            <if test="mgyp != null">#{mgyp},</if>
+            <if test="nyjyExpress != null">#{nyjyExpress},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateDataDljy" parameterType="DataDljy">
+        update data_dljy
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="dljy != null">dljy = #{dljy},</if>
+            <if test="byt != null">byt = #{byt},</if>
+            <if test="nyyp != null">nyyp = #{nyyp},</if>
+            <if test="mgyp != null">mgyp = #{mgyp},</if>
+            <if test="nyjyExpress != null">nyjy_express = #{nyjyExpress},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteDataDljyById" parameterType="Long">
+        delete from data_dljy where id = #{id}
+    </delete>
+
+    <delete id="deleteDataDljyByIds" parameterType="String">
+        delete from data_dljy where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 96 - 0
healsphere-buss/src/main/resources/mapper/data/DataNyjyMapper.xml

@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.zdqz.data.mapper.DataNyjyMapper">
+    
+    <resultMap type="DataNyjy" id="DataNyjyResult">
+        <result property="id"    column="id"    />
+        <result property="nyjy"    column="nyjy"    />
+        <result property="byt"    column="byt"    />
+        <result property="nyyp"    column="nyyp"    />
+        <result property="mgyp"    column="mgyp"    />
+        <result property="nyjyExpress"    column="nyjy_express"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectDataNyjyVo">
+        select id, nyjy, byt, nyyp, mgyp, nyjy_express, create_by, create_time, update_by, update_time, remark from data_nyjy
+    </sql>
+
+    <select id="selectDataNyjyList" parameterType="DataNyjy" resultMap="DataNyjyResult">
+        <include refid="selectDataNyjyVo"/>
+        <where>  
+            <if test="nyjy != null  and nyjy != ''"> and nyjy = #{nyjy}</if>
+            <if test="byt != null  and byt != ''"> and byt = #{byt}</if>
+            <if test="nyyp != null  and nyyp != ''"> and nyyp = #{nyyp}</if>
+            <if test="mgyp != null  and mgyp != ''"> and mgyp = #{mgyp}</if>
+            <if test="nyjyExpress != null  and nyjyExpress != ''"> and nyjy_express = #{nyjyExpress}</if>
+        </where>
+    </select>
+    
+    <select id="selectDataNyjyById" parameterType="Long" resultMap="DataNyjyResult">
+        <include refid="selectDataNyjyVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertDataNyjy" parameterType="DataNyjy" useGeneratedKeys="true" keyProperty="id">
+        insert into data_nyjy
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="nyjy != null">nyjy,</if>
+            <if test="byt != null">byt,</if>
+            <if test="nyyp != null">nyyp,</if>
+            <if test="mgyp != null">mgyp,</if>
+            <if test="nyjyExpress != null">nyjy_express,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="nyjy != null">#{nyjy},</if>
+            <if test="byt != null">#{byt},</if>
+            <if test="nyyp != null">#{nyyp},</if>
+            <if test="mgyp != null">#{mgyp},</if>
+            <if test="nyjyExpress != null">#{nyjyExpress},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateDataNyjy" parameterType="DataNyjy">
+        update data_nyjy
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="nyjy != null">nyjy = #{nyjy},</if>
+            <if test="byt != null">byt = #{byt},</if>
+            <if test="nyyp != null">nyyp = #{nyyp},</if>
+            <if test="mgyp != null">mgyp = #{mgyp},</if>
+            <if test="nyjyExpress != null">nyjy_express = #{nyjyExpress},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteDataNyjyById" parameterType="Long">
+        delete from data_nyjy where id = #{id}
+    </delete>
+
+    <delete id="deleteDataNyjyByIds" parameterType="String">
+        delete from data_nyjy where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 86 - 0
healsphere-buss/src/main/resources/mapper/sample/SampleDeptMapper.xml

@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.zdqz.sample.mapper.SampleDeptMapper">
+    
+    <resultMap type="SampleDept" id="SampleDeptResult">
+        <result property="id"    column="id"    />
+        <result property="name"    column="name"    />
+        <result property="status"    column="status"    />
+        <result property="seq"    column="seq"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectSampleDeptVo">
+        select id, name, status, seq, create_by, create_time, update_by, update_time, remark from sample_dept
+    </sql>
+
+    <select id="selectSampleDeptList" parameterType="SampleDept" resultMap="SampleDeptResult">
+        <include refid="selectSampleDeptVo"/>
+        <where>  
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="status != null "> and status = #{status}</if>
+            <if test="seq != null "> and seq = #{seq}</if>
+        </where>
+    </select>
+    
+    <select id="selectSampleDeptById" parameterType="Long" resultMap="SampleDeptResult">
+        <include refid="selectSampleDeptVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertSampleDept" parameterType="SampleDept" useGeneratedKeys="true" keyProperty="id">
+        insert into sample_dept
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="name != null">name,</if>
+            <if test="status != null">status,</if>
+            <if test="seq != null">seq,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="name != null">#{name},</if>
+            <if test="status != null">#{status},</if>
+            <if test="seq != null">#{seq},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateSampleDept" parameterType="SampleDept">
+        update sample_dept
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="name != null">name = #{name},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="seq != null">seq = #{seq},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteSampleDeptById" parameterType="Long">
+        delete from sample_dept where id = #{id}
+    </delete>
+
+    <delete id="deleteSampleDeptByIds" parameterType="String">
+        delete from sample_dept where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 101 - 0
healsphere-buss/src/main/resources/mapper/sample/SampleHospitalMapper.xml

@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.zdqz.sample.mapper.SampleHospitalMapper">
+    
+    <resultMap type="SampleHospital" id="SampleHospitalResult">
+        <result property="id"    column="id"    />
+        <result property="name"    column="name"    />
+        <result property="status"    column="status"    />
+        <result property="level"    column="level"    />
+        <result property="cnAreanId"    column="cn_arean_id"    />
+        <result property="cnAreaname"    column="cn_areaname"    />
+        <result property="seq"    column="seq"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectSampleHospitalVo">
+        select id, name, status, level, cn_arean_id, cn_areaname, seq, create_by, create_time, update_by, update_time, remark from sample_hospital
+    </sql>
+
+    <select id="selectSampleHospitalList" parameterType="SampleHospital" resultMap="SampleHospitalResult">
+        <include refid="selectSampleHospitalVo"/>
+        <where>  
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="status != null "> and status = #{status}</if>
+            <if test="level != null  and level != ''"> and level = #{level}</if>
+            <if test="cnAreanId != null "> and cn_arean_id = #{cnAreanId}</if>
+            <if test="cnAreaname != null  and cnAreaname != ''"> and cn_areaname like concat('%', #{cnAreaname}, '%')</if>
+            <if test="seq != null "> and seq = #{seq}</if>
+        </where>
+    </select>
+    
+    <select id="selectSampleHospitalById" parameterType="Long" resultMap="SampleHospitalResult">
+        <include refid="selectSampleHospitalVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertSampleHospital" parameterType="SampleHospital" useGeneratedKeys="true" keyProperty="id">
+        insert into sample_hospital
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="name != null">name,</if>
+            <if test="status != null">status,</if>
+            <if test="level != null">level,</if>
+            <if test="cnAreanId != null">cn_arean_id,</if>
+            <if test="cnAreaname != null">cn_areaname,</if>
+            <if test="seq != null">seq,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="name != null">#{name},</if>
+            <if test="status != null">#{status},</if>
+            <if test="level != null">#{level},</if>
+            <if test="cnAreanId != null">#{cnAreanId},</if>
+            <if test="cnAreaname != null">#{cnAreaname},</if>
+            <if test="seq != null">#{seq},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateSampleHospital" parameterType="SampleHospital">
+        update sample_hospital
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="name != null">name = #{name},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="level != null">level = #{level},</if>
+            <if test="cnAreanId != null">cn_arean_id = #{cnAreanId},</if>
+            <if test="cnAreaname != null">cn_areaname = #{cnAreaname},</if>
+            <if test="seq != null">seq = #{seq},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteSampleHospitalById" parameterType="Long">
+        delete from sample_hospital where id = #{id}
+    </delete>
+
+    <delete id="deleteSampleHospitalByIds" parameterType="String">
+        delete from sample_hospital where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 106 - 0
healsphere-buss/src/main/resources/mapper/sample/SampleInfoMapper.xml

@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.zdqz.sample.mapper.SampleInfoMapper">
+    
+    <resultMap type="SampleInfo" id="SampleInfoResult">
+        <result property="id"    column="id"    />
+        <result property="experimentId"    column="experiment_id"    />
+        <result property="patientId"    column="patient_id"    />
+        <result property="patientPhone"    column="patient_phone"    />
+        <result property="sampleTypeId"    column="sample_type_id"    />
+        <result property="sampleHospitalId"    column="sample_hospital_id"    />
+        <result property="sampleDeptId"    column="sample_dept_id"    />
+        <result property="doctorName"    column="doctor_name"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectSampleInfoVo">
+        select id, experiment_id, patient_id, patient_phone, sample_type_id, sample_hospital_id, sample_dept_id, doctor_name, create_by, create_time, update_by, update_time, remark from sample_info
+    </sql>
+
+    <select id="selectSampleInfoList" parameterType="SampleInfo" resultMap="SampleInfoResult">
+        <include refid="selectSampleInfoVo"/>
+        <where>  
+            <if test="experimentId != null  and experimentId != ''"> and experiment_id = #{experimentId}</if>
+            <if test="patientId != null "> and patient_id = #{patientId}</if>
+            <if test="patientPhone != null  and patientPhone != ''"> and patient_phone = #{patientPhone}</if>
+            <if test="sampleTypeId != null "> and sample_type_id = #{sampleTypeId}</if>
+            <if test="sampleHospitalId != null "> and sample_hospital_id = #{sampleHospitalId}</if>
+            <if test="sampleDeptId != null "> and sample_dept_id = #{sampleDeptId}</if>
+            <if test="doctorName != null  and doctorName != ''"> and doctor_name like concat('%', #{doctorName}, '%')</if>
+        </where>
+    </select>
+    
+    <select id="selectSampleInfoById" parameterType="Long" resultMap="SampleInfoResult">
+        <include refid="selectSampleInfoVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertSampleInfo" parameterType="SampleInfo" useGeneratedKeys="true" keyProperty="id">
+        insert into sample_info
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="experimentId != null">experiment_id,</if>
+            <if test="patientId != null">patient_id,</if>
+            <if test="patientPhone != null">patient_phone,</if>
+            <if test="sampleTypeId != null">sample_type_id,</if>
+            <if test="sampleHospitalId != null">sample_hospital_id,</if>
+            <if test="sampleDeptId != null">sample_dept_id,</if>
+            <if test="doctorName != null">doctor_name,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="experimentId != null">#{experimentId},</if>
+            <if test="patientId != null">#{patientId},</if>
+            <if test="patientPhone != null">#{patientPhone},</if>
+            <if test="sampleTypeId != null">#{sampleTypeId},</if>
+            <if test="sampleHospitalId != null">#{sampleHospitalId},</if>
+            <if test="sampleDeptId != null">#{sampleDeptId},</if>
+            <if test="doctorName != null">#{doctorName},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateSampleInfo" parameterType="SampleInfo">
+        update sample_info
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="experimentId != null">experiment_id = #{experimentId},</if>
+            <if test="patientId != null">patient_id = #{patientId},</if>
+            <if test="patientPhone != null">patient_phone = #{patientPhone},</if>
+            <if test="sampleTypeId != null">sample_type_id = #{sampleTypeId},</if>
+            <if test="sampleHospitalId != null">sample_hospital_id = #{sampleHospitalId},</if>
+            <if test="sampleDeptId != null">sample_dept_id = #{sampleDeptId},</if>
+            <if test="doctorName != null">doctor_name = #{doctorName},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteSampleInfoById" parameterType="Long">
+        delete from sample_info where id = #{id}
+    </delete>
+
+    <delete id="deleteSampleInfoByIds" parameterType="String">
+        delete from sample_info where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

ファイルの差分が大きいため隠しています
+ 396 - 0
healsphere-buss/src/main/resources/mapper/sample/SamplePatientMapper.xml


+ 86 - 0
healsphere-buss/src/main/resources/mapper/sample/SampleTypeMapper.xml

@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.zdqz.sample.mapper.SampleTypeMapper">
+    
+    <resultMap type="SampleType" id="SampleTypeResult">
+        <result property="id"    column="id"    />
+        <result property="name"    column="name"    />
+        <result property="status"    column="status"    />
+        <result property="seq"    column="seq"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectSampleTypeVo">
+        select id, name, status, seq, create_by, create_time, update_by, update_time, remark from sample_type
+    </sql>
+
+    <select id="selectSampleTypeList" parameterType="SampleType" resultMap="SampleTypeResult">
+        <include refid="selectSampleTypeVo"/>
+        <where>  
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="status != null "> and status = #{status}</if>
+            <if test="seq != null "> and seq = #{seq}</if>
+        </where>
+    </select>
+    
+    <select id="selectSampleTypeById" parameterType="Long" resultMap="SampleTypeResult">
+        <include refid="selectSampleTypeVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertSampleType" parameterType="SampleType" useGeneratedKeys="true" keyProperty="id">
+        insert into sample_type
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="name != null">name,</if>
+            <if test="status != null">status,</if>
+            <if test="seq != null">seq,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="name != null">#{name},</if>
+            <if test="status != null">#{status},</if>
+            <if test="seq != null">#{seq},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateSampleType" parameterType="SampleType">
+        update sample_type
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="name != null">name = #{name},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="seq != null">seq = #{seq},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteSampleTypeById" parameterType="Long">
+        delete from sample_type where id = #{id}
+    </delete>
+
+    <delete id="deleteSampleTypeByIds" parameterType="String">
+        delete from sample_type where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 86 - 0
healsphere-buss/src/main/resources/mapper/system/SysAreaMapper.xml

@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.zdqz.system.mapper.SysAreaMapper">
+    
+    <resultMap type="SysArea" id="SysAreaResult">
+        <result property="areaId"    column="area_id"    />
+        <result property="areaParentId"    column="area_parent_id"    />
+        <result property="path"    column="path"    />
+        <result property="areaDeep"    column="area_deep"    />
+        <result property="areaName"    column="area_name"    />
+        <result property="nameEn"    column="name_en"    />
+        <result property="namePinyin"    column="name_pinyin"    />
+        <result property="code"    column="code"    />
+    </resultMap>
+
+    <sql id="selectSysAreaVo">
+        select area_id, area_parent_id, path, area_deep, area_name, name_en, name_pinyin, code from sys_area
+    </sql>
+
+    <select id="selectSysAreaList" parameterType="SysArea" resultMap="SysAreaResult">
+        <include refid="selectSysAreaVo"/>
+        <where>  
+            <if test="areaParentId != null  and areaParentId != ''"> and area_parent_id = #{areaParentId}</if>
+            <if test="path != null  and path != ''"> and path = #{path}</if>
+            <if test="areaDeep != null  and areaDeep != ''"> and area_deep = #{areaDeep}</if>
+            <if test="areaName != null  and areaName != ''"> and area_name like concat('%', #{areaName}, '%')</if>
+            <if test="nameEn != null  and nameEn != ''"> and name_en = #{nameEn}</if>
+            <if test="namePinyin != null  and namePinyin != ''"> and name_pinyin = #{namePinyin}</if>
+            <if test="code != null  and code != ''"> and code = #{code}</if>
+        </where>
+    </select>
+    
+    <select id="selectSysAreaByAreaId" parameterType="String" resultMap="SysAreaResult">
+        <include refid="selectSysAreaVo"/>
+        where area_id = #{areaId}
+    </select>
+
+    <insert id="insertSysArea" parameterType="SysArea" useGeneratedKeys="true" keyProperty="areaId">
+        insert into sys_area
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="areaParentId != null">area_parent_id,</if>
+            <if test="path != null">path,</if>
+            <if test="areaDeep != null">area_deep,</if>
+            <if test="areaName != null">area_name,</if>
+            <if test="nameEn != null">name_en,</if>
+            <if test="namePinyin != null">name_pinyin,</if>
+            <if test="code != null">code,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="areaParentId != null">#{areaParentId},</if>
+            <if test="path != null">#{path},</if>
+            <if test="areaDeep != null">#{areaDeep},</if>
+            <if test="areaName != null">#{areaName},</if>
+            <if test="nameEn != null">#{nameEn},</if>
+            <if test="namePinyin != null">#{namePinyin},</if>
+            <if test="code != null">#{code},</if>
+         </trim>
+    </insert>
+
+    <update id="updateSysArea" parameterType="SysArea">
+        update sys_area
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="areaParentId != null">area_parent_id = #{areaParentId},</if>
+            <if test="path != null">path = #{path},</if>
+            <if test="areaDeep != null">area_deep = #{areaDeep},</if>
+            <if test="areaName != null">area_name = #{areaName},</if>
+            <if test="nameEn != null">name_en = #{nameEn},</if>
+            <if test="namePinyin != null">name_pinyin = #{namePinyin},</if>
+            <if test="code != null">code = #{code},</if>
+        </trim>
+        where area_id = #{areaId}
+    </update>
+
+    <delete id="deleteSysAreaByAreaId" parameterType="String">
+        delete from sys_area where area_id = #{areaId}
+    </delete>
+
+    <delete id="deleteSysAreaByAreaIds" parameterType="String">
+        delete from sys_area where area_id in 
+        <foreach item="areaId" collection="array" open="(" separator="," close=")">
+            #{areaId}
+        </foreach>
+    </delete>
+</mapper>

+ 106 - 0
healsphere-buss/src/main/resources/mapper/system/SysCnareaMapper.xml

@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.zdqz.system.mapper.SysCnareaMapper">
+    
+    <resultMap type="SysCnarea" id="SysCnareaResult">
+        <result property="id"    column="id"    />
+        <result property="level"    column="level"    />
+        <result property="parentCode"    column="parent_code"    />
+        <result property="areaCode"    column="area_code"    />
+        <result property="zipCode"    column="zip_code"    />
+        <result property="cityCode"    column="city_code"    />
+        <result property="name"    column="name"    />
+        <result property="shortName"    column="short_name"    />
+        <result property="mergerName"    column="merger_name"    />
+        <result property="pinyin"    column="pinyin"    />
+        <result property="lng"    column="lng"    />
+        <result property="lat"    column="lat"    />
+    </resultMap>
+
+    <sql id="selectSysCnareaVo">
+        select id, level, parent_code, area_code, zip_code, city_code, name, short_name, merger_name, pinyin, lng, lat from sys_cnarea_2023
+    </sql>
+
+    <select id="selectSysCnareaList" parameterType="SysCnarea" resultMap="SysCnareaResult">
+        <include refid="selectSysCnareaVo"/>
+        <where>  
+            <if test="level != null  and level != ''"> and level = #{level}</if>
+            <if test="parentCode != null  and parentCode != ''"> and parent_code = #{parentCode}</if>
+            <if test="areaCode != null  and areaCode != ''"> and area_code = #{areaCode}</if>
+            <if test="zipCode != null "> and zip_code = #{zipCode}</if>
+            <if test="cityCode != null  and cityCode != ''"> and city_code = #{cityCode}</if>
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="shortName != null  and shortName != ''"> and short_name like concat('%', #{shortName}, '%')</if>
+            <if test="mergerName != null  and mergerName != ''"> and merger_name like concat('%', #{mergerName}, '%')</if>
+            <if test="pinyin != null  and pinyin != ''"> and pinyin = #{pinyin}</if>
+            <if test="lng != null "> and lng = #{lng}</if>
+            <if test="lat != null "> and lat = #{lat}</if>
+        </where>
+    </select>
+    
+    <select id="selectSysCnareaById" parameterType="String" resultMap="SysCnareaResult">
+        <include refid="selectSysCnareaVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertSysCnarea" parameterType="SysCnarea" useGeneratedKeys="true" keyProperty="id">
+        insert into sys_cnarea_2023
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="level != null and level != ''">level,</if>
+            <if test="parentCode != null and parentCode != ''">parent_code,</if>
+            <if test="areaCode != null and areaCode != ''">area_code,</if>
+            <if test="zipCode != null">zip_code,</if>
+            <if test="cityCode != null and cityCode != ''">city_code,</if>
+            <if test="name != null and name != ''">name,</if>
+            <if test="shortName != null and shortName != ''">short_name,</if>
+            <if test="mergerName != null and mergerName != ''">merger_name,</if>
+            <if test="pinyin != null and pinyin != ''">pinyin,</if>
+            <if test="lng != null">lng,</if>
+            <if test="lat != null">lat,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="level != null and level != ''">#{level},</if>
+            <if test="parentCode != null and parentCode != ''">#{parentCode},</if>
+            <if test="areaCode != null and areaCode != ''">#{areaCode},</if>
+            <if test="zipCode != null">#{zipCode},</if>
+            <if test="cityCode != null and cityCode != ''">#{cityCode},</if>
+            <if test="name != null and name != ''">#{name},</if>
+            <if test="shortName != null and shortName != ''">#{shortName},</if>
+            <if test="mergerName != null and mergerName != ''">#{mergerName},</if>
+            <if test="pinyin != null and pinyin != ''">#{pinyin},</if>
+            <if test="lng != null">#{lng},</if>
+            <if test="lat != null">#{lat},</if>
+         </trim>
+    </insert>
+
+    <update id="updateSysCnarea" parameterType="SysCnarea">
+        update sys_cnarea_2023
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="level != null and level != ''">level = #{level},</if>
+            <if test="parentCode != null and parentCode != ''">parent_code = #{parentCode},</if>
+            <if test="areaCode != null and areaCode != ''">area_code = #{areaCode},</if>
+            <if test="zipCode != null">zip_code = #{zipCode},</if>
+            <if test="cityCode != null and cityCode != ''">city_code = #{cityCode},</if>
+            <if test="name != null and name != ''">name = #{name},</if>
+            <if test="shortName != null and shortName != ''">short_name = #{shortName},</if>
+            <if test="mergerName != null and mergerName != ''">merger_name = #{mergerName},</if>
+            <if test="pinyin != null and pinyin != ''">pinyin = #{pinyin},</if>
+            <if test="lng != null">lng = #{lng},</if>
+            <if test="lat != null">lat = #{lat},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteSysCnareaById" parameterType="String">
+        delete from sys_cnarea_2023 where id = #{id}
+    </delete>
+
+    <delete id="deleteSysCnareaByIds" parameterType="String">
+        delete from sys_cnarea_2023 where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 40 - 0
healsphere-common/.classpath

@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" output="target/classes" path="src/main/java">
+		<attributes>
+			<attribute name="optional" value="true"/>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
+		<attributes>
+			<attribute name="maven.pomderived" value="true"/>
+			<attribute name="optional" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="src" output="target/test-classes" path="src/test/java">
+		<attributes>
+			<attribute name="optional" value="true"/>
+			<attribute name="maven.pomderived" value="true"/>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
+		<attributes>
+			<attribute name="maven.pomderived" value="true"/>
+			<attribute name="test" value="true"/>
+			<attribute name="optional" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
+		<attributes>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
+		<attributes>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

+ 2 - 0
healsphere-common/.gitignore

@@ -0,0 +1,2 @@
+/target/
+/.settings/

+ 23 - 0
healsphere-common/.project

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>healsphere-common</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.m2e.core.maven2Builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.eclipse.m2e.core.maven2Nature</nature>
+	</natures>
+</projectDescription>

+ 120 - 0
healsphere-common/pom.xml

@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>healsphere</artifactId>
+        <groupId>com.zdqz</groupId>
+        <version>3.8.9</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>healsphere-common</artifactId>
+
+    <dependencies>
+
+        <!-- Spring框架基本的核心工具 -->
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-context-support</artifactId>
+        </dependency>
+
+        <!-- SpringWeb模块 -->
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-web</artifactId>
+        </dependency>
+
+        <!-- spring security 安全认证 -->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-security</artifactId>
+        </dependency>
+
+        <!-- pagehelper 分页插件 -->
+        <dependency>
+            <groupId>com.github.pagehelper</groupId>
+            <artifactId>pagehelper-spring-boot-starter</artifactId>
+        </dependency>
+
+        <!-- 自定义验证注解 -->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-validation</artifactId>
+        </dependency>
+
+        <!--常用工具类 -->
+        <dependency>
+            <groupId>org.apache.commons</groupId>
+            <artifactId>commons-lang3</artifactId>
+        </dependency>
+  
+        <!-- JSON工具类 -->
+        <dependency>
+            <groupId>com.fasterxml.jackson.core</groupId>
+            <artifactId>jackson-databind</artifactId>
+        </dependency>
+        
+        <!-- 阿里JSON解析器 -->
+        <dependency>
+            <groupId>com.alibaba.fastjson2</groupId>
+            <artifactId>fastjson2</artifactId>
+        </dependency>
+
+        <!-- io常用工具类 -->
+        <dependency>
+            <groupId>commons-io</groupId>
+            <artifactId>commons-io</artifactId>
+        </dependency>
+
+        <!-- excel工具 -->
+        <dependency>
+            <groupId>org.apache.poi</groupId>
+            <artifactId>poi-ooxml</artifactId>
+        </dependency>
+
+        <!-- yml解析器 -->
+        <dependency>
+            <groupId>org.yaml</groupId>
+            <artifactId>snakeyaml</artifactId>
+        </dependency>
+
+        <!-- Token生成与解析-->
+        <dependency>
+            <groupId>io.jsonwebtoken</groupId>
+            <artifactId>jjwt</artifactId>
+        </dependency>
+
+        <!-- Jaxb -->
+        <dependency>
+            <groupId>javax.xml.bind</groupId>
+            <artifactId>jaxb-api</artifactId>
+        </dependency>
+
+        <!-- redis 缓存操作 -->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-data-redis</artifactId>
+        </dependency>
+
+        <!-- pool 对象池 -->
+        <dependency>
+            <groupId>org.apache.commons</groupId>
+            <artifactId>commons-pool2</artifactId>
+        </dependency>
+
+        <!-- 解析客户端操作系统、浏览器等 -->
+        <dependency>
+            <groupId>eu.bitwalker</groupId>
+            <artifactId>UserAgentUtils</artifactId>
+        </dependency>
+
+        <!-- servlet包 -->
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>javax.servlet-api</artifactId>
+        </dependency>
+
+    </dependencies>
+
+</project>

+ 19 - 0
healsphere-common/src/main/java/com/zdqz/common/annotation/Anonymous.java

@@ -0,0 +1,19 @@
+package com.zdqz.common.annotation;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * 匿名访问不鉴权注解
+ * 
+ * @author 攻心小虫
+ */
+@Target({ ElementType.METHOD, ElementType.TYPE })
+@Retention(RetentionPolicy.RUNTIME)
+@Documented
+public @interface Anonymous
+{
+}

+ 33 - 0
healsphere-common/src/main/java/com/zdqz/common/annotation/DataScope.java

@@ -0,0 +1,33 @@
+package com.zdqz.common.annotation;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * 数据权限过滤注解
+ * 
+ * @author 攻心小虫
+ */
+@Target(ElementType.METHOD)
+@Retention(RetentionPolicy.RUNTIME)
+@Documented
+public @interface DataScope
+{
+    /**
+     * 部门表的别名
+     */
+    public String deptAlias() default "";
+
+    /**
+     * 用户表的别名
+     */
+    public String userAlias() default "";
+
+    /**
+     * 权限字符(用于多个角色匹配符合要求的权限)默认根据权限注解@ss获取,多个权限用逗号分隔开来
+     */
+    public String permission() default "";
+}

+ 28 - 0
healsphere-common/src/main/java/com/zdqz/common/annotation/DataSource.java

@@ -0,0 +1,28 @@
+package com.zdqz.common.annotation;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Inherited;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+import com.zdqz.common.enums.DataSourceType;
+
+/**
+ * 自定义多数据源切换注解
+ *
+ * 优先级:先方法,后类,如果方法覆盖了类上的数据源类型,以方法的为准,否则以类上的为准
+ *
+ * @author 攻心小虫
+ */
+@Target({ ElementType.METHOD, ElementType.TYPE })
+@Retention(RetentionPolicy.RUNTIME)
+@Documented
+@Inherited
+public @interface DataSource
+{
+    /**
+     * 切换数据源名称
+     */
+    public DataSourceType value() default DataSourceType.MASTER;
+}

+ 197 - 0
healsphere-common/src/main/java/com/zdqz/common/annotation/Excel.java

@@ -0,0 +1,197 @@
+package com.zdqz.common.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+import java.math.BigDecimal;
+import org.apache.poi.ss.usermodel.HorizontalAlignment;
+import org.apache.poi.ss.usermodel.IndexedColors;
+import com.zdqz.common.utils.poi.ExcelHandlerAdapter;
+
+/**
+ * 自定义导出Excel数据注解
+ * 
+ * @author 攻心小虫
+ */
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.FIELD)
+public @interface Excel
+{
+    /**
+     * 导出时在excel中排序
+     */
+    public int sort() default Integer.MAX_VALUE;
+
+    /**
+     * 导出到Excel中的名字.
+     */
+    public String name() default "";
+
+    /**
+     * 日期格式, 如: yyyy-MM-dd
+     */
+    public String dateFormat() default "";
+
+    /**
+     * 如果是字典类型,请设置字典的type值 (如: sys_user_sex)
+     */
+    public String dictType() default "";
+
+    /**
+     * 读取内容转表达式 (如: 0=男,1=女,2=未知)
+     */
+    public String readConverterExp() default "";
+
+    /**
+     * 分隔符,读取字符串组内容
+     */
+    public String separator() default ",";
+
+    /**
+     * BigDecimal 精度 默认:-1(默认不开启BigDecimal格式化)
+     */
+    public int scale() default -1;
+
+    /**
+     * BigDecimal 舍入规则 默认:BigDecimal.ROUND_HALF_EVEN
+     */
+    public int roundingMode() default BigDecimal.ROUND_HALF_EVEN;
+
+    /**
+     * 导出时在excel中每个列的高度
+     */
+    public double height() default 14;
+
+    /**
+     * 导出时在excel中每个列的宽度
+     */
+    public double width() default 16;
+
+    /**
+     * 文字后缀,如% 90 变成90%
+     */
+    public String suffix() default "";
+
+    /**
+     * 当值为空时,字段的默认值
+     */
+    public String defaultValue() default "";
+
+    /**
+     * 提示信息
+     */
+    public String prompt() default "";
+
+    /**
+     * 是否允许内容换行 
+     */
+    public boolean wrapText() default false;
+
+    /**
+     * 设置只能选择不能输入的列内容.
+     */
+    public String[] combo() default {};
+
+    /**
+     * 是否从字典读数据到combo,默认不读取,如读取需要设置dictType注解.
+     */
+    public boolean comboReadDict() default false;
+
+    /**
+     * 是否需要纵向合并单元格,应对需求:含有list集合单元格)
+     */
+    public boolean needMerge() default false;
+
+    /**
+     * 是否导出数据,应对需求:有时我们需要导出一份模板,这是标题需要但内容需要用户手工填写.
+     */
+    public boolean isExport() default true;
+
+    /**
+     * 另一个类中的属性名称,支持多级获取,以小数点隔开
+     */
+    public String targetAttr() default "";
+
+    /**
+     * 是否自动统计数据,在最后追加一行统计数据总和
+     */
+    public boolean isStatistics() default false;
+
+    /**
+     * 导出类型(0数字 1字符串 2图片)
+     */
+    public ColumnType cellType() default ColumnType.STRING;
+
+    /**
+     * 导出列头背景颜色
+     */
+    public IndexedColors headerBackgroundColor() default IndexedColors.GREY_50_PERCENT;
+
+    /**
+     * 导出列头字体颜色
+     */
+    public IndexedColors headerColor() default IndexedColors.WHITE;
+
+    /**
+     * 导出单元格背景颜色
+     */
+    public IndexedColors backgroundColor() default IndexedColors.WHITE;
+
+    /**
+     * 导出单元格字体颜色
+     */
+    public IndexedColors color() default IndexedColors.BLACK;
+
+    /**
+     * 导出字段对齐方式
+     */
+    public HorizontalAlignment align() default HorizontalAlignment.CENTER;
+
+    /**
+     * 自定义数据处理器
+     */
+    public Class<?> handler() default ExcelHandlerAdapter.class;
+
+    /**
+     * 自定义数据处理器参数
+     */
+    public String[] args() default {};
+
+    /**
+     * 字段类型(0:导出导入;1:仅导出;2:仅导入)
+     */
+    Type type() default Type.ALL;
+
+    public enum Type
+    {
+        ALL(0), EXPORT(1), IMPORT(2);
+        private final int value;
+
+        Type(int value)
+        {
+            this.value = value;
+        }
+
+        public int value()
+        {
+            return this.value;
+        }
+    }
+
+    public enum ColumnType
+    {
+        NUMERIC(0), STRING(1), IMAGE(2), TEXT(3);
+        private final int value;
+
+        ColumnType(int value)
+        {
+            this.value = value;
+        }
+
+        public int value()
+        {
+            return this.value;
+        }
+    }
+}

+ 18 - 0
healsphere-common/src/main/java/com/zdqz/common/annotation/Excels.java

@@ -0,0 +1,18 @@
+package com.zdqz.common.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * Excel注解集
+ * 
+ * @author 攻心小虫
+ */
+@Target(ElementType.FIELD)
+@Retention(RetentionPolicy.RUNTIME)
+public @interface Excels
+{
+    public Excel[] value();
+}

+ 51 - 0
healsphere-common/src/main/java/com/zdqz/common/annotation/Log.java

@@ -0,0 +1,51 @@
+package com.zdqz.common.annotation;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+import com.zdqz.common.enums.BusinessType;
+import com.zdqz.common.enums.OperatorType;
+
+/**
+ * 自定义操作日志记录注解
+ * 
+ * @author 攻心小虫
+ *
+ */
+@Target({ ElementType.PARAMETER, ElementType.METHOD })
+@Retention(RetentionPolicy.RUNTIME)
+@Documented
+public @interface Log
+{
+    /**
+     * 模块
+     */
+    public String title() default "";
+
+    /**
+     * 功能
+     */
+    public BusinessType businessType() default BusinessType.OTHER;
+
+    /**
+     * 操作人类别
+     */
+    public OperatorType operatorType() default OperatorType.MANAGE;
+
+    /**
+     * 是否保存请求的参数
+     */
+    public boolean isSaveRequestData() default true;
+
+    /**
+     * 是否保存响应的参数
+     */
+    public boolean isSaveResponseData() default true;
+
+    /**
+     * 排除指定的请求参数
+     */
+    public String[] excludeParamNames() default {};
+}

+ 40 - 0
healsphere-common/src/main/java/com/zdqz/common/annotation/RateLimiter.java

@@ -0,0 +1,40 @@
+package com.zdqz.common.annotation;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+import com.zdqz.common.constant.CacheConstants;
+import com.zdqz.common.enums.LimitType;
+
+/**
+ * 限流注解
+ * 
+ * @author 攻心小虫
+ */
+@Target(ElementType.METHOD)
+@Retention(RetentionPolicy.RUNTIME)
+@Documented
+public @interface RateLimiter
+{
+    /**
+     * 限流key
+     */
+    public String key() default CacheConstants.RATE_LIMIT_KEY;
+
+    /**
+     * 限流时间,单位秒
+     */
+    public int time() default 60;
+
+    /**
+     * 限流次数
+     */
+    public int count() default 100;
+
+    /**
+     * 限流类型
+     */
+    public LimitType limitType() default LimitType.DEFAULT;
+}

+ 31 - 0
healsphere-common/src/main/java/com/zdqz/common/annotation/RepeatSubmit.java

@@ -0,0 +1,31 @@
+package com.zdqz.common.annotation;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Inherited;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * 自定义注解防止表单重复提交
+ * 
+ * @author 攻心小虫
+ *
+ */
+@Inherited
+@Target(ElementType.METHOD)
+@Retention(RetentionPolicy.RUNTIME)
+@Documented
+public @interface RepeatSubmit
+{
+    /**
+     * 间隔时间(ms),小于此时间视为重复提交
+     */
+    public int interval() default 5000;
+
+    /**
+     * 提示消息
+     */
+    public String message() default "不允许重复提交,请稍候再试";
+}

+ 0 - 0
healsphere-common/src/main/java/com/zdqz/common/annotation/Sensitive.java


この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません