2023-05-22 09:16:04 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
|
|
|
|
|
<mapper namespace="com.dbnt.faisp.main.faStatistics.unlawfulFishing.mapper.UnlawfulFishingMapper">
|
|
|
|
|
|
|
|
|
|
<select id="selectFishingBoatYearParam" resultType="int">
|
|
|
|
|
select distinct extract(year from napo_dt) as year
|
|
|
|
|
from crackdown_status
|
|
|
|
|
where napo_dt is not null
|
|
|
|
|
</select>
|
|
|
|
|
|
2023-06-05 09:25:02 +00:00
|
|
|
<select id="selectCrackdownInfoList" resultType="CrackdownInfo" parameterType="UnlawfulFishingParam">
|
|
|
|
|
select a.cds_key ,
|
|
|
|
|
case_num ,
|
|
|
|
|
napo_dt ,
|
|
|
|
|
napo_sea_point_lon ,
|
|
|
|
|
napo_sea_point_lat ,
|
|
|
|
|
napo_sea_point_detail ,
|
|
|
|
|
invasion_type ,
|
|
|
|
|
nll ,
|
|
|
|
|
case_agency ,
|
|
|
|
|
case_police_officer ,
|
|
|
|
|
crackdown_police ,
|
|
|
|
|
crackdown_boat ,
|
|
|
|
|
mmsi ,
|
|
|
|
|
field_ivsgt ,
|
|
|
|
|
wrt_organ ,
|
|
|
|
|
wrt_part ,
|
|
|
|
|
wrt_user_grd ,
|
|
|
|
|
wrt_user_nm ,
|
|
|
|
|
wrt_dt ,
|
|
|
|
|
violationStr,
|
|
|
|
|
violationCode
|
|
|
|
|
from crackdown_info a
|
|
|
|
|
left outer join (
|
|
|
|
|
select aa.cds_key,
|
|
|
|
|
array_to_string(array_agg(ab.item_value), ', ') as violationStr,
|
|
|
|
|
array_to_string(array_agg(ab.item_cd), ', ') as violationCode
|
|
|
|
|
from violation_info aa
|
|
|
|
|
inner join code_mgt ab on aa.violation = ab.item_cd
|
|
|
|
|
group by aa.cds_key
|
|
|
|
|
) vi on a.cds_key = vi.cds_key
|
|
|
|
|
<include refid="selectCrackdownInfoListWhere"></include>
|
|
|
|
|
order by a.wrt_dt desc
|
|
|
|
|
limit #{rowCnt} offset #{firstIndex}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectCrackdownInfoListCnt" resultType="int" parameterType="UnlawfulFishingParam">
|
|
|
|
|
select count(*)
|
|
|
|
|
from crackdown_info a
|
|
|
|
|
left outer join (
|
|
|
|
|
select aa.cds_key,
|
|
|
|
|
array_to_string(array_agg(ab.item_value), ', ') as violationStr,
|
|
|
|
|
array_to_string(array_agg(ab.item_cd), ', ') as violationCode
|
|
|
|
|
from violation_info aa
|
|
|
|
|
inner join code_mgt ab on aa.violation = ab.item_cd
|
|
|
|
|
group by aa.cds_key
|
|
|
|
|
) vi on a.cds_key = vi.cds_key
|
|
|
|
|
<include refid="selectCrackdownInfoListWhere"></include>
|
|
|
|
|
</select>
|
|
|
|
|
<sql id="selectCrackdownInfoListWhere">
|
|
|
|
|
where status <> 'DST008'
|
|
|
|
|
</sql>
|
2023-05-22 09:16:04 +00:00
|
|
|
</mapper>
|