ICSShipmentDetailMapper.xml 9.79 KB
<?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.huaheng.pc.icsShipment.icsShipmentDetail.mapper.ICSShipmentDetailMapper">
    <insert id="insertModel">
        INSERT INTO icsShipment_detail
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="cCode != null">
                cCode,
            </if>
            <if test="ID != null">
                ID,
            </if>
            <if test="AutoID != null">
                AutoID,
            </if>
            <if test="rowno != null">
                rowno,
            </if>
            <if test="cItemName != null">
                cItemName,
            </if>
            <if test="DLID != null">
                DLID,
            </if>
            <if test="cSOCode != null">
                cSOCode,
            </if>
            <if test="cSOID != null">
                cSOID,
            </if>
            <if test="cSOAutoID != null">
                cSOAutoID,
            </if>
            <if test="MoId != null">
                MoId,
            </if>
            <if test="MoCode != null">
                MoCode,
            </if>
            <if test="SortSeq != null">
                SortSeq,
            </if>
            <if test="cWHCode != null">
                cWHCode,
            </if>
            <if test="cWHName != null">
                cWHName,
            </if>
            <if test="cInvCode != null">
                cInvCode,
            </if>
            <if test="cInvName != null">
                cInvName,
            </if>
            <if test="cInvStd != null">
                cInvStd,
            </if>
            <if test="iQuantity != null">
                iQuantity,
            </if>
            <if test="cQuantity != null">
                cQuantity,
            </if>
            <if test="cComUnitName != null">
                cComUnitName,
            </if>
            <if test="StartDate != null">
                StartDate,
            </if>
            <if test="DueDate != null">
                DueDate,
            </if>
            <if test="CompanyCode != null">
                CompanyCode,
            </if>
            <if test="cModifyDate != null">
                cModifyDate,
            </if>
            <if test="cMemo != null">
                cMemo,
            </if>
            <if test="iMaIDs != null">
                iMaIDs,
            </if>
            <if test="POCode != null">
                POCode,
            </if>
            <if test="POID != null">
                POID,
            </if>
            <if test="PODID != null">
                PODID,
            </if>
            <if test="iTrIds != null">
                iTrIds,
            </if>
            <if test="iMaIDs != null">
                iDLsID,
            </if>
        </trim>
        <trim prefix=" values (" suffix=")" suffixOverrides=",">
            <if test="cCode != null">
                #{cCode, jdbcType=VARCHAR},
            </if>
            <if test="ID != null">
                #{ID, jdbcType=INTEGER},
            </if>
            <if test="AutoID != null">
                #{AutoID, jdbcType=INTEGER},
            </if>
            <if test="rowno != null">
                #{rowno, jdbcType=INTEGER},
            </if>
            <if test="cItemName != null">
                #{cItemName, jdbcType=VARCHAR},
            </if>
            <if test="DLID != null">
                #{DLID, jdbcType=INTEGER},
            </if>
            <if test="cSOCode != null">
                #{cSOCode, jdbcType=VARCHAR},
            </if>
            <if test="cSOID != null">
                #{cSOID, jdbcType=INTEGER},
            </if>
            <if test="cSOAutoID != null">
                #{cSOAutoID, jdbcType=INTEGER},
            </if>
            <if test="MoId != null">
                #{MoId, jdbcType=INTEGER},
            </if>
            <if test="MoCode != null">
                #{MoCode, jdbcType=VARCHAR},
            </if>
            <if test="SortSeq != null">
                #{SortSeq, jdbcType=INTEGER},
            </if>
            <if test="cWHCode != null">
                #{cWHCode, jdbcType=VARCHAR},
            </if>
            <if test="cWHName != null">
                #{cWHName, jdbcType=VARCHAR},
            </if>
            <if test="cInvCode != null">
                #{cInvCode, jdbcType=VARCHAR},
            </if>
            <if test="cInvName != null">
                #{cInvName, jdbcType=VARCHAR},
            </if>
            <if test="cInvStd != null">
                #{cInvStd, jdbcType=VARCHAR},
            </if>
            <if test="iQuantity != null">
                #{iQuantity, jdbcType=DECIMAL},
            </if>
            <if test="cQuantity != null">
                #{cQuantity, jdbcType=DECIMAL},
            </if>
            <if test="cComUnitName != null">
                #{cComUnitName, jdbcType=VARCHAR},
            </if>
            <if test="StartDate != null">
                #{StartDate, jdbcType=DATETIME},
            </if>
            <if test="DueDate != null">
                #{DueDate, jdbcType=DATETIME},
            </if>
            <if test="CompanyCode != null">
                #{CompanyCode, jdbcType=VARCHAR},
            </if>
            <if test="cModifyDate != null">
                #{cModifyDate, jdbcType=DATETIME},
            </if>
            <if test="cMemo != null">
                #{cMemo, jdbcType=VARCHAR},
            </if>
            <if test="iMaIDs != null">
                #{iMaIDs, jdbcType=INTEGER},
            </if>
            <if test="POCode != null">
                #{POCode, jdbcType=VARCHAR},
            </if>
            <if test="POID != null">
                #{POID, jdbcType=INTEGER},
            </if>
            <if test="PODID != null">
                #{PODID, jdbcType=INTEGER},
            </if>
            <if test="iTrIds != null">
                #{iTrIds, jdbcType=INTEGER},
            </if>
            <if test="iMaIDs != null">
                #{iMaIDs, jdbcType=INTEGER},
            </if>
        </trim>
    </insert>

    <select id="selectModel"
            resultType="com.huaheng.pc.icsShipment.icsShipmentDetail.domain.ICSShipmentDetail">
        SELECT cCode, ID, AutoID,rowno,cItemName, DLID, cSOCode, cSOID, cSOAutoID , MoId, MoDId,MoCode, SortSeq, cWHCode,cWHName,cInvCode,cInvName,cInvStd,iQuantity,cQuantity,cComUnitName,StartDate,DueDate,CompanyCode,cModifyDate,cMemo,iMaIDs, POCode, POID, PODID, iTrIds, iDLsID
        from icsShipment_detail
        <where>
            <if test="cCode != null">
                AND cCode = #{cCode}
            </if>
            <if test="ID != null">
                AND ID = #{ID}
            </if>
            <if test="AutoID != null">
                AND AutoID = #{AutoID}
            </if>
            <if test="cItemName != null">
                AND cItemName = #{cItemName}
            </if>
            <if test="rowno != null">
                AND rowno = #{rowno}
            </if>
            <if test="DLID != null">
                AND DLID = #{DLID}
            </if>
            <if test="cSOCode != null">
                AND cSOCode = #{cSOCode}
            </if>
            <if test="cSOID != null">
                AND cSOID = #{cSOID}
            </if>
            <if test="cSOAutoID != null">
                AND cSOAutoID = #{cSOAutoID}
            </if>
            <if test="MoId != null">
                AND MoId = #{MoId}
            </if>
            <if test="MoDId != null">
                AND MoDId = #{MoDId}
            </if>
            <if test="MoCode != null">
                AND MoCode = #{MoCode}
            </if>
            <if test="SortSeq != null">
                AND SortSeq = #{SortSeq}
            </if>
            <if test="cWHCode != null">
                AND cWHCode = #{cWHCode}
            </if>
            <if test="cWHName != null">
                AND cWHName = #{cWHName}
            </if>
            <if test="cInvCode != null">
                AND cInvCode = #{cInvCode}
            </if>
            <if test="cInvName != null">
                AND cInvName = #{cInvName}
            </if>
            <if test="cInvStd != null">
                AND cInvStd = #{cInvStd}
            </if>
            <if test="iQuantity != null">
                AND iQuantity = #{iQuantity}
            </if>
            <if test="cQuantity != null">
                AND cQuantity = #{cQuantity}
            </if>
            <if test="cComUnitName != null">
                AND cComUnitName = #{cComUnitName}
            </if>
            <if test="StartDate != null">
                AND StartDate = #{StartDate}
            </if>
            <if test="DueDate != null">
                AND DueDate = #{DueDate}
            </if>
            <if test="CompanyCode != null">
                AND CompanyCode = #{CompanyCode}
            </if>
            <if test="cModifyDate != null">
                AND cModifyDate = #{cModifyDate}
            </if>
            <if test="cMemo != null">
                AND cMemo = #{cMemo}
            </if>
            <if test="iMaIDs != null">
                AND iMaIDs = #{iMaIDs}
            </if>
            <if test="POCode != null">
                AND POCode = #{POCode}
            </if>
            <if test="POID != null">
                AND POID = #{POID}
            </if>
            <if test="PODID != null">
                AND PODID = #{PODID}
            </if>
            <if test="iTrIds != null">
                AND iTrIds = #{iTrIds}
            </if>
            <if test="iDLsID != null">
                AND iDLsID = #{iDLsID}
            </if>
        </where>

    </select>

    <select id="selectList" resultType="com.huaheng.pc.icsShipment.icsShipmentDetail.domain.ICSShipmentDetail"></select>
</mapper>