init
This commit is contained in:
commit
8396e0d631
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21">
|
||||
<attributes>
|
||||
<attribute name="module" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" path="src/main/java"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Tomcat v10.1">
|
||||
<attributes>
|
||||
<attribute name="owner.project.facets" value="jst.web"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="output" path="build/classes"/>
|
||||
</classpath>
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>DSDSServer</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.wst.common.project.facet.core.builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.wst.validation.validationbuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
|
||||
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
|
||||
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="src/main/webapp"/>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
|
||||
<attributes>
|
||||
<attribute name="hide" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
|
||||
<classpathentry kind="output" path=""/>
|
||||
</classpath>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.methodParameters=generate
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=21
|
||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||
org.eclipse.jdt.core.compiler.compliance=21
|
||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
|
||||
org.eclipse.jdt.core.compiler.release=enabled
|
||||
org.eclipse.jdt.core.compiler.source=21
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
|
||||
<wb-module deploy-name="DSDSServer">
|
||||
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
||||
<property name="context-root" value="ds"/>
|
||||
<property name="java-output-path" value="/DSDSServer/build/classes"/>
|
||||
</wb-module>
|
||||
</project-modules>
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<faceted-project>
|
||||
<runtime name="Tomcat v10.1"/>
|
||||
<fixed facet="jst.web"/>
|
||||
<fixed facet="java"/>
|
||||
<fixed facet="wst.jsdt.web"/>
|
||||
<installed facet="jst.web" version="5.0"/>
|
||||
<installed facet="wst.jsdt.web" version="1.0"/>
|
||||
<installed facet="java" version="21"/>
|
||||
</faceted-project>
|
||||
|
|
@ -0,0 +1 @@
|
|||
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
|
||||
|
|
@ -0,0 +1 @@
|
|||
Window
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
AppDebug=true
|
||||
AppTrace=true
|
||||
AppParamHelper=cn.tsy.cas.idsse.dsds.helper.DsdsParamHelper
|
||||
AppListener=cn.tsy.cas.idsse.dsds.control.DSDSInitializeListener
|
||||
AppName=DSDSServer
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1,59 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.tsy.data.cas.idsse.dsds.mapper.dict.IDictDataMapper">
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="dataWithPage" resultType="map">
|
||||
select * from dict_data where 1=1
|
||||
<if test="page_query != null and page_query != ''">
|
||||
and (data_name like concat('%',#{page_query},'%') or data_remark like concat('%',#{page_query},'%') or data_alias like concat('%',#{page_query},'%'))
|
||||
</if>
|
||||
<if test="page_order != null and page_order != ''">
|
||||
ORDER BY ${page_order}
|
||||
</if>
|
||||
<if test="page_type != null and page_type == 'DESC'">
|
||||
DESC
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="searchWithPage" resultType="map">
|
||||
select v.tsy_id id,v.data_name name,v.data_alias value from dict_data v
|
||||
<!-- 如果有平台类型,需要去查找有平台类型的航次 -->
|
||||
<if test="param.voyage_name != null and param.voyage_name != ''">
|
||||
,(select distinct data_id from sample_dataset where voyage_name=#{param.voyage_name}) p0
|
||||
</if>
|
||||
<if test="param.platform_type != null and param.platform_type != ''">
|
||||
,(select distinct data_id from sample_dataset where platform_type=#{param.platform_type}) p1
|
||||
</if>
|
||||
<if test="param.platform_name != null and param.platform_name != ''">
|
||||
,(select distinct data_id from sample_dataset where platform_name=#{param.platform_name}) p2
|
||||
</if>
|
||||
<if test="param.equipment_type != null and param.equipment_type != ''">
|
||||
,(select distinct data_id from sample_dataset where equipment_type=#{param.equipment_type}) p3
|
||||
</if>
|
||||
<if test="param.data_type != null and param.data_type != ''">
|
||||
,(select distinct data_id from sample_dataset where data_type=#{param.data_type}) p4
|
||||
</if>
|
||||
where 1=1
|
||||
<if test="param.voyage_name != null and param.voyage_name != ''">
|
||||
and p0.data_id = v.tsy_id
|
||||
</if>
|
||||
<if test="param.platform_type != null and param.platform_type != ''">
|
||||
and p1.data_id = v.tsy_id
|
||||
</if>
|
||||
<if test="param.platform_name != null and param.platform_name != ''">
|
||||
and p2.data_id = v.tsy_id
|
||||
</if>
|
||||
<if test="param.equipment_type != null and param.equipment_type != ''">
|
||||
and p3.data_id = v.tsy_id
|
||||
</if>
|
||||
<if test="param.data_type != null and param.data_type != ''">
|
||||
and p4.data_id = v.tsy_id
|
||||
</if>
|
||||
order by v.data_name
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
Binary file not shown.
|
|
@ -0,0 +1,61 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.tsy.data.cas.idsse.dsds.mapper.dict.IDictEquipmentMapper">
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="equipmentWithPage" resultType="map">
|
||||
select * from dict_equipment where 1=1
|
||||
<if test="page_query != null and page_query != ''">
|
||||
and (equipment_name like concat('%',#{page_query},'%')
|
||||
or equipment_remark like concat('%',#{page_query},'%')
|
||||
or equipment_alias like concat('%',#{page_query},'%'))
|
||||
</if>
|
||||
<if test="page_order != null and page_order != ''">
|
||||
ORDER BY ${page_order}
|
||||
</if>
|
||||
<if test="page_type != null and page_type == 'DESC'">
|
||||
DESC
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="searchWithPage" resultType="map">
|
||||
select v.tsy_id id,v.equipment_name name,v.equipment_alias value from DICT_EQUIPMENT v
|
||||
<!-- 如果有平台类型,需要去查找有平台类型的航次 -->
|
||||
<if test="param.voyage_name != null and param.voyage_name != ''">
|
||||
,(select distinct equipment_id from sample_dataset where voyage_name=#{param.voyage_name}) p0
|
||||
</if>
|
||||
<if test="param.platform_type != null and param.platform_type != ''">
|
||||
,(select distinct equipment_id from sample_dataset where platform_type=#{param.platform_type}) p1
|
||||
</if>
|
||||
<if test="param.platform_name != null and param.platform_name != ''">
|
||||
,(select distinct equipment_id from sample_dataset where platform_name=#{param.platform_name}) p2
|
||||
</if>
|
||||
<if test="param.equipment_type != null and param.equipment_type != ''">
|
||||
,(select distinct equipment_id from sample_dataset where equipment_type=#{param.equipment_type}) p3
|
||||
</if>
|
||||
<if test="param.data_type != null and param.data_type != ''">
|
||||
,(select distinct equipment_id from sample_dataset where data_type=#{param.data_type}) p4
|
||||
</if>
|
||||
where 1=1
|
||||
<if test="param.voyage_name != null and param.voyage_name != ''">
|
||||
and p0.equipment_id = v.tsy_id
|
||||
</if>
|
||||
<if test="param.platform_type != null and param.platform_type != ''">
|
||||
and p1.equipment_id = v.tsy_id
|
||||
</if>
|
||||
<if test="param.platform_name != null and param.platform_name != ''">
|
||||
and p2.equipment_id = v.tsy_id
|
||||
</if>
|
||||
<if test="param.equipment_type != null and param.equipment_type != ''">
|
||||
and p3.equipment_id = v.tsy_id
|
||||
</if>
|
||||
<if test="param.data_type != null and param.data_type != ''">
|
||||
and p4.equipment_id = v.tsy_id
|
||||
</if>
|
||||
order by v.equipment_name
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Binary file not shown.
|
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.tsy.data.cas.idsse.dsds.mapper.dict.IDictFundingMapper">
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="fundingWithPage" resultType="map">
|
||||
select * from dict_funding where 1=1
|
||||
<if test="page_query != null and page_query != ''">
|
||||
and (funding_name like concat('%',#{page_query},'%') or funding_eng like concat('%',#{page_query},'%') )
|
||||
</if>
|
||||
<if test="page_order != null and page_order != ''">
|
||||
ORDER BY ${page_order}
|
||||
</if>
|
||||
<if test="page_type != null and page_type == 'DESC'">
|
||||
DESC
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Binary file not shown.
|
|
@ -0,0 +1,57 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper
|
||||
namespace="cn.tsy.data.cas.idsse.dsds.mapper.dict.IDictGeomMapper">
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<update id="createVoyage">
|
||||
delete from dict_geom where geom_sn=#{voyage_name};
|
||||
INSERT INTO dict_geom ( geom_type, geom_sn, geom_value, create_time )
|
||||
SELECT
|
||||
'voyage',
|
||||
voyage_name,
|
||||
concat ( 'ST_GeomFromText(''LINESTRING(',string_agg ( concat ( nav_lon, '', nav_lat ), ',' ), ')''' ),
|
||||
now( )
|
||||
FROM
|
||||
voyage_navigation v,
|
||||
voyage_reg r
|
||||
WHERE
|
||||
v.voyage_id = r.tsy_id
|
||||
where
|
||||
r.voyage_name=#{voyage_name}
|
||||
GROUP BY
|
||||
v.voyage_id,
|
||||
voyage_name
|
||||
ORDER BY
|
||||
v.voyage_id;
|
||||
</update>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<update id="createDiving">
|
||||
delete from dict_geom where geom_sn=#{diving_sn};
|
||||
INSERT INTO dict_geom ( geom_type, geom_sn, geom_value, create_time )
|
||||
SELECT
|
||||
'diving',
|
||||
diving_sn,
|
||||
concat ( 'ST_GeomFromText(''LINESTRING(', string_agg( concat ( track_lon, '', track_lat ), ',' ), ')''' ),
|
||||
now( )
|
||||
FROM
|
||||
sample_dataset_track v,
|
||||
sample_dataset r
|
||||
WHERE
|
||||
v.dataset_id = r.tsy_id
|
||||
where r.diving_sn=#{diving_sn}
|
||||
GROUP BY
|
||||
r.diving_sn
|
||||
ORDER BY
|
||||
r.diving_sn;
|
||||
</update>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
Binary file not shown.
|
|
@ -0,0 +1,59 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.tsy.data.cas.idsse.dsds.mapper.dict.IDictPlatformMapper">
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="platformWithPage" resultType="map">
|
||||
select * from dict_platform where 1=1
|
||||
<if test="page_query != null and page_query != ''">
|
||||
and (platform_name like concat('%',#{page_query},'%') or platform_remark like concat('%',#{page_query},'%') or platform_alias like concat('%',#{page_query},'%'))
|
||||
</if>
|
||||
<if test="page_order != null and page_order != ''">
|
||||
ORDER BY ${page_order}
|
||||
</if>
|
||||
<if test="page_type != null and page_type == 'DESC'">
|
||||
DESC
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
<select id="searchWithPage" resultType="map">
|
||||
select v.tsy_id id,v.platform_name name,v.platform_alias value from dict_platform v
|
||||
<!-- 如果有平台类型,需要去查找有平台类型的航次 -->
|
||||
<if test="param.voyage_name != null and param.voyage_name != ''">
|
||||
,(select distinct platform_id from sample_dataset where voyage_name=#{param.voyage_name}) p0
|
||||
</if>
|
||||
<if test="param.platform_type != null and param.platform_type != ''">
|
||||
,(select distinct platform_id from sample_dataset where platform_type=#{param.platform_type}) p1
|
||||
</if>
|
||||
<if test="param.platform_name != null and param.platform_name != ''">
|
||||
,(select distinct platform_id from sample_dataset where platform_name=#{param.platform_name}) p2
|
||||
</if>
|
||||
<if test="param.equipment_type != null and param.equipment_type != ''">
|
||||
,(select distinct platform_id from sample_dataset where equipment_type=#{param.equipment_type}) p3
|
||||
</if>
|
||||
<if test="param.data_type != null and param.data_type != ''">
|
||||
,(select distinct platform_id from sample_dataset where data_type=#{param.data_type}) p4
|
||||
</if>
|
||||
where 1=1
|
||||
<if test="param.voyage_name != null and param.voyage_name != ''">
|
||||
and p0.platform_id = v.tsy_id
|
||||
</if>
|
||||
<if test="param.platform_type != null and param.platform_type != ''">
|
||||
and p1.platform_id = v.tsy_id
|
||||
</if>
|
||||
<if test="param.platform_name != null and param.platform_name != ''">
|
||||
and p2.platform_id = v.tsy_id
|
||||
</if>
|
||||
<if test="param.equipment_type != null and param.equipment_type != ''">
|
||||
and p3.platform_id = v.tsy_id
|
||||
</if>
|
||||
<if test="param.data_type != null and param.data_type != ''">
|
||||
and p4.platform_id = v.tsy_id
|
||||
</if>
|
||||
order by v.platform_name
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.tsy.data.cas.idsse.dsds.mapper.dict.IDictUnitSailMapper">
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="sailWithPage" resultType="map">
|
||||
select * from dict_unit_sail where 1=1
|
||||
<if test="page_query != null and page_query != ''">
|
||||
and (unit_name like concat('%',#{page_query},'%') or link_man like concat('%',#{page_query},'%'))
|
||||
</if>
|
||||
<if test="page_order != null and page_order != ''">
|
||||
ORDER BY ${page_order}
|
||||
</if>
|
||||
<if test="page_type != null and page_type == 'DESC'">
|
||||
DESC
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
Binary file not shown.
|
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.tsy.data.cas.idsse.dsds.mapper.dict.IDictUnitShareMapper">
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="shareWithPage" resultType="map">
|
||||
select * from dict_unit_share where 1=1
|
||||
<if test="page_query != null and page_query != ''">
|
||||
and (unit_name like concat('%',#{page_query},'%') or link_man like concat('%',#{page_query},'%'))
|
||||
</if>
|
||||
<if test="page_order != null and page_order != ''">
|
||||
ORDER BY ${page_order}
|
||||
</if>
|
||||
<if test="page_type != null and page_type == 'DESC'">
|
||||
DESC
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
Binary file not shown.
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.tsy.data.cas.idsse.dsds.mapper.sample.ISampleDatasetMapper">
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="datasetWithPage" resultType="map">
|
||||
select file_total,d.* from sample_dataset d
|
||||
left join (
|
||||
select dataset_id,count(1) file_total from sample_line group by dataset_id
|
||||
union select dataset_id,count(1) file_total from sample_station group by dataset_id
|
||||
) l
|
||||
on d.tsy_id=l.dataset_id where 1=1
|
||||
<if test="page_query != null and page_query != ''">
|
||||
and (dataset_name like concat('%',#{page_query},'%') or voyage_name like concat('%',#{page_query},'%')
|
||||
or platform_type like concat('%',#{page_query},'%') or equipment_type like concat('%',#{query},'%')
|
||||
or platform_name like concat('%',#{page_query},'%') or dataset_remark like concat('%',#{page_query},'%'))
|
||||
</if>
|
||||
<if test="page_order != null and page_order != ''">
|
||||
ORDER BY ${page_order}
|
||||
</if>
|
||||
<if test="page_type != null and page_type == 'DESC'">
|
||||
DESC
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
Binary file not shown.
|
|
@ -0,0 +1,42 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper
|
||||
namespace="cn.tsy.data.cas.idsse.dsds.mapper.sample.ISampleDatasetTrackMapper">
|
||||
|
||||
|
||||
|
||||
<select id="totalTrack" resultType="map">
|
||||
select max(track_time) max_time,min(track_time) min_time,max(track_lon)
|
||||
max_lon,min(track_lon) min_lin,max(track_lat) max_lat,min(track_lat)
|
||||
min_lat from sample_dataset_track where dataset_id=#{dataset_id};
|
||||
</select>
|
||||
|
||||
<select id="listTrack" resultType="map">
|
||||
SELECT
|
||||
t1.*
|
||||
FROM
|
||||
sample_dataset_track t1,(
|
||||
SELECT
|
||||
min( tsy_id ) tsy_id
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
track_time,
|
||||
DATE_FORMAT( track_time, '%Y-%m-%d %H:%i' ) track_minute,
|
||||
tsy_id
|
||||
FROM
|
||||
sample_dataset_track k
|
||||
WHERE
|
||||
dataset_id = #{dataset_id}
|
||||
AND MOD ( MINUTE ( track_time ), ${ticket_minutes} )= 0
|
||||
) s
|
||||
GROUP BY
|
||||
track_minute
|
||||
) t2
|
||||
WHERE
|
||||
t1.tsy_id = t2.tsy_id
|
||||
AND t1.dataset_id = #{dataset_id}
|
||||
ORDER BY
|
||||
t1.track_time
|
||||
</select>
|
||||
</mapper>
|
||||
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.tsy.data.cas.idsse.dsds.mapper.sample.ISampleLineTrackMapper">
|
||||
|
||||
|
||||
|
||||
<select id="totalTrack" resultType="map">
|
||||
select max(track_time) max_time,min(track_time) min_time,max(track_lon) max_lon,min(track_lon) min_lin,max(track_lat) max_lat,
|
||||
min(track_lat) min_lat from sample_line_track where line_id=#{line_id};
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.tsy.data.cas.idsse.dsds.mapper.voyage.IVoyageMemberMapper">
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="memberWithPage" resultType="map">
|
||||
select * from voyage_member where 1=1
|
||||
<if test="voyage_id != null">
|
||||
and voyage_id = #{voyage_id}
|
||||
</if>
|
||||
<if test="page_order != null and page_order != ''">
|
||||
ORDER BY ${page_order}
|
||||
</if>
|
||||
<if test="page_type != null and page_type == 'DESC'">
|
||||
DESC
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
Binary file not shown.
|
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.tsy.data.cas.idsse.dsds.mapper.voyage.IVoyageNavigationMapper">
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="navigationWithPage" resultType="map">
|
||||
select * from voyage_navigation where 1=1
|
||||
<if test="voyage_id != null">
|
||||
and voyage_id = #{voyage_id}
|
||||
</if>
|
||||
<if test="page_order != null and page_order != ''">
|
||||
ORDER BY ${page_order}
|
||||
</if>
|
||||
<if test="page_type != null and page_type == 'DESC'">
|
||||
DESC
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="totalNavigation" resultType="map">
|
||||
select max(nav_time) max_time,min(nav_time) min_time,max(nav_lon) max_lon,min(nav_lon) min_lin,max(nav_lat) max_lat,min(nav_lat) min_lat from voyage_navigation where voyage_id=#{voyage_id};
|
||||
</select>
|
||||
|
||||
<select id="listNavigation" resultType="map">
|
||||
select * from voyage_navigation where VOYAGE_ID=#{voyage_id} and MOD(MINUTE(NAV_TIME),${ticket_minutes})=0 order by nav_time
|
||||
</select>
|
||||
</mapper>
|
||||
Binary file not shown.
|
|
@ -0,0 +1,81 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.tsy.data.cas.idsse.dsds.mapper.voyage.IVoyageRegMapper">
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="voyageWithPage" resultType="map">
|
||||
select r.*,member_total from voyage_reg r
|
||||
left join (select voyage_id,count(1) member_total from voyage_member group by voyage_id) m
|
||||
on r.tsy_id = m.voyage_id
|
||||
where 1=1 and (serect_status='InActive'
|
||||
<if test="role_id != null and (role_id ==2 or role_id==1)">
|
||||
or serect_status='Active'
|
||||
</if>
|
||||
<if test="role_id != null and role_id==3">
|
||||
or r.tsy_id in (select voyage_id from voyage_reg_optr where optr_id=#{optr_id})
|
||||
</if>
|
||||
)
|
||||
<if test="page_query != null and page_query != ''">
|
||||
and (voyage_name like concat('%',#{page_query},'%') or voyage_officer like concat('%',#{page_query},'%')
|
||||
or voyage_officer like concat('%',#{page_query},'%') or voyage_remark like concat('%',#{page_query},'%'))
|
||||
</if>
|
||||
<if test="page_order != null and page_order != ''">
|
||||
ORDER BY ${page_order}
|
||||
</if>
|
||||
<if test="page_type != null and page_type == 'DESC'">
|
||||
DESC
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="searchWithPage" resultType="map">
|
||||
select v.tsy_id id,v.voyage_name name from voyage_reg v
|
||||
<!-- 如果有平台类型,需要去查找有平台类型的航次 -->
|
||||
<if test="param.platform_type != null and param.platform_type != ''">
|
||||
,(select distinct voyage_id from sample_dataset where platform_type=#{param.platform_type}) p1
|
||||
</if>
|
||||
<if test="param.platform_name != null and param.platform_name != ''">
|
||||
,(select distinct voyage_id from sample_dataset where platform_name=#{param.platform_name}) p2
|
||||
</if>
|
||||
<if test="param.equipment_type != null and param.equipment_type != ''">
|
||||
,(select distinct voyage_id from sample_dataset where equipment_type=#{param.equipment_type}) p3
|
||||
</if>
|
||||
<if test="param.data_type != null and param.data_type != ''">
|
||||
,(select distinct voyage_id from sample_dataset where sample_type=#{param.sample_type}) p4
|
||||
</if>
|
||||
where 1=1
|
||||
and (serect_status='InActive'
|
||||
<if test="role_id != null and (role_id ==2 or role_id==1)">
|
||||
or serect_status='Active'
|
||||
</if>
|
||||
<if test="role_id != null and role_id==3">
|
||||
or r.tsy_id in (select voyage_id from voyage_reg_optr where optr_id=#{optr_id})
|
||||
</if>
|
||||
)
|
||||
<if test="param.platform_type != null and param.platform_type != ''">
|
||||
and p1.voyage_id = v.tsy_id
|
||||
</if>
|
||||
<if test="param.platform_name != null and param.platform_name != ''">
|
||||
and p2.voyage_id = v.tsy_id
|
||||
</if>
|
||||
<if test="param.equipment_type != null and param.equipment_type != ''">
|
||||
and p3.voyage_id = v.tsy_id
|
||||
</if>
|
||||
<if test="param.data_type != null and param.data_type != ''">
|
||||
and p4.voyage_id = v.tsy_id
|
||||
</if>
|
||||
order by v.voyage_name
|
||||
</select>
|
||||
|
||||
<select id="totalVoyage" resultType="map">
|
||||
SELECT count(1) voyage_total,sum(voyage_days) day_total,sum(coalesce(voyage_mileage,0)) mileage_total from voyage_reg where 1=1
|
||||
<if test="start_date != null ">
|
||||
and voyage_start_date >= #{start_date}
|
||||
</if>
|
||||
|
||||
<if test="end_date != null ">
|
||||
and voyage_end_date <= #{end_date}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Binary file not shown.
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.tsy.data.cas.idsse.dsds.mapper.voyage.IVoyageRegOptrMapper">
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="listVoyage" resultType="cn.tsy.data.cas.idsse.dsds.model.voyage.VoyageReg">
|
||||
select v.* from voyage_reg v,voyage_reg_optr o where v.tsy_id=o.voyage_id and o.optr_id=#{optr_id}
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
Binary file not shown.
|
|
@ -0,0 +1,257 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper
|
||||
namespace="cn.tsy.data.cas.idsse.dsds.mapper.voyage.IVoyageRegReportMapper">
|
||||
|
||||
<select id="reportShipTotal" resultType="map">
|
||||
SELECT
|
||||
<if test="year != null">
|
||||
date_part('year', voyage_start_date) as year,
|
||||
</if>
|
||||
sum(voyage_days) days_total,
|
||||
sum(COALESCE(a.voyage_mileage,0))
|
||||
mileage_total,
|
||||
sum(dataset_total) dataset_total,
|
||||
sum(unit_total)
|
||||
unit_total,
|
||||
sum(member_total) member_total
|
||||
FROM
|
||||
voyage_reg A,
|
||||
( SELECT
|
||||
voyage_id, COUNT ( 1 ) dataset_total FROM sample_dataset GROUP
|
||||
BY
|
||||
voyage_id ) b,
|
||||
( SELECT voyage_id, COUNT ( 1 ) member_total, COUNT (
|
||||
DISTINCT
|
||||
member_unit ) unit_total FROM voyage_member WHERE member_unit
|
||||
!=
|
||||
'海南深科海洋技术服务有限公司' GROUP BY voyage_id ) C
|
||||
WHERE
|
||||
A.tsy_id = b.voyage_id
|
||||
AND A.tsy_id = C.voyage_id
|
||||
<if test="ship_name != null and ship_name != ''">
|
||||
and ship_name=#{ship_name}
|
||||
</if>
|
||||
<if test="start != null">
|
||||
and voyage_start_date >= #{start}
|
||||
</if>
|
||||
<if test="end != null">
|
||||
and voyage_start_date <= #{end}
|
||||
</if>
|
||||
<if test="year != null and year != ''">
|
||||
group by date_part('year', voyage_start_date)
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="reportShipUnit" resultType="map">
|
||||
SELECT
|
||||
DISTINCT
|
||||
s.*
|
||||
FROM
|
||||
dict_unit_sail s,
|
||||
voyage_reg r,
|
||||
voyage_member M
|
||||
WHERE
|
||||
member_unit!='海南深科海洋技术服务有限公司' and
|
||||
s.unit_name = M.member_unit
|
||||
AND
|
||||
r.tsy_id = M.voyage_id
|
||||
<if test="ship_name != null and ship_name != ''">
|
||||
and ship_name=#{ship_name}
|
||||
</if>
|
||||
<if test="start != null">
|
||||
and voyage_start_date >= #{start}
|
||||
</if>
|
||||
<if test="end != null">
|
||||
and voyage_start_date <= #{end}
|
||||
</if>
|
||||
<if test="year != null and year != ''">
|
||||
and date_part('year', voyage_start_date)=#{year}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="reportShipUnitWithYear" resultType="map">
|
||||
SELECT
|
||||
<if test="ship_name != null and ship_name != ''">
|
||||
ship_name,
|
||||
</if>
|
||||
concat(voyage_year,'') voyage_year,
|
||||
COUNT ( 1 ) unit_total,
|
||||
SUM ( CASE WHEN voyage_year = unit_year THEN 1 ELSE 0 END )
|
||||
year_unit_total
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
ship_name,
|
||||
unit_name,
|
||||
voyage_year,
|
||||
unit_year
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
ship_name,
|
||||
date_part( 'year', voyage_start_date ) voyage_year,
|
||||
unit_name,
|
||||
date_part( 'year', u.create_time ) unit_year
|
||||
FROM
|
||||
voyage_reg vr,
|
||||
voyage_member vm,
|
||||
dict_unit_sail u
|
||||
WHERE
|
||||
vr.tsy_id = vm.voyage_id
|
||||
AND u.unit_name = vm.member_unit
|
||||
AND member_unit != '海南深科海洋技术服务有限公司'
|
||||
)
|
||||
GROUP BY
|
||||
ship_name,
|
||||
unit_name,
|
||||
voyage_year,
|
||||
unit_year
|
||||
)
|
||||
<if test="ship_name != null and ship_name != ''">
|
||||
where ship_name=#{ship_name}
|
||||
</if>
|
||||
GROUP BY
|
||||
<if test="ship_name != null and ship_name != ''">
|
||||
ship_name,
|
||||
</if>
|
||||
voyage_year
|
||||
</select>
|
||||
|
||||
<select id="reportPlatformTotal" resultType="map">
|
||||
SELECT
|
||||
<if test="year != null">
|
||||
date_part('year', voyage_start_date) as year,
|
||||
</if>
|
||||
sum(water_minutes) water_total,sum(job_minutes) job_total,
|
||||
COUNT ( DISTINCT diving_sn ) diving_total,
|
||||
COUNT ( DISTINCT driver_left ) + COUNT ( DISTINCT driver_left ) driver_member_total,
|
||||
COUNT ( DISTINCT ds.driver_unit_left ) unit_left,
|
||||
COUNT ( DISTINCT ds.driver_unit_right ) unit_right,
|
||||
COUNT ( DISTINCT ds.driver_unit_left ) + COUNT ( DISTINCT ds.driver_unit_right ) unit_total,
|
||||
COUNT ( DISTINCT dataset_name ) dataset_total
|
||||
FROM
|
||||
sample_dataset ds,
|
||||
voyage_reg r
|
||||
WHERE
|
||||
ds.voyage_id = r.tsy_id
|
||||
and platform_type in
|
||||
(${platform_type})
|
||||
<if test="platform_name != null and platform_name!=''">
|
||||
and platform_name = #{platform_name}
|
||||
</if>
|
||||
<if test="start != null">
|
||||
and voyage_start_date >= #{start}
|
||||
</if>
|
||||
<if test="end != null">
|
||||
and voyage_start_date <= #{end}
|
||||
</if>
|
||||
<if test="year != null and year != ''">
|
||||
group by date_part('year', voyage_start_date)
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="reportPlatformUnit" resultType="map">
|
||||
SELECT DISTINCT
|
||||
s.*
|
||||
FROM
|
||||
dict_unit_sail s,
|
||||
voyage_reg r,
|
||||
sample_dataset sd
|
||||
WHERE
|
||||
unit_name != '海南深科海洋技术服务有限公司'
|
||||
AND (s.unit_name = sd.driver_unit_left or s.unit_name=sd.driver_unit_right)
|
||||
AND sd.voyage_id = r.tsy_id
|
||||
and
|
||||
platform_type in (${platform_type})
|
||||
<if test="platform_name != null and platform_name!=''">
|
||||
and platform_name = #{platform_name}
|
||||
</if>
|
||||
<if test="start != null">
|
||||
and voyage_start_date >= #{start}
|
||||
</if>
|
||||
<if test="end != null">
|
||||
and voyage_start_date <= #{end}
|
||||
</if>
|
||||
<if test="year != null and year != ''">
|
||||
and date_part('year', voyage_start_date)=#{year}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="reportPlatformDiving" resultType="map">
|
||||
SELECT
|
||||
DISTINCT
|
||||
diving_sn
|
||||
FROM
|
||||
voyage_reg r,
|
||||
sample_dataset sd
|
||||
WHERE
|
||||
r.tsy_id = sd.voyage_id and diving_sn is not null
|
||||
and
|
||||
platform_type in (${platform_type})
|
||||
<if test="platform_name != null and platform_name!=''">
|
||||
and platform_name = #{platform_name}
|
||||
</if>
|
||||
<if test="start != null">
|
||||
and voyage_start_date >= #{start}
|
||||
</if>
|
||||
<if test="end != null">
|
||||
and voyage_start_date <= #{end}
|
||||
</if>
|
||||
<if test="year != null and year != ''">
|
||||
and date_part('year', voyage_start_date)=#{year}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="reportPlatfromUnitWithYear" resultType="map">
|
||||
SELECT
|
||||
<if test="platform_name != null and platform_name!=''">
|
||||
platform_name,
|
||||
</if>
|
||||
concat ( voyage_year, '' ) voyage_year,
|
||||
COUNT ( 1 ) unit_total,
|
||||
SUM ( CASE WHEN voyage_year = unit_year THEN 1 ELSE 0 END ) year_unit_total
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
platform_type,
|
||||
platform_name,
|
||||
unit_name,
|
||||
voyage_year,
|
||||
unit_year
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
platform_type,
|
||||
platform_name,
|
||||
date_part( 'year', voyage_start_date ) voyage_year,
|
||||
unit_name,
|
||||
date_part( 'year', u.create_time ) unit_year
|
||||
FROM
|
||||
voyage_reg vr,
|
||||
sample_dataset ds,
|
||||
dict_unit_sail u
|
||||
WHERE
|
||||
ds.voyage_id = vr.tsy_id
|
||||
AND ( u.unit_name = ds.driver_unit_left OR u.unit_name = driver_unit_right )
|
||||
AND platform_type IN ( ${platform_type})
|
||||
)
|
||||
GROUP BY
|
||||
platform_type,
|
||||
platform_name,
|
||||
unit_name,
|
||||
voyage_year,
|
||||
unit_year
|
||||
)
|
||||
<if test="platform_name != null and platform_name != ''">
|
||||
where platform_name=#{platform_name}
|
||||
</if>
|
||||
GROUP BY
|
||||
<if test="platform_name != null and platform_name != ''">
|
||||
platform_name,
|
||||
</if>
|
||||
voyage_year
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue