Przeglądaj źródła

优化sql 错误

wuxw 6 lat temu
rodzic
commit
72832ec272

+ 4 - 4
java110-db/src/main/resources/mapper/hardwareAdapation/CarInoutServiceDaoImplMapper.xml

@@ -88,8 +88,8 @@
         from car_inout t,t_dict td1
         from car_inout t,t_dict td1
         where 1 =1
         where 1 =1
         and t.state = td1.status_cd
         and t.state = td1.status_cd
-        and a.table_name = 'car_inout'
-        and a.table_columns = 'state'
+        and td1.table_name = 'car_inout'
+        and td1.table_columns = 'state'
         <if test="inTime !=null ">
         <if test="inTime !=null ">
             and t.in_time= #{inTime}
             and t.in_time= #{inTime}
         </if>
         </if>
@@ -165,8 +165,8 @@
         from car_inout t,t_dict td1
         from car_inout t,t_dict td1
         where 1 =1
         where 1 =1
         and t.state = td1.status_cd
         and t.state = td1.status_cd
-        and a.table_name = 'car_inout'
-        and a.table_columns = 'state'
+        and td1.table_name = 'car_inout'
+        and td1.table_columns = 'state'
         <if test="inTime !=null ">
         <if test="inTime !=null ">
             and t.in_time= #{inTime}
             and t.in_time= #{inTime}
         </if>
         </if>