39 lines
1.7 KiB
XML
39 lines
1.7 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.WmsTransferCompanyMapper">
|
|
|
|
<select id="search" resultType="com.nflg.wms.repository.entity.WmsTransferCompany">
|
|
select *
|
|
from wms_transfer_company
|
|
<where>
|
|
<if test="request.startDate!=null">
|
|
and create_time >= #{request.startDate}
|
|
</if>
|
|
<if test="request.endDate!=null">
|
|
and create_time <= #{request.endDate}
|
|
</if>
|
|
<if test="request.no!=null and request.no!=''">
|
|
and "no" like concat('%',#{request.no},'%')
|
|
</if>
|
|
<if test="request.werks!=null and request.werks!=''">
|
|
and werks like concat('%',#{request.werks},'%')
|
|
</if>
|
|
<if test="request.bukrs!=null and request.bukrs!=''">
|
|
and bukrs like concat('%',#{request.bukrs},'%')
|
|
</if>
|
|
<if test="request.bukrs1!=null and request.bukrs1!=''">
|
|
and bukrs1 like concat('%',#{request.bukrs1},'%')
|
|
</if>
|
|
<if test="request.lgort!=null and request.lgort!=''">
|
|
and lgort like concat('%',#{request.lgort},'%')
|
|
</if>
|
|
<if test="request.reswk!=null and request.reswk!=''">
|
|
and reswk like concat('%',#{request.reswk},'%')
|
|
</if>
|
|
<if test="request.lgfsb1!=null and request.lgfsb1!=''">
|
|
and lgfsb1 like concat('%',#{request.lgfsb1},'%')
|
|
</if>
|
|
</where>
|
|
</select>
|
|
</mapper>
|