Pārlūkot izejas kodu

优化 查询设备是的sql 错误

wuxw 6 gadi atpakaļ
vecāks
revīzija
e9949aa934

+ 2 - 2
java110-db/src/main/resources/mapper/hardwareAdapation/MachineServiceDaoImplMapper.xml

@@ -255,10 +255,10 @@ machine_name,machine_type_cd,machine_ip,location_type_cd,location_obj_id,state
         and t.machine_type_cd=td.status_cd
         and td.table_name='machine'
         and td.table_columns='machine_type_cd'
-        and td.state = td1.status_cd
+        and t.state = td1.status_cd
         and td1.table_name='machine'
         and td1.table_columns='state'
-        and td.location_type_cd = td2.status_cd
+        and t.location_type_cd = td2.status_cd
         and td2.table_name='machine'
         and td2.table_columns='location_type_cd'
         <if test="machineMac !=null and machineMac != ''">