48 lines
1.8 KiB
XML
48 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.WmsOutProduceMapper">
|
|
|
|
<update id="releaseNum">
|
|
UPDATE wms_out_produce_item
|
|
SET lock_num=0
|
|
WHERE order_id IN
|
|
<foreach item="item" collection="ids" separator="," close=")" open="(">
|
|
#{item}
|
|
</foreach>
|
|
</update>
|
|
|
|
<select id="search" resultType="com.nflg.wms.common.pojo.vo.OutProduceVO">
|
|
SELECT *
|
|
FROM wms_out_produce
|
|
where "type"=#{request.type}
|
|
<if test="request.dataType!=null and request.type==0">
|
|
and data_type = #{request.dataType}
|
|
</if>
|
|
<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>
|
|
order by id desc
|
|
</select>
|
|
</mapper>
|