" nSaleQty = case when sosd.nOrderRate > 1 then sosd.nPackQty else sosd.nSaleQty end, "+
" nSaleQty = case when sosd.nOrderRate > 1 then sosd.nPackQty else sosd.nSaleQty end, "+
...
@@ -250,7 +249,7 @@ public class OrderServiceImpl implements OrderService {
...
@@ -250,7 +249,7 @@ public class OrderServiceImpl implements OrderService {
" ISGift = sosd.nTag&1,"+
" ISGift = sosd.nTag&1,"+
" agp.sURL "+
" agp.sURL "+
"from tSalesOrderSubDtl sosd left join V_GetminAgentGoodsPic agp on agp.nAgentID = sosd.nAgentID and agp.nGoodsID = sosd.nGoodsID and agp.sPicTypeID = 1"+
"from tSalesOrderSubDtl sosd left join V_GetminAgentGoodsPic agp on agp.nAgentID = sosd.nAgentID and agp.nGoodsID = sosd.nGoodsID and agp.sPicTypeID = 1"+
"where sosd.sSubOrderID in ("+StringUtil.join("', '","'","'",orderIds)+")";