Kaynağa Gözat

优化type_cd错误问题

吴学文 6 yıl önce
ebeveyn
işleme
996b5389f7

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

@@ -131,7 +131,7 @@ machine_id,machine_code,operate,type_cd,machine_translate_id,obj_id,obj_name,sta
         communityId,t.b_id,t.b_id bId,td.name typeCdName,td1.name stateName
         communityId,t.b_id,t.b_id bId,td.name typeCdName,td1.name stateName
         from machine_translate t,t_dict td,t_dict td1
         from machine_translate t,t_dict td,t_dict td1
         where 1 =1
         where 1 =1
-        and t.machine_type_cd=td.status_cd
+        and t.type_cd=td.status_cd
         and td.table_name='machine_translate'
         and td.table_name='machine_translate'
         and td.table_columns='type_cd'
         and td.table_columns='type_cd'
         and t.state=td1.status_cd
         and t.state=td1.status_cd
@@ -216,7 +216,7 @@ machine_id,machine_code,operate,type_cd,machine_translate_id,obj_id,obj_name,sta
         select count(1) count
         select count(1) count
         from machine_translate t,t_dict td,t_dict td1
         from machine_translate t,t_dict td,t_dict td1
         where 1 =1
         where 1 =1
-        and t.machine_type_cd=td.status_cd
+        and t.type_cd=td.status_cd
         and td.table_name='machine_translate'
         and td.table_name='machine_translate'
         and td.table_columns='type_cd'
         and td.table_columns='type_cd'
         and t.state=td1.status_cd
         and t.state=td1.status_cd