" nSaleQty = case when sosd.nOrderRate > 1 then sosd.nPackQty else sosd.nSaleQty end, "+
" nSalePrice = case when sosd.nOrderRate > 1 then sosd.nSaleAmount/sosd.nPackQty else sosd.nSalePrice end, "+
...
...
@@ -250,7 +249,7 @@ public class OrderServiceImpl implements OrderService {
" ISGift = sosd.nTag&1,"+
" agp.sURL "+
"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)+")";
@@ -432,7 +443,7 @@ public class OrderServiceImpl implements OrderService {
" agp.sURL "+
"from tSalesOrderSubDtl sosd left join V_GetminAgentGoodsPic agp on agp.nAgentID = sosd.nAgentID and agp.nGoodsID = sosd.nGoodsID and agp.sPicTypeID = 1"+