Browse Source

扫码后台0215完成18:50

maoyunfeng 5 năm trước cách đây
mục cha
commit
3ebf0c0fe2
1 tập tin đã thay đổi với 6 bổ sung5 xóa
  1. 6 5
      whepi-web/src/main/resources/mapper/SweepCodeMapper.xml

+ 6 - 5
whepi-web/src/main/resources/mapper/SweepCodeMapper.xml

@@ -11,12 +11,13 @@
      c.date,
      c.in_type,
      g.linkman
-     from sys_uptown a
-     inner join out_scan c on c.uptown_id = a.uptown_id
+     from out_scan c
+     inner join sys_user_role t on c.user_id = t.user_id and role_id =1
+     inner join sys_uptown_home g on g.house_id = t.property_id
+     inner join sys_uptown a on c.uptown_id = a.uptown_id
      inner join sys_uptown_door b on c.door_id = b.door_id
-     inner join sys_uptown_unit d on d.uptown_id = b.uptown_id
-     inner join sys_uptown_house e on e.unit_id = d.unit_id
-     inner join sys_uptown_home g on g.house_id = e.house_id
+     inner join sys_uptown_house e on e.house_id = t.property_id
+     inner join sys_uptown_unit d on d.unit_id = e.unit_id
         <where>
          <if test="queryProperties != null and queryProperties != ''">
           a.uptown_name like concat('%',#{queryProperties},'%')