Kaynağa Gözat

查询定案类型错误

java110 6 yıl önce
ebeveyn
işleme
8e94ab79db

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

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