sb.append("and (cfo.customize_field_id ="+customerDTOList.get(0).getField()+" and cfo.field_option_value_id"+customerDTOList.get(0).getOperator()+""+customerDTOList.get(0).getCondition()+")");
sb.append("and (cfo.customize_fields_id ="+customerDTOList.get(0).getField()+" and cfo.field_option_value_id "+customerDTOList.get(0).getOperator()+""+customerDTOList.get(0).getCondition()+")");
break;
break;
case"text":
case"text":
sb.append("and (cfo.customize_field_id ="+customerDTOList.get(0).getField()+" and cfo.value_text"+customerDTOList.get(0).getOperator()+""+customerDTOList.get(0).getCondition()+")");
sb.append("and (cfo.customize_fields_id ="+customerDTOList.get(0).getField()+" and cfo.value_text "+customerDTOList.get(0).getOperator()+" '%"+customerDTOList.get(0).getCondition()+"%')");
}else{
sb.append("and (cfo.customize_fields_id ="+customerDTOList.get(0).getField()+" and cfo.value_text "+customerDTOList.get(0).getOperator()+" "+customerDTOList.get(0).getCondition()+")");
}
break;
break;
case"date":
case"date":
sb.append("and (cfo.customize_field_id ="+customerDTOList.get(0).getField()+" and cfo.value_date"+customerDTOList.get(0).getOperator()+""+customerDTOList.get(0).getCondition()+")");
sb.append("and (cfo.customize_fields_id ="+customerDTOList.get(0).getField()+" and cfo.value_date "+customerDTOList.get(0).getOperator()+" to_date("+customerDTOList.get(0).getCondition()+", 'DD/MM/YYYY'))");
break;
break;
case"number":
case"number":
sb.append("and (cfo.customize_field_id ="+customerDTOList.get(0).getField()+" and cfo.value_number"+customerDTOList.get(0).getOperator()+""+customerDTOList.get(0).getCondition()+")");
sb.append("and (cfo.customize_fields_id ="+customerDTOList.get(0).getField()+" and cfo.value_number "+customerDTOList.get(0).getOperator()+" "+customerDTOList.get(0).getCondition()+")");
break;
break;
case"checkbox":
case"checkbox":
sb.append("and (cfo.customize_field_id ="+customerDTOList.get(0).getField()+" and cfo.value_checkbox"+customerDTOList.get(0).getOperator()+""+customerDTOList.get(0).getCondition()+")");
sb.append("and (cfo.customize_fields_id ="+customerDTOList.get(0).getField()+" and cfo.value_checkbox "+customerDTOList.get(0).getOperator()+" "+customerDTOList.get(0).getCondition()+")");