49 lines
2.2 KiB
XML
49 lines
2.2 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.WmsComponentPackingMapper">
|
|
<select id="search" resultType="com.nflg.wms.common.pojo.vo.ComponentPackingVO">
|
|
select
|
|
id,no,matnr,name1,uname,vbeln,maktx,datum,xnum,cnum,bname,zjshz,zchep,tel_number,sernr,huodh,vbelv,p_name,
|
|
l_bezei,l_name,g_streen,g_str_suppl2,wbstk,is_completed,create_name,create_time,factory_no
|
|
from wms_component_packing
|
|
<where>
|
|
<if test="request.no !=null and request.no !=''">
|
|
and "no" ilike concat('%', #{request.no}, '%')
|
|
</if>
|
|
<if test="request.name1 !=null and request.name1 !=''">
|
|
and name1 ilike concat('%', #{request.name1}, '%')
|
|
</if>
|
|
<if test="request.pName !=null and request.pName !=''">
|
|
and p_name ilike concat('%', #{request.pName}, '%')
|
|
</if>
|
|
<if test="request.factoryNo !=null and request.factoryNo !=''">
|
|
and factory_no = #{request.factoryNo}
|
|
</if>
|
|
<if test="request.huodh !=null and request.huodh !=''">
|
|
and vbelv ilike concat('%', #{request.huodh}, '%')
|
|
</if>
|
|
<if test="request.vbeln !=null and request.vbeln !=''">
|
|
and vbeln ilike concat('%', #{request.vbeln}, '%')
|
|
</if>
|
|
<if test="request.startDate !=null">
|
|
and datum >= #{request.startDate}
|
|
</if>
|
|
<if test="request.endDate !=null">
|
|
and datum <= #{request.endDate}
|
|
</if>
|
|
</where>
|
|
order by id desc
|
|
</select>
|
|
|
|
<select id="getOutboundTask" resultType="com.nflg.wms.common.pojo.vo.ComponentPackingPdaVO">
|
|
select
|
|
id,no,vbeln,create_time,datum,vbelv,matnr,maktx,factory_no
|
|
from wms_component_packing
|
|
where is_completed=0
|
|
<if test="no !=null and no !=''">
|
|
and ("no" like concat('%', #{no}, '%') or vbelv like concat('%', #{no}, '%'))
|
|
</if>
|
|
order by datum desc
|
|
</select>
|
|
</mapper>
|