diff --git a/src/main/java/com/heai/common/config/PdaTitleAdvice.java b/src/main/java/com/heai/common/config/PdaTitleAdvice.java
new file mode 100644
index 0000000..13c3767
--- /dev/null
+++ b/src/main/java/com/heai/common/config/PdaTitleAdvice.java
@@ -0,0 +1,39 @@
+package com.heai.common.config;
+
+import org.springframework.beans.factory.config.YamlPropertiesFactoryBean;
+import org.springframework.core.io.ClassPathResource;
+import org.springframework.web.bind.annotation.ControllerAdvice;
+import org.springframework.web.bind.annotation.ModelAttribute;
+
+import java.util.Properties;
+
+/**
+ * 从 application-dev.yml 读取 PDA 标题并注入 Freemarker。
+ * 不依赖当前 spring.profiles.active,避免 test/prod 环境读不到该文件。
+ */
+@ControllerAdvice
+public class PdaTitleAdvice {
+
+ private static final String DEFAULT_TITLE = "赫艾-PDA";
+
+ @ModelAttribute("project_title")
+ public String projectTitle() {
+ return loadPdaTitle();
+ }
+
+ private String loadPdaTitle() {
+ try {
+ YamlPropertiesFactoryBean yaml = new YamlPropertiesFactoryBean();
+ yaml.setResources(new ClassPathResource("application-dev.yml"));
+ Properties properties = yaml.getObject();
+ if (properties != null) {
+ String title = properties.getProperty("pda.title");
+ if (title != null && !title.trim().isEmpty()) {
+ return title.trim();
+ }
+ }
+ } catch (Exception ignored) {
+ }
+ return DEFAULT_TITLE;
+ }
+}
diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml
index dc14fd9..00c7180 100644
--- a/src/main/resources/application-dev.yml
+++ b/src/main/resources/application-dev.yml
@@ -52,4 +52,8 @@ spring:
# driver-class-name: org.postgresql.Driver
# url: jdbc:postgresql://localhost:5432/gaotao_security
# username: gaotao
-# password: 123456
\ No newline at end of file
+# password: 123456
+
+# PDA 登录页 / 首页标题
+pda:
+ title: 赫艾-PDA
\ No newline at end of file
diff --git a/src/main/resources/mapper/pms/QcMapper.xml b/src/main/resources/mapper/pms/QcMapper.xml
index a2905f7..dac2dc9 100644
--- a/src/main/resources/mapper/pms/QcMapper.xml
+++ b/src/main/resources/mapper/pms/QcMapper.xml
@@ -4942,7 +4942,7 @@
from
part
where
- site = #{query.site}
+ site = #{query.site} and Active = 'Y'