| | |
| | | <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" /> |
| | |
| | | </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 = 0 |
| | | </select> |
| | | |
| | | |
| | | <select id="listAll" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from Exd_Outstock_Source |
| | | where FBillNo = #{fbillno} |
| | | <select id="listAll" resultType="com.zy.third.entity.ExdOutstockSource"> |
| | | select * from Exd_Outstock_Source where fbillno = #{orderNo} |
| | | </select> |
| | | |
| | | |
| | | </mapper> |