自动化立体仓库 - WMS系统
#
zjj
2023-09-13 714c1e607ed8992d7a8c926ef1f795c43866c2dd
#
1个文件已修改
44 ■■■■ 已修改文件
src/main/resources/mapper/LocDetlMapper.xml 44 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/LocDetlMapper.xml
@@ -84,38 +84,38 @@
    <sql id="stockOutCondition1">
    <if test="mat_no!=null and mat_no!='' ">
        and mat_no like '%' + #{mat_no} + '%'
        and c.mat_no like '%' + #{mat_no} + '%'
    </if>
    <if test="mat_name!=null and mat_name!='' ">
        and mat_name like '%' + #{mat_name} + '%'
        and c.mat_name like '%' + #{mat_name} + '%'
    </if>
    <if test="supplier!=null and supplier!=''" >
        and supplier like '%'+#{supplier}+'%'
        and c.supplier like '%'+#{supplier}+'%'
    </if>
    <if test="str3!=null and str3!=''" >
        and str3 like '%'+#{str3}+'%'
        and c.str3 like '%'+#{str3}+'%'
    </if>
    <if test="str4!=null and str4!=''" >
        and str4 like '%'+#{str4}+'%'
        and c.str4 like '%'+#{str4}+'%'
    </if>
    <if test="memo!=null and memo!='' ">
        and (
        mat_no like '%' + #{memo} + '%'
        or mat_name like '%' + #{memo} + '%'
        or qty like '%' + #{memo} + '%'
        or str3 like '%' + #{memo} + '%'
        or unit like '%' + #{memo} + '%'
        or specs like '%' + #{memo} + '%'
        or size like '%' + #{memo} + '%'
        or color like '%' + #{memo} + '%'
        or supplier like '%' + #{memo} + '%'
        or source like '%' + #{memo} + '%'
        or vendor like '%' + #{memo} + '%'
        or qty_box like '%' + #{memo} + '%'
        or str3 like '%' + #{memo} + '%'
        or str4 like '%' + #{memo} + '%'
        or str5 like '%' + #{memo} + '%'
        or memo like '%' + #{memo} + '%'
        c.mat_no like '%' + #{memo} + '%'
        or c.mat_name like '%' + #{memo} + '%'
        or c.qty like '%' + #{memo} + '%'
        or c.str3 like '%' + #{memo} + '%'
        or c.unit like '%' + #{memo} + '%'
        or c.specs like '%' + #{memo} + '%'
        or c.size like '%' + #{memo} + '%'
        or c.color like '%' + #{memo} + '%'
        or c.supplier like '%' + #{memo} + '%'
        or c.source like '%' + #{memo} + '%'
        or c.vendor like '%' + #{memo} + '%'
        or c.qty_box like '%' + #{memo} + '%'
        or c.str3 like '%' + #{memo} + '%'
        or c.str4 like '%' + #{memo} + '%'
        or c.str5 like '%' + #{memo} + '%'
        or c.memo like '%' + #{memo} + '%'
        )
    </if>
    </sql>
@@ -246,6 +246,8 @@
        ) a
        group by a.mat_no,a.mat_name,a.str3,a.specs,a.unit,a.color,a.qty_box,a.weight,a.str4,a.str5,num1,str6
        ) d
        where 1=1
<!--        select count(1) from-->
<!--        (-->
<!--        select ROW_NUMBER() over (order by a.mat_no) as row,-->