args.add("((sAgentContractNO is null or sAgentContractNO = '') and nGoodsID is null)");
for(Stringuid:uidAry){
for(Stringuid:uidAry){
if(StringUtil.isBlank(uid)){
if(StringUtil.isBlank(uid)){
continue;
continue;
...
@@ -517,6 +518,13 @@ public class GoodsServiceImpl implements GoodsService {
...
@@ -517,6 +518,13 @@ public class GoodsServiceImpl implements GoodsService {
Stringsql="select sAgentContractNO, nGoodsID, nStockQty, nRealSalePrice from V_OrgGoods where sOrgNO = '"+orgNo+"' "+StringUtil.join(" OR "," and (",")"," and (1 = 0) ",args);
Stringsql="select sAgentContractNO, nGoodsID, nStockQty, nRealSalePrice from V_OrgGoods where sOrgNO = '"+orgNo+"' "+StringUtil.join(" OR "," and (",")"," and (1 = 0) ",args);
Stringsql1="select prg.sPromoPaperNO, sPromoActionTypeID, sPromoGroupNO from tPromoRuleGoods prg, tPromo p where prg.sPromoPaperNO = p.sPromoPaperNO and p.sOrgNO = '"+orgNo+"' "+StringUtil.join(" OR "," and (",")"," and (1 = 0) ",args)+" group by prg.sPromoPaperNO, sPromoActionTypeID, sPromoGroupNO";