删除文件
This commit is contained in:
parent
3a132fb174
commit
5b920b4935
|
|
@ -1,32 +0,0 @@
|
||||||
package org.jeecg.modules.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.jeecg.modules.entity.GardsSampleDataWeb;
|
|
||||||
import org.jeecg.modules.entity.vo.SpectrumFileRecord;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface GardsSampleDataWebPostgresMapper {
|
|
||||||
|
|
||||||
Page<GardsSampleDataWeb> findAutoPage(String startDate, String endDate, List<Integer> stationIdList, String qualifie, String sampleType, Page<GardsSampleDataWeb> page);
|
|
||||||
|
|
||||||
Page<GardsSampleDataWeb> findReviewedPage(String startDate, String endDate, List<Integer> stationIdList, String qualifie, Page<GardsSampleDataWeb> page);
|
|
||||||
|
|
||||||
Page<GardsSampleDataWeb> findParticulatePage(String dataType, String spectralQualifie, String startDate, String endDate, List<Integer> stationIdList, Page<GardsSampleDataWeb> page);
|
|
||||||
|
|
||||||
Integer getAnalysisID(@Param(value = "sampleId") Integer sampleId);
|
|
||||||
|
|
||||||
SpectrumFileRecord getDBSpectrumFilePath(Integer sampleId, Integer analysisID);
|
|
||||||
|
|
||||||
String getQCFilePath(String siteDetCode, String collectStartStr);
|
|
||||||
|
|
||||||
Integer getSampleId(@Param(value = "filePathName") String filePathName);
|
|
||||||
|
|
||||||
List<Map<String, Object>> findNuclideStatistics(@Param(value = "stationId") String stationId, @Param(value = "startTime") String startTime, @Param(value = "endTime") String endTime, @Param(value = "nuclideSql") String nuclideSql);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,228 +0,0 @@
|
||||||
<?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="org.jeecg.modules.mapper.GardsSampleDataWebPostgresMapper">
|
|
||||||
|
|
||||||
<select id="findAutoPage" resultType="org.jeecg.modules.entity.GardsSampleDataWeb">
|
|
||||||
SELECT
|
|
||||||
sam.SITE_DET_CODE,
|
|
||||||
sam.SAMPLE_ID,
|
|
||||||
sam.STATION_ID,
|
|
||||||
sam.DETECTOR_ID,
|
|
||||||
sam.INPUT_FILE_NAME,
|
|
||||||
sam.SAMPLE_TYPE,
|
|
||||||
sam.DATA_TYPE,
|
|
||||||
sam.GEOMETRY,
|
|
||||||
sam.SPECTRAL_QUALIFIE,
|
|
||||||
sam.TRANSMIT_DTG,
|
|
||||||
sam.COLLECT_START,
|
|
||||||
sam.COLLECT_STOP,
|
|
||||||
sam.ACQUISITION_START,
|
|
||||||
sam.ACQUISITION_STOP,
|
|
||||||
sam.ACQUISITION_REAL_SEC,
|
|
||||||
sam.ACQUISITION_LIVE_SEC,
|
|
||||||
sam.QUANTITY,
|
|
||||||
sam.STATUS,
|
|
||||||
sam.MODDATE,
|
|
||||||
ana.ANALYST
|
|
||||||
FROM
|
|
||||||
ORIGINAL.GARDS_SAMPLE_DATA sam
|
|
||||||
INNER JOIN RNAUTO.GARDS_ANALYSES ana on ana.SAMPLE_ID = sam.SAMPLE_ID
|
|
||||||
<where>
|
|
||||||
sam.COLLECT_START >= TO_TIMESTAMP(#{startDate}, 'yyyy-mm-dd hh24:mi:ss')
|
|
||||||
and sam.COLLECT_STOP <= TO_TIMESTAMP(#{endDate}, 'yyyy-mm-dd hh24:mi:ss')
|
|
||||||
<if test="stationIdList.size==0 and stationIdList != null">
|
|
||||||
and 1=0 <!--<and sam.STATION_ID in ('')-->
|
|
||||||
</if>
|
|
||||||
<if test="stationIdList.size>0 and stationIdList != null">
|
|
||||||
and sam.STATION_ID in
|
|
||||||
<foreach collection="stationIdList" item="stationId" open="(" close=")" separator=",">
|
|
||||||
#{stationId}
|
|
||||||
</foreach>
|
|
||||||
</if>
|
|
||||||
<if test = "qualifie != null and qualifie != ''">
|
|
||||||
AND sam.SPECTRAL_QUALIFIE = #{qualifie}
|
|
||||||
</if>
|
|
||||||
<if test = "sampleType != null and sampleType != ''">
|
|
||||||
AND sam.SAMPLE_TYPE = #{sampleType}
|
|
||||||
</if>
|
|
||||||
</where>
|
|
||||||
ORDER BY sam.ACQUISITION_START DESC
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="findReviewedPage" resultType="org.jeecg.modules.entity.GardsSampleDataWeb">
|
|
||||||
SELECT
|
|
||||||
sam.SITE_DET_CODE,
|
|
||||||
sam.SAMPLE_ID,
|
|
||||||
sam.STATION_ID,
|
|
||||||
sam.DETECTOR_ID,
|
|
||||||
sam.INPUT_FILE_NAME,
|
|
||||||
sam.SAMPLE_TYPE,
|
|
||||||
sam.DATA_TYPE,
|
|
||||||
sam.GEOMETRY,
|
|
||||||
sam.SPECTRAL_QUALIFIE,
|
|
||||||
sam.TRANSMIT_DTG,
|
|
||||||
sam.COLLECT_START,
|
|
||||||
sam.COLLECT_STOP,
|
|
||||||
sam.ACQUISITION_START,
|
|
||||||
sam.ACQUISITION_STOP,
|
|
||||||
sam.ACQUISITION_REAL_SEC,
|
|
||||||
sam.ACQUISITION_LIVE_SEC,
|
|
||||||
sam.QUANTITY,
|
|
||||||
sam.STATUS,
|
|
||||||
sam.MODDATE,
|
|
||||||
ana.ANALYST
|
|
||||||
FROM
|
|
||||||
ORIGINAL.GARDS_SAMPLE_DATA sam
|
|
||||||
INNER JOIN RNMAN.GARDS_ANALYSES ana on ana.SAMPLE_ID = sam.SAMPLE_ID
|
|
||||||
<where>
|
|
||||||
sam.COLLECT_START >= TO_TIMESTAMP(#{startDate}, 'yyyy-mm-dd hh24:mi:ss')
|
|
||||||
AND sam.COLLECT_STOP <= TO_TIMESTAMP(#{endDate}, 'yyyy-mm-dd hh24:mi:ss')
|
|
||||||
AND ana.REPORT_PAHT IS NOT NULL
|
|
||||||
<if test="stationIdList.size ==0 and stationIdList != null">
|
|
||||||
and 1=0 <!--and sam.STATION_ID in ('')-->
|
|
||||||
</if>
|
|
||||||
<if test="stationIdList.size>0 and stationIdList != null">
|
|
||||||
and sam.STATION_ID in
|
|
||||||
<foreach collection="stationIdList" item="stationId" open="(" close=")" separator=",">
|
|
||||||
#{stationId}
|
|
||||||
</foreach>
|
|
||||||
</if>
|
|
||||||
<if test = "qualifie != null and qualifie != ''">
|
|
||||||
AND sam.SPECTRAL_QUALIFIE = #{qualifie}
|
|
||||||
</if>
|
|
||||||
</where>
|
|
||||||
ORDER BY sam.ACQUISITION_START DESC
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="findParticulatePage" resultType="org.jeecg.modules.entity.GardsSampleDataWeb">
|
|
||||||
SELECT
|
|
||||||
SAMPLE_ID,
|
|
||||||
SITE_DET_CODE,
|
|
||||||
STATION_ID,
|
|
||||||
DETECTOR_ID,
|
|
||||||
INPUT_FILE_NAME,
|
|
||||||
SAMPLE_TYPE,
|
|
||||||
DATA_TYPE,
|
|
||||||
GEOMETRY,
|
|
||||||
SPECTRAL_QUALIFIE,
|
|
||||||
TRANSMIT_DTG,
|
|
||||||
COLLECT_START,
|
|
||||||
COLLECT_STOP,
|
|
||||||
ACQUISITION_START,
|
|
||||||
ACQUISITION_STOP,
|
|
||||||
ACQUISITION_REAL_SEC,
|
|
||||||
ACQUISITION_LIVE_SEC,
|
|
||||||
QUANTITY,
|
|
||||||
STATUS,
|
|
||||||
MODDATE
|
|
||||||
FROM
|
|
||||||
ORIGINAL.GARDS_SAMPLE_DATA
|
|
||||||
<where>
|
|
||||||
DATA_TYPE = '${dataType}'
|
|
||||||
<if test=" spectralQualifie != '' and spectralQualifie != null ">
|
|
||||||
AND SPECTRAL_QUALIFIE = '${spectralQualifie}'
|
|
||||||
AND COLLECT_START >= TO_TIMESTAMP( '${startDate}', 'YYYY-MM-DD HH24:MI:SS' )
|
|
||||||
AND COLLECT_STOP <= TO_TIMESTAMP( '${endDate}', 'YYYY-MM-DD HH24:MI:SS' )
|
|
||||||
</if>
|
|
||||||
<if test=" spectralQualifie == '' or spectralQualifie == null ">
|
|
||||||
AND ACQUISITION_START >= TO_TIMESTAMP( '${startDate}', 'YYYY-MM-DD HH24:MI:SS' )
|
|
||||||
AND ACQUISITION_STOP <= TO_TIMESTAMP( '${endDate}', 'YYYY-MM-DD HH24:MI:SS' )
|
|
||||||
</if>
|
|
||||||
<if test="stationIdList.size>0 and stationIdList != null">
|
|
||||||
AND STATION_ID in
|
|
||||||
<foreach collection="stationIdList" item="stationId" open="(" close=")" separator=",">
|
|
||||||
${stationId}
|
|
||||||
</foreach>
|
|
||||||
</if>
|
|
||||||
</where>
|
|
||||||
ORDER BY ACQUISITION_START DESC
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="getAnalysisID" resultType="java.lang.Integer">
|
|
||||||
SELECT ANALYSIS_DB.IDANALYSIS FROM RNAUTO.GARDS_ANALYSES ANALYSIS_DB WHERE ANALYSIS_DB.SAMPLE_ID = #{sampleId} and ANALYST = 'RNAUTO'
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="getDBSpectrumFilePath" resultType="org.jeecg.modules.entity.vo.SpectrumFileRecord">
|
|
||||||
SELECT
|
|
||||||
org_sample.SAMPLE_ID sampleId,
|
|
||||||
org_sample.INPUT_FILE_NAME sampleFilePath,
|
|
||||||
analyses.USEDGASPHD gasBgFilePath,
|
|
||||||
analyses.USEDDETPHD detBgFilePath,
|
|
||||||
analyses.LOG_PATH logFilePath,
|
|
||||||
analyses.REPORT_PAHT reportFilePath,
|
|
||||||
TRIM(org_sample.SITE_DET_CODE) siteDetCode,
|
|
||||||
org_sample.COLLECT_START collectStart
|
|
||||||
FROM ORIGINAL.GARDS_SAMPLE_DATA org_sample,
|
|
||||||
RNAUTO.GARDS_ANALYSES analyses
|
|
||||||
<where>
|
|
||||||
analyses.SAMPLE_ID = #{sampleId}
|
|
||||||
AND analyses.IDANALYSIS = #{analysisID}
|
|
||||||
AND org_sample.SAMPLE_ID=analyses.SAMPLE_ID
|
|
||||||
</where>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="getQCFilePath" resultType="java.lang.String">
|
|
||||||
SELECT org_sample_data.INPUT_FILE_NAME
|
|
||||||
FROM ORIGINAL.GARDS_SAMPLE_DATA org_sample_data
|
|
||||||
<where>
|
|
||||||
org_sample_data.ACQUISITION_START = (
|
|
||||||
SELECT MAX(qc_samples.ACQUISITION_START)
|
|
||||||
FROM ORIGINAL.GARDS_SAMPLE_DATA qc_samples
|
|
||||||
WHERE qc_samples.SITE_DET_CODE = #{siteDetCode}
|
|
||||||
AND qc_samples.DATA_TYPE = 'Q'
|
|
||||||
AND qc_samples.SPECTRAL_QUALIFIE = 'FULL'
|
|
||||||
AND qc_samples.ACQUISITION_START <= TO_TIMESTAMP(#{collectStartStr}, 'YYYY-MM-DD HH24:MI:SS')
|
|
||||||
)
|
|
||||||
AND org_sample_data.SITE_DET_CODE = #{siteDetCode}
|
|
||||||
</where>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="getSampleId" resultType="java.lang.Integer">
|
|
||||||
SELECT SAMPLE_ID FROM ORIGINAL.GARDS_SAMPLE_DATA WHERE INPUT_FILE_NAME = #{filePathName}
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="findNuclideStatistics" resultType="java.util.Map">
|
|
||||||
SELECT
|
|
||||||
AA.STATION_ID AS "STATION_ID",
|
|
||||||
AA.SAMPLE_ID AS "SAMPLE_ID",
|
|
||||||
AA.SAMPLE_REF_ID AS "SAMPLE_REF_ID",
|
|
||||||
AA.SPECTRAL_QUALIFIE AS "SPECTRAL_QUALIFIE",
|
|
||||||
AA.COLLECT_START AS "COLLECT_START",
|
|
||||||
AA.COLLECT_STOP AS "COLLECT_STOP",
|
|
||||||
AA.QUANTITY AS "QUANTITY",
|
|
||||||
AA.XE_VOLUME AS "XE_VOLUME",
|
|
||||||
AA.ACQUISITION_START AS "ACQUISITION_START",
|
|
||||||
AA.ACQUISITION_STOP AS "ACQUISITION_STOP",
|
|
||||||
AA.ACQUISITION_LIVE_SEC AS "ACQUISITION_LIVE_SEC",
|
|
||||||
AA.SITE_DET_CODE AS "SITE_DET_CODE",
|
|
||||||
${nuclideSql}
|
|
||||||
FROM
|
|
||||||
(
|
|
||||||
SELECT
|
|
||||||
A.STATION_ID,
|
|
||||||
A.SAMPLE_ID,
|
|
||||||
B.SAMPLE_REF_ID,
|
|
||||||
A.SPECTRAL_QUALIFIE,
|
|
||||||
A.COLLECT_START,
|
|
||||||
A.COLLECT_STOP,
|
|
||||||
A.QUANTITY,
|
|
||||||
B.XE_VOLUME,
|
|
||||||
A.ACQUISITION_START,
|
|
||||||
A.ACQUISITION_STOP,
|
|
||||||
A.ACQUISITION_LIVE_SEC,
|
|
||||||
A.SITE_DET_CODE
|
|
||||||
FROM
|
|
||||||
ORIGINAL.GARDS_SAMPLE_DATA A
|
|
||||||
INNER JOIN ORIGINAL.GARDS_SAMPLE_AUX B ON A.SAMPLE_ID = B.SAMPLE_ID
|
|
||||||
WHERE
|
|
||||||
A.STATION_ID = #{stationId}
|
|
||||||
AND A.DATA_TYPE = 'S'
|
|
||||||
AND A.SPECTRAL_QUALIFIE = 'FULL'
|
|
||||||
AND A.COLLECT_START BETWEEN TO_TIMESTAMP(#{startTime}, 'YYYY-MM-DD HH24:MI:SS')
|
|
||||||
AND TO_TIMESTAMP(#{endTime}, 'YYYY-MM-DD HH24:MI:SS')
|
|
||||||
) AA
|
|
||||||
ORDER BY
|
|
||||||
AA.COLLECT_START
|
|
||||||
</select>
|
|
||||||
|
|
||||||
</mapper>
|
|
||||||
Loading…
Reference in New Issue
Block a user