自动化立体仓库 - WMS系统
zwl
2026-01-15 2b80cfa1ea7b8f177cc53e1ed3299e4db3ecac1d
src/main/resources/mapper/third/ExdOutstockSourceMapper.xml
@@ -5,6 +5,7 @@
<mapper namespace="com.zy.third.mapper.ExdOutstockSourceMapper">
    <resultMap id="BaseResultMap" type="com.zy.third.entity.ExdOutstockSource">
            <id property="ID" column="ID" />
            <result property="finterid" column="FInterID" />
            <result property="fbillno" column="FBillNo" />
            <result property="ftrantype" column="FTranType" />
@@ -41,27 +42,32 @@
    </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,FSCSPID,
        FSCStockID,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,
        FSCSPID,FSCStockID,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" />
        from Exd_Instock_Source
        where status = 0
    <select id="listOrderNo" resultType="java.lang.String">
            select distinct fbillno
            from Exd_Outstock_Source
            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.ExdOutstockSource">
        select *
        from Exd_Outstock_Source
        where FBillNo = #{fbillno}
        where status  = 5
    </select>
    <select id="listAll" resultType="com.zy.third.entity.ExdOutstockSource">
            select * from Exd_Outstock_Source where fbillno = #{orderNo} and Status in(0,1,2,3,4)
    </select>
</mapper>