Commit 3cd8f24a authored by Quxl's avatar Quxl

x

parent 2ab3eb48
...@@ -336,13 +336,13 @@ public class OrderServiceImpl implements OrderService { ...@@ -336,13 +336,13 @@ public class OrderServiceImpl implements OrderService {
" GoodsID = b.nGoodsID, " + " GoodsID = b.nGoodsID, " +
" GoodsDesc = ag.sGoodsDesc, " + " GoodsDesc = ag.sGoodsDesc, " +
" AgentContractNO = ag.sAgentContractNO, " + " AgentContractNO = ag.sAgentContractNO, " +
" RealSalePrice = ag.nRealSalePrice, " + " RealSalePrice = isnull(ap.nRealSalePrice, ag.nRealSalePrice), " +
" AgentID = ag.nAgentID, " + " AgentID = ag.nAgentID, " +
" Barcode = ag.sMainBarcode, " + " Barcode = ag.sMainBarcode, " +
" WarehouseNO = ag.nRealSalePrice, " +
" MeetQty = b.nMeetQty, " + " MeetQty = b.nMeetQty, " +
" Price = b.nPrice " + " Price = b.nPrice " +
" FROM tPromo a, tPromoRuleGoods b, tPromoCustBWList c, tAgent at, tAgentContractGoods ag " + " FROM tPromo a, tPromoRuleGoods b, tPromoCustBWList c, tAgent at, tAgentContractGoods ag " +
" LEFT JOIN tAgentCustTypePrice ap ON ap.sCustTypeID = '" + sCustTypeID + "' and ap.sAgentContractNO = ag.sAgentContractNO and ap.nGoodsID = ag.nGoodsID " +
" WHERE " + " WHERE " +
" a.sPromoPaperNO = c.sPromoPaperNO " + " a.sPromoPaperNO = c.sPromoPaperNO " +
" AND a.sPromoPaperNO = b.sPromoPaperNO " + " AND a.sPromoPaperNO = b.sPromoPaperNO " +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment