src/main/resources/mapper/MatMapper.xml
@@ -55,9 +55,10 @@ LEFT JOIN ( select matnr, sum(anfme) as amount sum(anfme) as amount, batch from man_loc_detl group by matnr group by matnr,batch ) as mld on mld.matnr = mm.matnr WHERE 1=1 and (mm.memo is null or mm.memo != '打包上线') @@ -68,6 +69,9 @@ <if test="maktx != null and maktx != ''"> and mm.maktx like concat('%',#{maktx},'%') </if> <if test="batch != null and batch != ''"> and mld.batch like concat('%',#{batch},'%') </if> ORDER BY mm.create_time DESC </select>