<?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>
|