| | |
| | | b.FAdd,b.Fflag_finish, a.Fname, a.Fmodel |
| | | from OutStockBillEntry a left join OutStockBill b on a.FInterID = b.FInterID |
| | | where 1=1 |
| | | and b.Fflag_finish != 1 |
| | | and b.Fflag_finish != 1 and a.FQty > a.FAmount |
| | | <if test="FSourceBillNo!=null and FSourceBillNo!='' "> |
| | | and a.FSourceBillNo = #{FSourceBillNo} |
| | | </if> |
| | |
| | | from OutStockBillEntry a |
| | | left join OutStockBill b on a.FInterID = b.FInterID |
| | | where 1=1 |
| | | and b.Fflag_finish != 1 and a.FQty > a.FAmount |
| | | <if test="FSourceBillNo!=null and FSourceBillNo!='' "> |
| | | and a.FSourceBillNo = #{FSourceBillNo} |
| | | </if> |
| | | <if test="FBillNo != null and FBillNo != ''"> |
| | | and b.FBillNo = #{FBillNo} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="queryMatnrWithBillNo" resultMap="OutStockResultMap"> |