Pārlūkot izejas kodu

Merge remote-tracking branch 'origin/master'

yumeng 4 gadi atpakaļ
vecāks
revīzija
fda7aa25be

+ 3 - 1
module-common/src/main/java/cn/com/ctop/common/module/mapper/xml/MaterialInfoMapper.xml

@@ -119,7 +119,9 @@
         matInfo.project_id,
         matInfo.id
         from ctop_material_info matInfo
-        left join ctop_material_tag_info tagInfo on tagInfo.code = matInfo.code
+        <if test="tagCode!=null">
+            left join ctop_material_tag_info tagInfo on tagInfo.code = matInfo.code
+        </if>
         where 1=1
         <if test="tagCode!=null">
             and tagInfo.tag_code like concat(#{tagCode},'%')