diff --git a/newfiber-termites/newfiber-termites-dataup/src/main/resources/mapper/termite/TermiteMapper.xml b/newfiber-termites/newfiber-termites-dataup/src/main/resources/mapper/termite/TermiteMapper.xml
index e43cdcf..267638d 100644
--- a/newfiber-termites/newfiber-termites-dataup/src/main/resources/mapper/termite/TermiteMapper.xml
+++ b/newfiber-termites/newfiber-termites-dataup/src/main/resources/mapper/termite/TermiteMapper.xml
@@ -31,12 +31,12 @@
ta.create_time as createTime
FROM
`ter_device_info` ta
- JOIN ter_project_user pu ON ta.project_code = pu.project_code
+
LEFT JOIN ter_device_monitoring_data_realtime tb ON ta.sn = tb.sn
where 1=1 and ta.del_flag = 0
-
- and pu.user_id = #{request.userId}
-
+
+
+
and pu.project_name like concat('%',#{request.projectName},'%')
@@ -82,6 +82,13 @@
+
+
+ and pu.user_id = #{request.userId}
+
+ INNER JOIN ter_project_user pu ON ta.project_code = pu.project_code AND pu.user_id = #{request.userId}
+
+
UPDATE `ter_device_info`
SET