万材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.
 
 
 
 

200 lines
11 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.SaleorderlistMapper">
<resultMap type="Saleorderlist" id="SaleorderlistResult">
<result property="SaleOrderID" column="SaleOrderID" />
<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="Qty" column="Qty" />
<result property="Weight" column="Weight" />
<result property="crlName" column="Crl_Name" />
<result property="Price" column="Price" />
<result property="Amt" column="Amt" />
<result property="SendDate" column="SendDate" />
<result property="MemoList" column="MemoList" />
<result property="OrderQty" column="OrderQty" />
<result property="qQty" column="Q_Qty" />
<result property="wldm" column="wldm" />
<result property="piNo" column="PI_NO" />
<result property="rmbHuilv" column="RMB_HuiLv" />
<result property="rmbAmt" column="RMB_AMT" />
<result property="nowYm" column="Now_YM" />
<result property="ylMrp" column="YL_MRP" />
<result property="zzgdOrderqty" column="ZZGD_OrderQty" />
<result property="zzgdQQty" column="ZZGD_Q_Qty" />
<result property="returnQty" column="Return_QTY" />
<result property="jaQty" column="JA_QTY" />
<result property="jaFlag" column="JA_FLAG" />
<result property="jaMan" column="JA_MAN" />
<result property="jaTime" column="JA_time" />
<result property="versionNo" column="Version_NO" />
</resultMap>
<sql id="selectSaleorderlistVo">
select SaleOrderID, PNO, Wl_Code, Itemname, Itemstandard, Machine_no, Stock_dw, Qty, Weight, Crl_Name, Price, Amt, SendDate, MemoList, OrderQty, Q_Qty, wldm, PI_NO, RMB_HuiLv, RMB_AMT, Now_YM, YL_MRP, ZZGD_OrderQty, ZZGD_Q_Qty, Return_QTY, JA_QTY, JA_FLAG, JA_MAN, JA_time, Version_NO from saleorderlist
</sql>
<select id="selectSaleorderlistList" parameterType="Saleorderlist" resultMap="SaleorderlistResult">
<include refid="selectSaleorderlistVo"/>
<where>
<if test="SaleOrderID != null and SaleOrderID != ''"> and SaleOrderID = #{SaleOrderID}</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="Qty != null "> and Qty = #{Qty}</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="SendDate != null "> and SendDate = #{SendDate}</if>
<if test="MemoList != null and MemoList != ''"> and MemoList = #{MemoList}</if>
<if test="OrderQty != null "> and OrderQty = #{OrderQty}</if>
<if test="qQty != null "> and Q_Qty = #{qQty}</if>
<if test="wldm != null and wldm != ''"> and wldm = #{wldm}</if>
<if test="piNo != null and piNo != ''"> and PI_NO = #{piNo}</if>
<if test="rmbHuilv != null "> and RMB_HuiLv = #{rmbHuilv}</if>
<if test="rmbAmt != null "> and RMB_AMT = #{rmbAmt}</if>
<if test="nowYm != null and nowYm != ''"> and Now_YM = #{nowYm}</if>
<if test="ylMrp != null and ylMrp != ''"> and YL_MRP = #{ylMrp}</if>
<if test="zzgdOrderqty != null "> and ZZGD_OrderQty = #{zzgdOrderqty}</if>
<if test="zzgdQQty != null "> and ZZGD_Q_Qty = #{zzgdQQty}</if>
<if test="returnQty != null "> and Return_QTY = #{returnQty}</if>
<if test="jaQty != null "> and JA_QTY = #{jaQty}</if>
<if test="jaFlag != null "> and JA_FLAG = #{jaFlag}</if>
<if test="jaMan != null and jaMan != ''"> and JA_MAN = #{jaMan}</if>
<if test="jaTime != null "> and JA_time = #{jaTime}</if>
<if test="versionNo != null and versionNo != ''"> and Version_NO = #{versionNo}</if>
</where>
</select>
<select id="selectSaleorderlistById" parameterType="String" resultMap="SaleorderlistResult">
<include refid="selectSaleorderlistVo"/>
where SaleOrderID = #{SaleOrderID}
</select>
<insert id="insertSaleorderlist" parameterType="Saleorderlist">
insert into saleorderlist
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="SaleOrderID != null and SaleOrderID != ''">SaleOrderID,</if>
<if test="PNO != null">PNO,</if>
<if test="wlCode != null">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="Qty != null">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="SendDate != null">SendDate,</if>
<if test="MemoList != null">MemoList,</if>
<if test="OrderQty != null">OrderQty,</if>
<if test="qQty != null">Q_Qty,</if>
<if test="wldm != null">wldm,</if>
<if test="piNo != null">PI_NO,</if>
<if test="rmbHuilv != null">RMB_HuiLv,</if>
<if test="rmbAmt != null">RMB_AMT,</if>
<if test="nowYm != null">Now_YM,</if>
<if test="ylMrp != null">YL_MRP,</if>
<if test="zzgdOrderqty != null">ZZGD_OrderQty,</if>
<if test="zzgdQQty != null">ZZGD_Q_Qty,</if>
<if test="returnQty != null">Return_QTY,</if>
<if test="jaQty != null">JA_QTY,</if>
<if test="jaFlag != null">JA_FLAG,</if>
<if test="jaMan != null">JA_MAN,</if>
<if test="jaTime != null">JA_time,</if>
<if test="versionNo != null">Version_NO,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="SaleOrderID != null and SaleOrderID != ''">#{SaleOrderID},</if>
<if test="PNO != null">#{PNO},</if>
<if test="wlCode != null">#{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="Qty != null">#{Qty},</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="SendDate != null">#{SendDate},</if>
<if test="MemoList != null">#{MemoList},</if>
<if test="OrderQty != null">#{OrderQty},</if>
<if test="qQty != null">#{qQty},</if>
<if test="wldm != null">#{wldm},</if>
<if test="piNo != null">#{piNo},</if>
<if test="rmbHuilv != null">#{rmbHuilv},</if>
<if test="rmbAmt != null">#{rmbAmt},</if>
<if test="nowYm != null">#{nowYm},</if>
<if test="ylMrp != null">#{ylMrp},</if>
<if test="zzgdOrderqty != null">#{zzgdOrderqty},</if>
<if test="zzgdQQty != null">#{zzgdQQty},</if>
<if test="returnQty != null">#{returnQty},</if>
<if test="jaQty != null">#{jaQty},</if>
<if test="jaFlag != null">#{jaFlag},</if>
<if test="jaMan != null">#{jaMan},</if>
<if test="jaTime != null">#{jaTime},</if>
<if test="versionNo != null">#{versionNo},</if>
</trim>
</insert>
<update id="updateSaleorderlist" parameterType="Saleorderlist">
update saleorderlist
<trim prefix="SET" suffixOverrides=",">
<if test="PNO != null">PNO = #{PNO},</if>
<if test="wlCode != null">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="Qty != null">Qty = #{Qty},</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="SendDate != null">SendDate = #{SendDate},</if>
<if test="MemoList != null">MemoList = #{MemoList},</if>
<if test="OrderQty != null">OrderQty = #{OrderQty},</if>
<if test="qQty != null">Q_Qty = #{qQty},</if>
<if test="wldm != null">wldm = #{wldm},</if>
<if test="piNo != null">PI_NO = #{piNo},</if>
<if test="rmbHuilv != null">RMB_HuiLv = #{rmbHuilv},</if>
<if test="rmbAmt != null">RMB_AMT = #{rmbAmt},</if>
<if test="nowYm != null">Now_YM = #{nowYm},</if>
<if test="ylMrp != null">YL_MRP = #{ylMrp},</if>
<if test="zzgdOrderqty != null">ZZGD_OrderQty = #{zzgdOrderqty},</if>
<if test="zzgdQQty != null">ZZGD_Q_Qty = #{zzgdQQty},</if>
<if test="returnQty != null">Return_QTY = #{returnQty},</if>
<if test="jaQty != null">JA_QTY = #{jaQty},</if>
<if test="jaFlag != null">JA_FLAG = #{jaFlag},</if>
<if test="jaMan != null">JA_MAN = #{jaMan},</if>
<if test="jaTime != null">JA_time = #{jaTime},</if>
<if test="versionNo != null">Version_NO = #{versionNo},</if>
</trim>
where SaleOrderID = #{SaleOrderID}
</update>
<delete id="deleteSaleorderlistById" parameterType="String">
delete from saleorderlist where SaleOrderID = #{SaleOrderID}
</delete>
<delete id="deleteSaleorderlistByIds" parameterType="String">
delete from saleorderlist where SaleOrderID in
<foreach item="SaleOrderID" collection="array" open="(" separator="," close=")">
#{SaleOrderID}
</foreach>
</delete>
</mapper>