自动化立体仓库 - WMS系统
#
zwl
2025-05-20 cb5092a38a5123bd9da452ad311b9323561802b1
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,12 @@
        <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>
        <if test="model != null and model != ''">
            and mm.model like concat('%',#{model},'%')
        </if>
        ORDER BY mm.create_time DESC
    </select>