27 lines
1.1 KiB
XML
27 lines
1.1 KiB
XML
|
|
<?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.nflg.wms.repository.mapper.UserAgentMapper">
|
||
|
|
|
||
|
|
<select id="search" resultType="com.nflg.wms.common.pojo.vo.UserAgentVO">
|
||
|
|
select *
|
||
|
|
from v_user_agent
|
||
|
|
<where>
|
||
|
|
<if test="request.name!=null and request.name!=''">
|
||
|
|
and (agen_name like concat('%', #{request.name}, '%')
|
||
|
|
or abbreviation like concat('%', #{request.name}, '%')
|
||
|
|
or abbreviation1 like concat('%', #{request.name}, '%')
|
||
|
|
or abbreviation2 like concat('%', #{request.name}, '%'))
|
||
|
|
</if>
|
||
|
|
<if test="request.code!=null and request.code!=''">
|
||
|
|
and agen_code like concat('%', #{request.code}, '%')
|
||
|
|
</if>
|
||
|
|
<if test="request.startDate != null">
|
||
|
|
and vu.create_time >= #{request.startDate}
|
||
|
|
</if>
|
||
|
|
<if test="request.endDate != null">
|
||
|
|
and vu.create_time <= #{request.endDate}
|
||
|
|
</if>
|
||
|
|
</where>
|
||
|
|
</select>
|
||
|
|
</mapper>
|