AND a.wrt_organ = #{wrtOrgan} And a.wrt_dt >= #{startDate}::DATE AND a.wrt_dt <= #{endDate}::DATE+1