万材erp项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

215 lines
12 KiB

<?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.ruoyi.finance.mapper.SendcplistMapper">
<resultMap type="Sendcplist" id="SendcplistResult">
<result property="outputID" column="outputID" />
<result property="PNO" column="PNO" />
<result property="wlCode" column="Wl_Code" />
<result property="Itemname" column="Itemname" />
<result property="Itemstandard" column="Itemstandard" />
<result property="machineNo" column="Machine_no" />
<result property="stockDw" column="Stock_dw" />
<result property="planQty" column="Plan_Qty" />
<result property="Qty" column="Qty" />
<result property="returnQty" column="Return_Qty" />
<result property="Weight" column="Weight" />
<result property="crlName" column="Crl_Name" />
<result property="Price" column="Price" />
<result property="Amt" column="Amt" />
<result property="MemoList" column="MemoList" />
<result property="wldm" column="wldm" />
<result property="orderno" column="orderno" />
<result property="endFlag" column="end_flag" />
<result property="piNo" column="PI_NO" />
<result property="rmbHuilv" column="RMB_Huilv" />
<result property="nowsalePrice" column="nowsale_price" />
<result property="nowsaleRmbPrice" column="NowSale_RMB_Price" />
<result property="useQty" column="Use_Qty" />
<result property="useDate" column="use_date" />
<result property="useMemo" column="USE_MEMO" />
<result property="confirmMan" column="Confirm_Man" />
<result property="nowPrice" column="now_price" />
<result property="versionNo" column="Version_NO" />
<result property="haveVsAccount" column="Have_VS_Account" />
<result property="haveVsMan" column="Have_VS_Man" />
<result property="haveVsTime" column="Have_VS_time" />
<result property="dzQty" column="DZ_Qty" />
<result property="lastDzQty" column="LAST_DZ_QTY" />
</resultMap>
<sql id="selectSendcplistVo">
select outputID, PNO, Wl_Code, Itemname, Itemstandard, Machine_no, Stock_dw, Plan_Qty, Qty, Return_Qty, Weight, Crl_Name, Price, Amt, MemoList, wldm, orderno, end_flag, PI_NO, RMB_Huilv, nowsale_price, NowSale_RMB_Price, Use_Qty, use_date, USE_MEMO, Confirm_Man, now_price, Version_NO, Have_VS_Account, Have_VS_Man, Have_VS_time, DZ_Qty, LAST_DZ_QTY from sendcplist
</sql>
<select id="selectSendcplistList" parameterType="Sendcplist" resultMap="SendcplistResult">
<include refid="selectSendcplistVo"/>
<where>
<if test="outputID != null and outputID != ''"> and outputID = #{outputID}</if>
<if test="PNO != null and PNO != ''"> and PNO = #{PNO}</if>
<if test="wlCode != null and wlCode != ''"> and Wl_Code = #{wlCode}</if>
<if test="Itemname != null and Itemname != ''"> and Itemname like concat('%', #{Itemname}, '%')</if>
<if test="Itemstandard != null and Itemstandard != ''"> and Itemstandard = #{Itemstandard}</if>
<if test="machineNo != null and machineNo != ''"> and Machine_no = #{machineNo}</if>
<if test="stockDw != null and stockDw != ''"> and Stock_dw = #{stockDw}</if>
<if test="planQty != null "> and Plan_Qty = #{planQty}</if>
<if test="Qty != null "> and Qty = #{Qty}</if>
<if test="returnQty != null "> and Return_Qty = #{returnQty}</if>
<if test="Weight != null "> and Weight = #{Weight}</if>
<if test="crlName != null and crlName != ''"> and Crl_Name like concat('%', #{crlName}, '%')</if>
<if test="Price != null "> and Price = #{Price}</if>
<if test="Amt != null "> and Amt = #{Amt}</if>
<if test="MemoList != null and MemoList != ''"> and MemoList = #{MemoList}</if>
<if test="wldm != null and wldm != ''"> and wldm = #{wldm}</if>
<if test="orderno != null and orderno != ''"> and orderno = #{orderno}</if>
<if test="endFlag != null "> and end_flag = #{endFlag}</if>
<if test="piNo != null and piNo != ''"> and PI_NO = #{piNo}</if>
<if test="rmbHuilv != null "> and RMB_Huilv = #{rmbHuilv}</if>
<if test="nowsalePrice != null "> and nowsale_price = #{nowsalePrice}</if>
<if test="nowsaleRmbPrice != null "> and NowSale_RMB_Price = #{nowsaleRmbPrice}</if>
<if test="useQty != null "> and Use_Qty = #{useQty}</if>
<if test="useDate != null "> and use_date = #{useDate}</if>
<if test="useMemo != null and useMemo != ''"> and USE_MEMO = #{useMemo}</if>
<if test="confirmMan != null and confirmMan != ''"> and Confirm_Man = #{confirmMan}</if>
<if test="nowPrice != null "> and now_price = #{nowPrice}</if>
<if test="versionNo != null and versionNo != ''"> and Version_NO = #{versionNo}</if>
<if test="haveVsAccount != null "> and Have_VS_Account = #{haveVsAccount}</if>
<if test="haveVsMan != null and haveVsMan != ''"> and Have_VS_Man = #{haveVsMan}</if>
<if test="haveVsTime != null "> and Have_VS_time = #{haveVsTime}</if>
<if test="dzQty != null "> and DZ_Qty = #{dzQty}</if>
<if test="lastDzQty != null "> and LAST_DZ_QTY = #{lastDzQty}</if>
</where>
</select>
<select id="selectSendcplistById" parameterType="String" resultMap="SendcplistResult">
<include refid="selectSendcplistVo"/>
where outputID = #{outputID}
</select>
<insert id="insertSendcplist" parameterType="Sendcplist">
insert into sendcplist
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="outputID != null and outputID != ''">outputID,</if>
<if test="PNO != null">PNO,</if>
<if test="wlCode != null and wlCode != ''">Wl_Code,</if>
<if test="Itemname != null">Itemname,</if>
<if test="Itemstandard != null">Itemstandard,</if>
<if test="machineNo != null">Machine_no,</if>
<if test="stockDw != null">Stock_dw,</if>
<if test="planQty != null">Plan_Qty,</if>
<if test="Qty != null">Qty,</if>
<if test="returnQty != null">Return_Qty,</if>
<if test="Weight != null">Weight,</if>
<if test="crlName != null">Crl_Name,</if>
<if test="Price != null">Price,</if>
<if test="Amt != null">Amt,</if>
<if test="MemoList != null">MemoList,</if>
<if test="wldm != null">wldm,</if>
<if test="orderno != null">orderno,</if>
<if test="endFlag != null">end_flag,</if>
<if test="piNo != null">PI_NO,</if>
<if test="rmbHuilv != null">RMB_Huilv,</if>
<if test="nowsalePrice != null">nowsale_price,</if>
<if test="nowsaleRmbPrice != null">NowSale_RMB_Price,</if>
<if test="useQty != null">Use_Qty,</if>
<if test="useDate != null">use_date,</if>
<if test="useMemo != null">USE_MEMO,</if>
<if test="confirmMan != null">Confirm_Man,</if>
<if test="nowPrice != null">now_price,</if>
<if test="versionNo != null">Version_NO,</if>
<if test="haveVsAccount != null">Have_VS_Account,</if>
<if test="haveVsMan != null">Have_VS_Man,</if>
<if test="haveVsTime != null">Have_VS_time,</if>
<if test="dzQty != null">DZ_Qty,</if>
<if test="lastDzQty != null">LAST_DZ_QTY,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="outputID != null and outputID != ''">#{outputID},</if>
<if test="PNO != null">#{PNO},</if>
<if test="wlCode != null and wlCode != ''">#{wlCode},</if>
<if test="Itemname != null">#{Itemname},</if>
<if test="Itemstandard != null">#{Itemstandard},</if>
<if test="machineNo != null">#{machineNo},</if>
<if test="stockDw != null">#{stockDw},</if>
<if test="planQty != null">#{planQty},</if>
<if test="Qty != null">#{Qty},</if>
<if test="returnQty != null">#{returnQty},</if>
<if test="Weight != null">#{Weight},</if>
<if test="crlName != null">#{crlName},</if>
<if test="Price != null">#{Price},</if>
<if test="Amt != null">#{Amt},</if>
<if test="MemoList != null">#{MemoList},</if>
<if test="wldm != null">#{wldm},</if>
<if test="orderno != null">#{orderno},</if>
<if test="endFlag != null">#{endFlag},</if>
<if test="piNo != null">#{piNo},</if>
<if test="rmbHuilv != null">#{rmbHuilv},</if>
<if test="nowsalePrice != null">#{nowsalePrice},</if>
<if test="nowsaleRmbPrice != null">#{nowsaleRmbPrice},</if>
<if test="useQty != null">#{useQty},</if>
<if test="useDate != null">#{useDate},</if>
<if test="useMemo != null">#{useMemo},</if>
<if test="confirmMan != null">#{confirmMan},</if>
<if test="nowPrice != null">#{nowPrice},</if>
<if test="versionNo != null">#{versionNo},</if>
<if test="haveVsAccount != null">#{haveVsAccount},</if>
<if test="haveVsMan != null">#{haveVsMan},</if>
<if test="haveVsTime != null">#{haveVsTime},</if>
<if test="dzQty != null">#{dzQty},</if>
<if test="lastDzQty != null">#{lastDzQty},</if>
</trim>
</insert>
<update id="updateSendcplist" parameterType="Sendcplist">
update sendcplist
<trim prefix="SET" suffixOverrides=",">
<if test="PNO != null">PNO = #{PNO},</if>
<if test="wlCode != null and wlCode != ''">Wl_Code = #{wlCode},</if>
<if test="Itemname != null">Itemname = #{Itemname},</if>
<if test="Itemstandard != null">Itemstandard = #{Itemstandard},</if>
<if test="machineNo != null">Machine_no = #{machineNo},</if>
<if test="stockDw != null">Stock_dw = #{stockDw},</if>
<if test="planQty != null">Plan_Qty = #{planQty},</if>
<if test="Qty != null">Qty = #{Qty},</if>
<if test="returnQty != null">Return_Qty = #{returnQty},</if>
<if test="Weight != null">Weight = #{Weight},</if>
<if test="crlName != null">Crl_Name = #{crlName},</if>
<if test="Price != null">Price = #{Price},</if>
<if test="Amt != null">Amt = #{Amt},</if>
<if test="MemoList != null">MemoList = #{MemoList},</if>
<if test="wldm != null">wldm = #{wldm},</if>
<if test="orderno != null">orderno = #{orderno},</if>
<if test="endFlag != null">end_flag = #{endFlag},</if>
<if test="piNo != null">PI_NO = #{piNo},</if>
<if test="rmbHuilv != null">RMB_Huilv = #{rmbHuilv},</if>
<if test="nowsalePrice != null">nowsale_price = #{nowsalePrice},</if>
<if test="nowsaleRmbPrice != null">NowSale_RMB_Price = #{nowsaleRmbPrice},</if>
<if test="useQty != null">Use_Qty = #{useQty},</if>
<if test="useDate != null">use_date = #{useDate},</if>
<if test="useMemo != null">USE_MEMO = #{useMemo},</if>
<if test="confirmMan != null">Confirm_Man = #{confirmMan},</if>
<if test="nowPrice != null">now_price = #{nowPrice},</if>
<if test="versionNo != null">Version_NO = #{versionNo},</if>
<if test="haveVsAccount != null">Have_VS_Account = #{haveVsAccount},</if>
<if test="haveVsMan != null">Have_VS_Man = #{haveVsMan},</if>
<if test="haveVsTime != null">Have_VS_time = #{haveVsTime},</if>
<if test="dzQty != null">DZ_Qty = #{dzQty},</if>
<if test="lastDzQty != null">LAST_DZ_QTY = #{lastDzQty},</if>
</trim>
where outputID = #{outputID}
</update>
<delete id="deleteSendcplistById" parameterType="String">
delete from sendcplist where outputID = #{outputID}
</delete>
<delete id="deleteSendcplistByIds" parameterType="String">
delete from sendcplist where outputID in
<foreach item="outputID" collection="array" open="(" separator="," close=")">
#{outputID}
</foreach>
</delete>
</mapper>