Przeglądaj źródła

修改素材库代码sql逻辑

syh 4 lat temu
rodzic
commit
e0139963a8

+ 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},'%')