and org_code = ## and org_code in (##) and #date# between #beginDate# and #endDate#