src/main/resources/mapper/MatMapper.xml
@@ -60,6 +60,7 @@ group by matnr ) as mld on mld.matnr = mm.matnr WHERE 1=1 and (mm.memo is null or mm.memo != '打包上线') AND (CHARINDEX(','+#{tagId}+',', ','+mt.path+',') > 0 OR mt.id = #{tagId}) <if test="matnr != null and matnr != ''"> and mm.matnr like concat('%',#{matnr},'%') @@ -67,6 +68,9 @@ <if test="maktx != null and maktx != ''"> and mm.maktx like concat('%',#{maktx},'%') </if> <if test="specs != null and specs != ''"> and mm.specs like concat('%',#{specs},'%') </if> ORDER BY mm.create_time DESC </select>