<bm:query-fieldname="reverse_detail_flag"queryExpression="((nvl(${@deposit_type},'N')='Y' and t1.write_off_type='DEPOSIT_CREDIT')or(${@reverse_detail_flag}='Y' and nvl(${@deposit_type},'N') in('N',null) and t1.write_off_type in ('RECEIPT_CREDIT','RECEIPT_ADVANCE_RECEIPT','ADVANCE_RECEIPT_CREDIT','DEPOSIT','RISK','DEPOSIT_CUS','RECEIPT_NONBUSINESS')))"/>
<bm:query-fieldname="reverse_detail_flag"queryExpression="((nvl(${@deposit_type},'N')='Y' and t1.write_off_type='DEPOSIT_CREDIT')or(${@reverse_detail_flag}='Y' and nvl(${@deposit_type},'N') in('N',null) and t1.write_off_type in ('RECEIPT_CREDIT','RECEIPT_ADVANCE_RECEIPT','ADVANCE_RECEIPT_CREDIT','DEPOSIT','RISK','DEPOSIT_CUS','RECEIPT_NONBUSINESS','RECEIPT_DEPOSIT_POOL')))"/>
queryExpression="(t.bp_id_tenant = ${@bp_id} or t.bp_id_agent_level1 = ${@bp_id} or ((select bp_category from hls_bp_master where bp_id = ${@bp_id}) = 'VENDER'))"/>-->
<bm:query-fieldname="bp_id"queryExpression="(Exists (Select 1 From (Select h.bp_id From hls_bp_master h Where h.bp_name = (Select hbm.bp_name From hls_bp_master hbm Where hbm.bp_id = ${@bp_id})) t1 Where t1.bp_id = t.bp_id_tenant) Or Exists