Stringsql1="select t.sPromoPaperNO, t.sPromoActionTypeID, t.sPromoGroupNO from tPromoRuleGoods t, tPromo p where t.sPromoPaperNO = p.sPromoPaperNO and p.sOrgNO = '"+orgNo+"' "+StringUtil.join(" OR "," and (",")"," and (1 = 0) ",args)+" group by t.sPromoPaperNO, t.sPromoActionTypeID, t.sPromoGroupNO";
Stringsql1="select p.sPromoPaperNO, p.sPromoActionTypeID, t.sGroupNO sPromoGroupNO from tYWPromoDtl t, tYWPromoMain p where t.sPromoPaperNO = p.sPromoPaperNO and p.nTag&3 = 2 and p.sOrgNO = '"+orgNo+"' "+StringUtil.join(" OR "," and (",")"," and (1 = 0) ",args)+" group by p.sPromoPaperNO, p.sPromoActionTypeID, t.sGroupNO";