Explorar el Código

增加单位与设备绑定。

zhengqiang hace 5 años
padre
commit
dc1875da72
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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}
 				)
 			)