//select * from VISIT_UNAVAILABLE where fr_date = '18-APR-2020' and to_date = '18-APR-2020' AND VIST_REF_NO IN ('1','2','3');
//Validation on all location End
if(visitplaces.size()>0)
sql="select count(*) as cnt from VISIT_UNAVAILABLE where fr_date = ? and to_date = ? AND VIST_REF_NO IN (SELECT LINE_NO FROM STRG_VISIT_HOURS WHERE SC_CODE = ?)";