44 lines
1.8 KiB
XML
44 lines
1.8 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.WmsTransferFactoryMapper">
|
|
|
|
<select id="search" resultType="com.nflg.wms.repository.entity.WmsTransferFactory">
|
|
select *
|
|
from wms_transfer_factory
|
|
<where>
|
|
<if test="request.startDate!=null">
|
|
and bdter::date >= #{request.startDate}
|
|
</if>
|
|
<if test="request.endDate!=null">
|
|
and bdter::date <= #{request.endDate}
|
|
</if>
|
|
<if test="request.no != null and request.no!=''">
|
|
and "no" ilike concat('%',#{request.no},'%')
|
|
</if>
|
|
<if test="request.rsnum != null and request.rsnum!=''">
|
|
and rsnum ilike concat('%',#{request.rsnum},'%')
|
|
</if>
|
|
<if test="request.lgort != null and request.lgort!=''">
|
|
and lgort ilike concat('%',#{request.lgort},'%')
|
|
</if>
|
|
<if test="request.umlgo != null and request.umlgo!=''">
|
|
and umlgo ilike concat('%',#{request.umlgo},'%')
|
|
</if>
|
|
<if test="request.werks != null and request.werks!=''">
|
|
and werks ilike concat('%',#{request.werks},'%')
|
|
</if>
|
|
</where>
|
|
order by id desc
|
|
</select>
|
|
|
|
<select id="getProhibitDelete" resultType="java.lang.String">
|
|
SELECT tf."no"
|
|
FROM wms_transfer_factory tf
|
|
INNER JOIN wms_transfer_factory_ticket tft ON tft.order_id=tf."id"
|
|
WHERE tf.id IN
|
|
<foreach item="item" collection="ids" separator="," open="(" close=")">
|
|
#{item}
|
|
</foreach>
|
|
</select>
|
|
</mapper>
|