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
|
2025-09-10 21:37:58 +08:00
|
|
|
|
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
|
2025-09-09 17:19:06 +08:00
|
|
|
|
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 !=''">
|
2025-09-10 21:37:58 +08:00
|
|
|
|
and p_name like concat('%', #{request.pName}, '%')
|
2025-09-09 17:19:06 +08:00
|
|
|
|
</if>
|
|
|
|
|
|
<if test="request.factoryNo !=null and request.factoryNo !=''">
|
2025-09-10 21:37:58 +08:00
|
|
|
|
and factory_no = #{request.factoryNo}
|
2025-09-09 17:19:06 +08:00
|
|
|
|
</if>
|
|
|
|
|
|
<if test="request.huodh !=null and request.huodh !=''">
|
2025-09-10 21:37:58 +08:00
|
|
|
|
and vbelv like concat('%', #{request.huodh}, '%')
|
2025-09-09 17:19:06 +08:00
|
|
|
|
</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
|
2025-09-10 21:37:58 +08:00
|
|
|
|
id,no,vbeln,create_time,datum,vbelv,matnr,maktx
|
2025-09-09 17:19:06 +08:00
|
|
|
|
from wms_component_packing
|
2025-09-10 12:10:24 +08:00
|
|
|
|
where is_completed=0
|
|
|
|
|
|
<if test="no !=null and no !=''">
|
|
|
|
|
|
and (no like concat('%', #{no}, '%') or vbelv like concat('%', #{no}, '%'))
|
2025-09-09 17:19:06 +08:00
|
|
|
|
</if>
|
2025-09-10 12:10:24 +08:00
|
|
|
|
order by datum desc
|
2025-09-09 17:19:06 +08:00
|
|
|
|
</select>
|
2025-09-08 21:41:56 +08:00
|
|
|
|
</mapper>
|