Browse Source

增加单位与设备绑定。

zhengqiang 5 years ago
parent
commit
dc1875da72
1 changed files with 2 additions and 2 deletions
  1. 2 2
      common/src/main/resources/mapper/base/DeviceInfo.xml

+ 2 - 2
common/src/main/resources/mapper/base/DeviceInfo.xml

@@ -183,8 +183,8 @@ id_, header_,device_no,alias_name,address_,is_online,company_id,unlock_password,
 			(
 				a.company_id = #{0}
 				or
-				id_ in(
-					select b.company_id from base_company_device_relation b
+				a.id_ in(
+					select b.device_id from base_company_device_relation b
 					where b.device_id=a.id_ and b.company_id=#{0}
 				)
 			)