自动化立体仓库 - WMS系统
zwl
2026-01-15 2b80cfa1ea7b8f177cc53e1ed3299e4db3ecac1d
src/main/resources/mapper/third/ExdInstockSourceMapper.xml
@@ -5,6 +5,7 @@
<mapper namespace="com.zy.third.mapper.ExdInstockSourceMapper">
    <resultMap id="BaseResultMap" type="com.zy.third.entity.ExdInstockSource">
            <id property="ID" column="ID" />
            <result property="finterid" column="FInterID" />
            <result property="fbillno" column="FBillNo" />
            <result property="ftrantype" column="FTranType" />
@@ -39,26 +40,31 @@
    </resultMap>
    <sql id="Base_Column_List">
        FInterID,FBillNo,FTranType,FDate,FROB,FDeptID,
        FSupplyID,FBillerID,FEntryID,FItemID,FQty,
        Fprice,FBatchNo,FUnitID,FSourceBillNo,FSourceEntryID,
        FSourceInterId,FSourceTranType,FDCSPID,FDCStockID,FOrderBillNo,
        FOrderEntryID,FOrderInterID,FPlanMode,WriteTime,Writor,
        Status,ReadTime,Reador,WritorMsg,ReadorMsg
        ID,FInterID,FBillNo,FTranType,FDate,FROB,
        FDeptID,FSupplyID,FBillerID,FEntryID,FItemID,
        FQty,Fprice,FBatchNo,FUnitID,FSourceBillNo,
        FSourceEntryID,FSourceInterId,FSourceTranType,FDCSPID,FDCStockID,
        FOrderBillNo,FOrderEntryID,FOrderInterID,FPlanMode,WriteTime,
        Writor,Status,ReadTime,Reador,WritorMsg,
        ReadorMsg
    </sql>
    <select id="listOrderNo" resultMap="BaseResultMap">
        select top 100 distinct FBillNo
        <include refid="Base_Column_List" />
    <select id="listOrderNo" resultType="java.lang.String">
        select distinct fbillno
        from Exd_Instock_Source
        where status = 0
        where status in(0,4)
    </select>
    <select id="listAll" resultMap="BaseResultMap">
        select
        <include refid="Base_Column_List" />
    <select id="deletelistOrderNo" resultType="com.zy.third.entity.ExdInstockSource">
        select *
        from Exd_Instock_Source
        where FBillNo = #{fbillno}
        where status = 5
    </select>
    <select id="listAll" resultType="com.zy.third.entity.ExdInstockSource">
            select  * from Exd_Instock_Source where fbillno = #{orderNo} and Status in(0,1,2,3,4)
    </select>
</mapper>