#
luxiaotao1123
2024-03-18 b670c64208a10c789bc7ab61eddb1f8528ef8daa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zy.asrs.common.wms.mapper.PriorMapper">
 
    <sql id="pageCondition">
        <if test="map.host_id != null and map.host_id != ''">
            and host_id = #{map.host_id}
        </if>
        <if test="map.matnr != null and map.matnr != ''">
            and matnr like concat('%',#{map.matnr},'%')
        </if>
        <if test="map.maktx != null and map.maktx != ''">
            and maktx like concat('%',#{map.maktx},'%')
        </if>
        <if test="map.loc_no != null and map.loc_no != ''">
            and loc_no like concat('%',#{map.loc_no},'%')
        </if>
    </sql>
 
    <select id="selectSafeStoPage" resultType="com.zy.asrs.common.domain.dto.SafeStoDo">
        select * from wms_prior
        where 1=1
        <include refid="pageCondition"></include>
    </select>
 
</mapper>