hanfucheng 9 tháng trước cách đây
mục cha
commit
993da7b7c5

+ 3 - 3
src/main/resources/mapper/housingconstruction/CenterdataTHousingconstructionViewMapper.xml

@@ -445,10 +445,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             u.latitude,
             u.gas_address gasAddress,
             d.address,
-            l.dept_name deptName,
+            a.dept_name deptName,
         round( st_distance_sphere ( point ( #{longitude}, #{latitude}), point ( longitude, latitude ) ), 2 ) AS distance
-        FROM
-        centerdata_t_housingconstruction_steelcylinder_log l
+        FROM centerdata_t_housingconstruction_steelcylinder a
+        left join centerdata_t_housingconstruction_steelcylinder_log l
         LEFT JOIN centerdata_t_housingconstruction_realnameuser u ON u.id = l.join_house_id
         LEFT JOIN (SELECT
                     a.steelcylinder_id,