This commit is contained in:
revisit 2024-06-11 18:40:19 +08:00
commit 18ad6b11bf
230 changed files with 14276 additions and 0 deletions

13
.classpath Normal file
View File

@ -0,0 +1,13 @@
<?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-1.8"/>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Tomcat v9.0">
<attributes>
<attribute name="owner.project.facets" value="jst.web"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="output" path="build/classes"/>
</classpath>

31
.project Normal file
View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>DSDSServer2024</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>

12
.settings/.jsdtscope Normal file
View File

@ -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>

View File

@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="DSDSServer2024">
<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="/DSDSServer2024/build/classes"/>
</wb-module>
</project-modules>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="Tomcat v9.0"/>
<fixed facet="wst.jsdt.web"/>
<fixed facet="java"/>
<fixed facet="jst.web"/>
<installed facet="java" version="1.8"/>
<installed facet="jst.web" version="4.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>

View File

@ -0,0 +1 @@
org.eclipse.wst.jsdt.launching.baseBrowserLibrary

View File

@ -0,0 +1 @@
Window

View File

@ -0,0 +1,5 @@
AppDebug=true
AppParamHelper=cn.tsy.idsse.dsds.helper.DSDSParamHelper
AppDatabaseStdout=InActive
AppListener=cn.tsy.idsse.dsds.control.DSDSInitializeLisener
AppName=DSDS2024Server

View File

@ -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.idsse.dsds.mapper.dict.DictDataMapper">
<!-- 分页查询 -->
<select id="dataWithPage" resultType="map">
select * from dict_data where 1=1
<if test="query != null and query != ''">
and (data_name like concat('%',#{query},'%') or data_remark like concat('%',#{query},'%') or data_alias like concat('%',#{query},'%'))
</if>
<if test="order != null and order != ''">
ORDER BY ${order}
</if>
<if test="type != null and (type == 'DESC')">
DESC
</if>
</select>
</mapper>

View File

@ -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.idsse.dsds.mapper.dict.DictEquipmentMapper">
<!-- 分页查询 -->
<select id="equipmentWithPage" resultType="map">
select * from dict_equipment where 1=1
<if test="query != null and query != ''">
and (equipment_name like concat('%',#{query},'%') or equipment_remark like concat('%',#{query},'%') or equipment_alias like concat('%',#{query},'%'))
</if>
<if test="order != null and order != ''">
ORDER BY ${order}
</if>
<if test="type != null and (type == 'DESC')">
DESC
</if>
</select>
</mapper>

View File

@ -0,0 +1,24 @@
<?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.idsse.dsds.mapper.dict.DictPlatformMapper">
<!-- 分页查询 -->
<select id="platformWithPage" resultType="map">
select * from dict_platform where 1=1
<if test="query != null and query != ''">
and (platform_name like concat('%',#{query},'%') or platform_remark like concat('%',#{query},'%') or platform_alias like concat('%',#{query},'%'))
</if>
<if test="order != null and order != ''">
ORDER BY ${order}
</if>
<if test="type != null and (type == 'DESC')">
DESC
</if>
</select>
</mapper>

View File

@ -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.idsse.dsds.mapper.dict.DictUnitSailMapper">
<!-- 分页查询 -->
<select id="sailWithPage" resultType="map">
select * from dict_unit_sail where 1=1
<if test="query != null and query != ''">
and (unit_name like concat('%',#{query},'%') or link_man like concat('%',#{query},'%'))
</if>
<if test="order != null and order != ''">
ORDER BY ${order}
</if>
<if test="type != null and (type == 'DESC')">
DESC
</if>
</select>
</mapper>

View File

@ -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.idsse.dsds.mapper.dict.DictUnitShareMapper">
<!-- 分页查询 -->
<select id="shareWithPage" resultType="map">
select * from dict_unit_share where 1=1
<if test="query != null and query != ''">
and (unit_name like concat('%',#{query},'%') or link_man like concat('%',#{query},'%'))
</if>
<if test="order != null and order != ''">
ORDER BY ${order}
</if>
<if test="type != null and (type == 'DESC')">
DESC
</if>
</select>
</mapper>

View File

@ -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.idsse.dsds.mapper.sample.SampleDatasetMapper">
<!-- 分页查询 -->
<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="query != null and query != ''">
and (dataset_name like concat('%',#{query},'%') or voyage_name like concat('%',#{query},'%')
or platform_type like concat('%',#{query},'%') or equipment_type like concat('%',#{query},'%')
or platform_name like concat('%',#{query},'%') or dataset_remark like concat('%',#{query},'%'))
</if>
<if test="order != null and order != ''">
ORDER BY ${order}
</if>
<if test="type != null and (type == 'DESC')">
DESC
</if>
</select>
</mapper>

View File

@ -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.idsse.dsds.mapper.sample.SampleDatasetTrackMapper">
<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>
</mapper>

View File

@ -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.idsse.dsds.mapper.sample.SampleLineTrackMapper">
<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>

View File

@ -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.idsse.dsds.mapper.sample.SampleRegMapper">
<!-- 分页查询 -->
<select id="sampleWithPage" resultType="map">
select * from sample_reg where 1=1
<if test="query != null and query != ''">
and (sample_name like concat('%',#{query},'%') or voyage_name like concat('%',#{query},'%')
or platform_name like concat('%',#{query},'%') or sample_remark like concat('%',#{query},'%'))
</if>
<if test="order != null and order != ''">
ORDER BY ${order}
</if>
<if test="type != null and (type == 'DESC')">
DESC
</if>
</select>
</mapper>

View File

@ -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.idsse.dsds.mapper.sar.SarRegMapper">
<!-- 分页查询 -->
<select id="sarWithPage" resultType="map">
select * from sar_reg where 1=1
<if test="query != null and query != ''">
and (sar_name like concat('%',#{query},'%') or link_man like concat('%',#{query},'%')
or target_unit like concat('%',#{query},'%') or sar_remark like concat('%',#{query},'%'))
</if>
<if test="order != null and order != ''">
ORDER BY ${order}
</if>
<if test="type != null and (type == 'DESC')">
DESC
</if>
</select>
</mapper>

View File

@ -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.idsse.dsds.mapper.voyage.VoyageMemberMapper">
<!-- 分页查询 -->
<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="order != null and order != ''">
ORDER BY ${order}
</if>
<if test="type != null and (type == 'DESC')">
DESC
</if>
</select>
</mapper>

View File

@ -0,0 +1,24 @@
<?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.idsse.dsds.mapper.voyage.VoyageNavigationMapper">
<!-- 分页查询 -->
<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="order != null and order != ''">
ORDER BY ${order}
</if>
<if test="type != null and (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>
</mapper>

View File

@ -0,0 +1,25 @@
<?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.idsse.dsds.mapper.voyage.VoyageRegMapper">
<!-- 分页查询 -->
<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
<if test="query != null and query != ''">
and (voyage_name like concat('%',#{query},'%') or voyage_officer like concat('%',#{funding_org},'%') or voyage_officer like concat('%',#{query},'%') or voyage_remark like concat('%',#{query},'%'))
</if>
<if test="order != null and order != ''">
ORDER BY ${order}
</if>
<if test="type != null and (type == 'DESC')">
DESC
</if>
</select>
</mapper>

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More