and extract(year from a.napo_dt) = #{year}::numeric and extract(month from a.napo_dt) = #{month}::numeric and extract(year from a.napo_dt) = ${year} and a.case_agency = #{caseAgency} and a.crackdown_police = #{crackdownPolice} and a.crackdown_boat = #{crackdownBoat} and b.boat_name_kr like '%'||#{boatNameKr}||'%' and b.boat_nny_sung like '%'||#{boatNnySung}||'%' and b.boat_nny_si like '%'||#{boatNnySi}||'%' and b.boat_material = #{boatMaterial} and b.fishery_type = #{fisheryType} and c.process_status = #{processStatus} and b.ton_cnt >= #{tonMin} and b.ton_cnt <= #{tonMax} and e.violationCode like '%'||#{violation}||'%' and a.napo_dt >= #{startDate}::date and a.napo_dt <= #{endDate}::date+1 and c.eviction_dt >= #{startDate}::date and c.eviction_dt <= #{endDate}::date+1 and c.direct_handover_dt >= #{startDate}::date and c.direct_handover_dt <= #{endDate}::date+1 and c.consignment_dt >= #{startDate}::date and c.consignment_dt <= #{endDate}::date+1 and c.confiscation_dt >= #{startDate}::date and c.confiscation_dt <= #{endDate}::date+1 and c.boat_disposal_dt >= #{startDate}::date and c.boat_disposal_dt <= #{endDate}::date+1 and c.return_dt >= #{startDate}::date and c.return_dt <= #{endDate}::date+1 and a.wrt_dt >= #{startDate}::date and a.wrt_dt <= #{endDate}::date+1