37 lines
1.6 KiB
XML
37 lines
1.6 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.WmsInProduceOrderSurplusMapper">
|
|
|
|
<select id="search" resultType="com.nflg.wms.repository.entity.WmsInProduceOrderSurplus">
|
|
SELECT *
|
|
FROM wms_in_produce_order_surplus
|
|
<where>
|
|
<if test="request.no!=null and request.no!=''">
|
|
and "no" ilike concat('%', #{request.no}, '%')
|
|
</if>
|
|
<if test="request.aufnr!=null and request.aufnr!=''">
|
|
and aufnr ilike concat('%', #{request.aufnr}, '%')
|
|
</if>
|
|
<if test="request.dwerk!=null and request.dwerk!=''">
|
|
and dwerk ilike concat('%', #{request.dwerk}, '%')
|
|
</if>
|
|
<if test="request.ktext!=null and request.ktext!=''">
|
|
and ktext ilike concat('%', #{request.ktext}, '%')
|
|
</if>
|
|
<if test="request.plnbez!=null and request.plnbez!=''">
|
|
and plnbez ilike concat('%', #{request.plnbez}, '%')
|
|
</if>
|
|
<if test="request.lgort2!=null and request.lgort2!=''">
|
|
and lgort2 ilike concat('%', #{request.lgort2}, '%')
|
|
</if>
|
|
<if test="request.startDate!=null">
|
|
and create_time >= #{request.startDate}
|
|
</if>
|
|
<if test="request.endDate!=null">
|
|
and create_time <= #{request.endDate}
|
|
</if>
|
|
</where>
|
|
order by id desc
|
|
</select>
|
|
</mapper>
|