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

255 lines
15 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.stock.mapper.InputheadMapper">
<resultMap type="Inputhead" id="InputheadResult">
<result property="inputID" column="inputID" />
<result property="inputNO" column="inputNO" />
<result property="poNo" column="PO_NO" />
<result property="pCode" column="P_CODE" />
<result property="pName" column="P_Name" />
<result property="pLinkman" column="P_LinkMan" />
<result property="pTel" column="P_TEL" />
<result property="pFax" column="P_FAX" />
<result property="StockNO" column="StockNO" />
<result property="StockName" column="StockName" />
<result property="Stockman" column="Stockman" />
<result property="inputclass" column="inputclass" />
<result property="inputdate" column="inputdate" />
<result property="chinaInOrOut" column="China_in_or_out" />
<result property="bzMemo" column="BZ_memo" />
<result property="cancelFlag" column="Cancel_Flag" />
<result property="Itemclass" column="Itemclass" />
<result property="workNo" column="Work_NO" />
<result property="piNo" column="PI_NO" />
<result property="inputvoice" column="inputvoice" />
<result property="NWX" column="NWX" />
<result property="ym" column="ym" />
<result property="pqcId" column="PQC_ID" />
<result property="InClassFlag" column="InClassFlag" />
<result property="comfirmFlag" column="Comfirm_Flag" />
<result property="poId" column="PO_ID" />
<result property="auditingFlag" column="Auditing_Flag" />
<result property="approveFlag" column="Approve_Flag" />
<result property="machineno" column="machineno" />
<result property="machinename" column="machinename" />
<result property="writeman" column="writeman" />
<result property="inqcId" column="INQC_ID" />
<result property="qcId" column="QC_ID" />
<result property="InsertTime" column="InsertTime" />
<result property="DayWriteFlag" column="DayWriteFlag" />
<result property="produceClass" column="Produce_Class" />
<result property="TID" column="TID" />
<result property="dbId" column="DB_ID" />
<result property="haveVsAccount" column="Have_VS_Account" />
<result property="haveVsMan" column="Have_VS_Man" />
<result property="haveVsTime" column="Have_VS_time" />
<result property="worklineNo" column="Workline_NO" />
<result property="hsYm" column="HS_YM" />
</resultMap>
<sql id="selectInputheadVo">
select inputID, inputNO, PO_NO, P_CODE, P_Name, P_LinkMan, P_TEL, P_FAX, StockNO, StockName, Stockman, inputclass, inputdate, China_in_or_out, BZ_memo, Cancel_Flag, Itemclass, Work_NO, PI_NO, inputvoice, NWX, ym, PQC_ID, InClassFlag, Comfirm_Flag, PO_ID, Auditing_Flag, Approve_Flag, machineno, machinename, writeman, INQC_ID, QC_ID, InsertTime, DayWriteFlag, Produce_Class, TID, DB_ID, Have_VS_Account, Have_VS_Man, Have_VS_time, Workline_NO, HS_YM from inputhead
</sql>
<select id="selectInputheadList" parameterType="Inputhead" resultMap="InputheadResult">
<include refid="selectInputheadVo"/>
<where>
<if test="inputNO != null and inputNO != ''"> and inputNO = #{inputNO}</if>
<if test="poNo != null and poNo != ''"> and PO_NO = #{poNo}</if>
<if test="pCode != null and pCode != ''"> and P_CODE = #{pCode}</if>
<if test="pName != null and pName != ''"> and P_Name like concat('%', #{pName}, '%')</if>
<if test="pLinkman != null and pLinkman != ''"> and P_LinkMan = #{pLinkman}</if>
<if test="pTel != null and pTel != ''"> and P_TEL = #{pTel}</if>
<if test="pFax != null and pFax != ''"> and P_FAX = #{pFax}</if>
<if test="StockNO != null and StockNO != ''"> and StockNO = #{StockNO}</if>
<if test="StockName != null and StockName != ''"> and StockName like concat('%', #{StockName}, '%')</if>
<if test="Stockman != null and Stockman != ''"> and Stockman = #{Stockman}</if>
<if test="inputclass != null and inputclass != ''"> and inputclass = #{inputclass}</if>
<if test="inputdate != null "> and inputdate = #{inputdate}</if>
<if test="chinaInOrOut != null "> and China_in_or_out = #{chinaInOrOut}</if>
<if test="bzMemo != null and bzMemo != ''"> and BZ_memo = #{bzMemo}</if>
<if test="cancelFlag != null "> and Cancel_Flag = #{cancelFlag}</if>
<if test="Itemclass != null and Itemclass != ''"> and Itemclass = #{Itemclass}</if>
<if test="workNo != null and workNo != ''"> and Work_NO = #{workNo}</if>
<if test="piNo != null and piNo != ''"> and PI_NO = #{piNo}</if>
<if test="inputvoice != null and inputvoice != ''"> and inputvoice = #{inputvoice}</if>
<if test="NWX != null and NWX != ''"> and NWX = #{NWX}</if>
<if test="ym != null and ym != ''"> and ym = #{ym}</if>
<if test="pqcId != null and pqcId != ''"> and PQC_ID = #{pqcId}</if>
<if test="poId != null and poId != ''"> and PO_ID = #{poId}</if>
<if test="auditingFlag != null "> and Auditing_Flag = #{auditingFlag}</if>
<if test="approveFlag != null "> and Approve_Flag = #{approveFlag}</if>
<if test="machineno != null and machineno != ''"> and machineno = #{machineno}</if>
<if test="machinename != null and machinename != ''"> and machinename like concat('%', #{machinename}, '%')</if>
<if test="writeman != null and writeman != ''"> and writeman = #{writeman}</if>
<if test="inqcId != null and inqcId != ''"> and INQC_ID = #{inqcId}</if>
<if test="qcId != null and qcId != ''"> and QC_ID = #{qcId}</if>
<if test="InsertTime != null "> and InsertTime = #{InsertTime}</if>
<if test="DayWriteFlag != null "> and DayWriteFlag = #{DayWriteFlag}</if>
<if test="worklineNo != null and worklineNo != ''"> and Workline_NO = #{worklineNo}</if>
</where>
</select>
<select id="selectInputheadById" parameterType="String" resultMap="InputheadResult">
<include refid="selectInputheadVo"/>
where inputID = #{inputID}
</select>
<insert id="insertInputhead" parameterType="Inputhead">
insert into inputhead
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="inputID != null">inputID,</if>
<if test="inputNO != null">inputNO,</if>
<if test="poNo != null">PO_NO,</if>
<if test="pCode != null">P_CODE,</if>
<if test="pName != null">P_Name,</if>
<if test="pLinkman != null">P_LinkMan,</if>
<if test="pTel != null">P_TEL,</if>
<if test="pFax != null">P_FAX,</if>
<if test="StockNO != null">StockNO,</if>
<if test="StockName != null">StockName,</if>
<if test="Stockman != null">Stockman,</if>
<if test="inputclass != null">inputclass,</if>
<if test="inputdate != null">inputdate,</if>
<if test="chinaInOrOut != null">China_in_or_out,</if>
<if test="bzMemo != null">BZ_memo,</if>
<if test="cancelFlag != null">Cancel_Flag,</if>
<if test="Itemclass != null">Itemclass,</if>
<if test="workNo != null">Work_NO,</if>
<if test="piNo != null">PI_NO,</if>
<if test="inputvoice != null">inputvoice,</if>
<if test="NWX != null">NWX,</if>
<if test="ym != null">ym,</if>
<if test="pqcId != null">PQC_ID,</if>
<if test="InClassFlag != null">InClassFlag,</if>
<if test="comfirmFlag != null">Comfirm_Flag,</if>
<if test="poId != null">PO_ID,</if>
<if test="auditingFlag != null">Auditing_Flag,</if>
<if test="approveFlag != null">Approve_Flag,</if>
<if test="machineno != null">machineno,</if>
<if test="machinename != null">machinename,</if>
<if test="writeman != null">writeman,</if>
<if test="inqcId != null">INQC_ID,</if>
<if test="qcId != null">QC_ID,</if>
<if test="InsertTime != null">InsertTime,</if>
<if test="DayWriteFlag != null">DayWriteFlag,</if>
<if test="produceClass != null">Produce_Class,</if>
<if test="TID != null">TID,</if>
<if test="dbId != null">DB_ID,</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="worklineNo != null">Workline_NO,</if>
<if test="hsYm != null">HS_YM,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="inputID != null">#{inputID},</if>
<if test="inputNO != null">#{inputNO},</if>
<if test="poNo != null">#{poNo},</if>
<if test="pCode != null">#{pCode},</if>
<if test="pName != null">#{pName},</if>
<if test="pLinkman != null">#{pLinkman},</if>
<if test="pTel != null">#{pTel},</if>
<if test="pFax != null">#{pFax},</if>
<if test="StockNO != null">#{StockNO},</if>
<if test="StockName != null">#{StockName},</if>
<if test="Stockman != null">#{Stockman},</if>
<if test="inputclass != null">#{inputclass},</if>
<if test="inputdate != null">#{inputdate},</if>
<if test="chinaInOrOut != null">#{chinaInOrOut},</if>
<if test="bzMemo != null">#{bzMemo},</if>
<if test="cancelFlag != null">#{cancelFlag},</if>
<if test="Itemclass != null">#{Itemclass},</if>
<if test="workNo != null">#{workNo},</if>
<if test="piNo != null">#{piNo},</if>
<if test="inputvoice != null">#{inputvoice},</if>
<if test="NWX != null">#{NWX},</if>
<if test="ym != null">#{ym},</if>
<if test="pqcId != null">#{pqcId},</if>
<if test="InClassFlag != null">#{InClassFlag},</if>
<if test="comfirmFlag != null">#{comfirmFlag},</if>
<if test="poId != null">#{poId},</if>
<if test="auditingFlag != null">#{auditingFlag},</if>
<if test="approveFlag != null">#{approveFlag},</if>
<if test="machineno != null">#{machineno},</if>
<if test="machinename != null">#{machinename},</if>
<if test="writeman != null">#{writeman},</if>
<if test="inqcId != null">#{inqcId},</if>
<if test="qcId != null">#{qcId},</if>
<if test="InsertTime != null">#{InsertTime},</if>
<if test="DayWriteFlag != null">#{DayWriteFlag},</if>
<if test="produceClass != null">#{produceClass},</if>
<if test="TID != null">#{TID},</if>
<if test="dbId != null">#{dbId},</if>
<if test="haveVsAccount != null">#{haveVsAccount},</if>
<if test="haveVsMan != null">#{haveVsMan},</if>
<if test="haveVsTime != null">#{haveVsTime},</if>
<if test="worklineNo != null">#{worklineNo},</if>
<if test="hsYm != null">#{hsYm},</if>
</trim>
</insert>
<update id="updateInputhead" parameterType="Inputhead">
update inputhead
<trim prefix="SET" suffixOverrides=",">
<if test="inputNO != null">inputNO = #{inputNO},</if>
<if test="poNo != null">PO_NO = #{poNo},</if>
<if test="pCode != null">P_CODE = #{pCode},</if>
<if test="pName != null">P_Name = #{pName},</if>
<if test="pLinkman != null">P_LinkMan = #{pLinkman},</if>
<if test="pTel != null">P_TEL = #{pTel},</if>
<if test="pFax != null">P_FAX = #{pFax},</if>
<if test="StockNO != null">StockNO = #{StockNO},</if>
<if test="StockName != null">StockName = #{StockName},</if>
<if test="Stockman != null">Stockman = #{Stockman},</if>
<if test="inputclass != null">inputclass = #{inputclass},</if>
<if test="inputdate != null">inputdate = #{inputdate},</if>
<if test="chinaInOrOut != null">China_in_or_out = #{chinaInOrOut},</if>
<if test="bzMemo != null">BZ_memo = #{bzMemo},</if>
<if test="cancelFlag != null">Cancel_Flag = #{cancelFlag},</if>
<if test="Itemclass != null">Itemclass = #{Itemclass},</if>
<if test="workNo != null">Work_NO = #{workNo},</if>
<if test="piNo != null">PI_NO = #{piNo},</if>
<if test="inputvoice != null">inputvoice = #{inputvoice},</if>
<if test="NWX != null">NWX = #{NWX},</if>
<if test="ym != null">ym = #{ym},</if>
<if test="pqcId != null">PQC_ID = #{pqcId},</if>
<if test="InClassFlag != null">InClassFlag = #{InClassFlag},</if>
<if test="comfirmFlag != null">Comfirm_Flag = #{comfirmFlag},</if>
<if test="poId != null">PO_ID = #{poId},</if>
<if test="auditingFlag != null">Auditing_Flag = #{auditingFlag},</if>
<if test="approveFlag != null">Approve_Flag = #{approveFlag},</if>
<if test="machineno != null">machineno = #{machineno},</if>
<if test="machinename != null">machinename = #{machinename},</if>
<if test="writeman != null">writeman = #{writeman},</if>
<if test="inqcId != null">INQC_ID = #{inqcId},</if>
<if test="qcId != null">QC_ID = #{qcId},</if>
<if test="InsertTime != null">InsertTime = #{InsertTime},</if>
<if test="DayWriteFlag != null">DayWriteFlag = #{DayWriteFlag},</if>
<if test="produceClass != null">Produce_Class = #{produceClass},</if>
<if test="TID != null">TID = #{TID},</if>
<if test="dbId != null">DB_ID = #{dbId},</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="worklineNo != null">Workline_NO = #{worklineNo},</if>
<if test="hsYm != null">HS_YM = #{hsYm},</if>
</trim>
where inputID = #{inputID}
</update>
<delete id="deleteInputheadById" parameterType="String">
delete from inputhead where inputID = #{inputID}
</delete>
<delete id="deleteInputheadByIds" parameterType="String">
delete from inputhead where inputID in
<foreach item="inputID" collection="array" open="(" separator="," close=")">
#{inputID}
</foreach>
</delete>
</mapper>