2025-09-08 21:41:56 +08:00
|
|
|
|
<?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">
|
2025-09-09 17:19:06 +08:00
|
|
|
|
<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 like concat('%', #{request.no}, '%')
|
|
|
|
|
|
</if>
|
|
|
|
|
|
<if test="request.name1 !=null and request.name1 !=''">
|
|
|
|
|
|
and name1 like concat('%', #{request.name1}, '%')
|
|
|
|
|
|
</if>
|
|
|
|
|
|
<if test="request.pName !=null and request.pName !=''">
|
|
|
|
|
|
and pName like concat('%', #{request.pName}, '%')
|
|
|
|
|
|
</if>
|
|
|
|
|
|
<if test="request.factoryNo !=null and request.factoryNo !=''">
|
|
|
|
|
|
and factoryNo = #{request.factoryNo}
|
|
|
|
|
|
</if>
|
|
|
|
|
|
<if test="request.huodh !=null and request.huodh !=''">
|
|
|
|
|
|
and huodh like concat('%', #{request.huodh}, '%')
|
|
|
|
|
|
</if>
|
|
|
|
|
|
<if test="request.vbeln !=null and request.vbeln !=''">
|
|
|
|
|
|
and vbeln like 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 create_time desc
|
|
|
|
|
|
</select>
|
2025-09-08 21:41:56 +08:00
|
|
|
|
|
2025-09-09 17:19:06 +08:00
|
|
|
|
<select id="getOutboundTask" resultType="com.nflg.wms.common.pojo.vo.ComponentPackingPdaVO">
|
|
|
|
|
|
select
|
|
|
|
|
|
id,no,vbeln,create_time
|
|
|
|
|
|
from wms_component_packing
|
|
|
|
|
|
where (is_completed=0 or is_completed=1)
|
|
|
|
|
|
<if test="request.no !=null and request.no !=''">
|
|
|
|
|
|
and (no like concat('%', #{request.no}, '%') or vbeln like concat('%', #{request.no}, '%'))
|
|
|
|
|
|
</if>
|
|
|
|
|
|
order by create_time desc
|
|
|
|
|
|
</select>
|
2025-09-08 21:41:56 +08:00
|
|
|
|
</mapper>
|