sql=sql+getAndConSql(sql,BH," EXISTS(select 1 from ch_fee_do where BILLNO=cm.BILLNO and EXISTS(select 1 from v_op_bs where bsno=ch_fee_do.BSNO and (CUSTNO like '%" +BH+"%' or MBLNO like '%"+BH+"%' or HBLNO like '%"+BH+"%') ))");
sql=sql+getAndConSql(sql,BH," EXISTS(select 1 from ch_fee_do where BILLNO=cm.BILLNO and EXISTS(select 1 from v_op_bill where bsno=ch_fee_do.BSNO and (CUSTNO like '%" +BH+"%' or MBLNO like '%"+BH+"%' or HBLNO like '%"+BH+"%') ))");
sql=sql+getAndConSql(sql,customNo,"BILLNO like '%"+customNo+"%'");
sql=sql+getAndConSql(sql,customNo,"BILLNO like '%"+customNo+"%'");
varMblNo=form.findField('MblNo').getValue();
varMblNo=form.findField('MblNo').getValue();
sql=sql+getAndConSql(sql,MblNo," EXISTS(select 1 from ch_fee_do where BILLNO=cm.BILLNO and EXISTS(select 1 from v_op_bs where bsno=ch_fee_do.BSNO and (CUSTNO like '%" +MblNo+"%' or MBLNO like '%"+MblNo+"%' or HBLNO like '%"+MblNo+"%') ))");
sql=sql+getAndConSql(sql,MblNo," EXISTS(select 1 from ch_fee_do where BILLNO=cm.BILLNO and EXISTS(select 1 from v_op_bill where bsno=ch_fee_do.BSNO and (CUSTNO like '%" +MblNo+"%' or MBLNO like '%"+MblNo+"%' or HBLNO like '%"+MblNo+"%') ))");
sql=sql+getAndConSql(sql,customNo,"BILLNO like '%"+customNo+"%'");
sql=sql+getAndConSql(sql,customNo,"BILLNO like '%"+customNo+"%'");
varMblNo=form.findField('MblNo').getValue();
varMblNo=form.findField('MblNo').getValue();
sql=sql+getAndConSql(sql,MblNo," EXISTS(select 1 from ch_fee_do where BILLNO=cm.BILLNO and EXISTS(select 1 from v_op_bs where bsno=ch_fee_do.BSNO and (CUSTNO like '%" +MblNo+"%' or MBLNO like '%"+MblNo+"%' or HBLNO like '%"+MblNo+"%') ))");
sql=sql+getAndConSql(sql,MblNo," EXISTS(select 1 from ch_fee_do where BILLNO=cm.BILLNO and EXISTS(select 1 from v_op_bill where bsno=ch_fee_do.BSNO and (CUSTNO like '%" +MblNo+"%' or MBLNO like '%"+MblNo+"%' or HBLNO like '%"+MblNo+"%') ))");
sql=sql+getAndConSql(sql,BH," EXISTS(select 1 from ch_fee_do where BILLNO=cm.BILLNO and EXISTS(select 1 from v_op_bs where bsno=ch_fee_do.BSNO and (CUSTNO like '%" +BH+"%' or MBLNO like '%"+BH+"%' or HBLNO like '%"+BH+"%') ))");
sql=sql+getAndConSql(sql,BH," EXISTS(select 1 from ch_fee_do where BILLNO=cm.BILLNO and EXISTS(select 1 from v_op_bill where bsno=ch_fee_do.BSNO and (CUSTNO like '%" +BH+"%' or MBLNO like '%"+BH+"%' or HBLNO like '%"+BH+"%') ))");