Procházet zdrojové kódy

查询定案类型错误

java110 před 5 roky
rodič
revize
8e94ab79db

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

@@ -292,8 +292,9 @@
             </if>
         </set>
         where
+        1=1
         <if test="machineCode !=null and machineCode != ''">
-            t.machine_code= #{machineCode}
+            and t.machine_code= #{machineCode}
         </if>
         <if test="communityId !=null and communityId != ''">
             and t.community_id= #{communityId}