java110 лет назад: 5
Родитель
Сommit
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}