双石水库初始化
parent
271481c5a5
commit
e68f1127f3
|
|
@ -28,7 +28,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/hsz/java:/app
|
- /opt/hsz/java:/app
|
||||||
ports:
|
ports:
|
||||||
- "24205:24205"
|
- "24305:24305"
|
||||||
environment:
|
environment:
|
||||||
- SPRING_PROFILES_ACTIVE=prod
|
- SPRING_PROFILES_ACTIVE=prod
|
||||||
- TZ=Asia/Shanghai
|
- TZ=Asia/Shanghai
|
||||||
|
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.gunshi.project.hsz.common.model.JcskByB;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
@DS("tsg")
|
|
||||||
@Mapper
|
|
||||||
public interface JcskByBMapper extends BaseMapper<JcskByB> {
|
|
||||||
}
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.gunshi.project.hsz.common.model.JcskByR;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
@DS("tsg")
|
|
||||||
@Mapper
|
|
||||||
public interface JcskByRMapper extends BaseMapper<JcskByR> {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,61 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.gunshi.project.hsz.common.model.vo.HomeJcskGnssBVo;
|
|
||||||
import com.gunshi.project.hsz.common.model.JcskGnssB;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Select;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
@DS("tsg")
|
|
||||||
@Mapper
|
|
||||||
public interface JcskGnssBMapper extends BaseMapper<JcskGnssB> {
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
SELECT st.*,r.de as x,r.dn as y,r.du as h,r.tm FROM jcsk_gnss_b st
|
|
||||||
LEFT JOIN (SELECT cd ,MAX(tm) tm FROM jcsk_gnss_r GROUP BY cd) maxr ON st.cd = maxr.cd
|
|
||||||
LEFT JOIN jcsk_gnss_r r ON maxr.cd = r.cd AND maxr.tm = r.tm
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<HomeJcskGnssBVo> getDetailsAndMonitoringDataList();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
SELECT st.*,r.de as x,r.dn as y,r.du as h,r.tm FROM jcsk_gnss_b st
|
|
||||||
LEFT JOIN (SELECT cd ,MAX(tm) tm FROM jcsk_gnss_r GROUP BY cd) maxr ON st.cd = maxr.cd
|
|
||||||
LEFT JOIN jcsk_gnss_r r ON maxr.cd = r.cd AND maxr.tm = r.tm
|
|
||||||
WHERE st.cd = #{id}
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
HomeJcskGnssBVo getDetailsById(String id);
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
select ch from jcsk_gnss_b where ch is not null
|
|
||||||
group by ch
|
|
||||||
""")
|
|
||||||
List<String> listDms();
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
select ch from jcsk_gnss_b group by ch
|
|
||||||
""")
|
|
||||||
List<String> selectCH();
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
select cd from jcsk_gnss_b where ch = #{ch}
|
|
||||||
""")
|
|
||||||
List<String> selectCDbyCh(@Param("ch") String ch);
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
select * from jcsk_gnss_b where ch is null order by cd asc
|
|
||||||
""")
|
|
||||||
List<JcskGnssB> selectArtificial();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,233 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import com.gunshi.project.hsz.common.model.so.JcskGnssRPageSo;
|
|
||||||
import com.gunshi.project.hsz.common.model.so.OsmoticDetailQuerySo;
|
|
||||||
import com.gunshi.project.hsz.common.model.so.OsmoticQuerySo;
|
|
||||||
import com.gunshi.project.hsz.common.model.vo.JcskGnessListVo;
|
|
||||||
import com.gunshi.project.hsz.common.model.vo.JcskGnssRHisVo;
|
|
||||||
import com.gunshi.project.hsz.common.model.vo.OsmoticShiftListVo2;
|
|
||||||
import com.gunshi.project.hsz.common.model.vo.OsmoticShiftValueVo2;
|
|
||||||
import com.gunshi.project.hsz.common.model.JcskGnssR;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Select;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
@DS("tsg")
|
|
||||||
@Mapper
|
|
||||||
public interface JcskGnssRMapper extends BaseMapper<JcskGnssR> {
|
|
||||||
|
|
||||||
// @Select("""
|
|
||||||
// <script>
|
|
||||||
// SELECT st.cd,r.de,r.dn,r.du,to_char(r.tm,'YYYY-MM-DD HH24:MI:SS') as tm FROM jcsk_gnss_r st
|
|
||||||
// LEFT JOIN (SELECT cd,MAX(tm) tm FROM jcsk_gnss_r GROUP BY cd) maxr ON st.cd = maxr.cd
|
|
||||||
// LEFT JOIN jcsk_gnss_r r ON maxr.cd = r.cd AND maxr.tm = r.tm
|
|
||||||
// ORDER BY st.cd asc,r.tm desc
|
|
||||||
// </script>
|
|
||||||
// """)
|
|
||||||
// List<JcskGnessListVo> listValue();
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select
|
|
||||||
t1.cd,
|
|
||||||
t1.ch,
|
|
||||||
t1.cd_nm as cdnm,
|
|
||||||
t2.de,
|
|
||||||
t2.dn,
|
|
||||||
t2.du,
|
|
||||||
to_char(t2.tm,'YYYY-MM-DD HH24:MI:SS') as tm
|
|
||||||
from jcsk_gnss_b t1
|
|
||||||
join (
|
|
||||||
select t2.*
|
|
||||||
from jcsk_gnss_r t2
|
|
||||||
join (
|
|
||||||
select cd, MAX(tm) as tm
|
|
||||||
from jcsk_gnss_r
|
|
||||||
GROUP BY cd
|
|
||||||
) maxr on t2.cd = maxr.cd and t2.tm = maxr.tm
|
|
||||||
) t2 on t1.cd = t2.cd
|
|
||||||
ORDER BY t1.cd asc, t2.tm desc;
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<JcskGnessListVo> listValue();
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select t.station_code as cd,to_char(t.tm,'YYYY-MM-DD HH24:MI:SS') as tm,s.direction
|
|
||||||
from public.osmotic_warn_r t
|
|
||||||
left join public.osmotic_warn_rule s on t.rule_id = s.id
|
|
||||||
where t.station_code in
|
|
||||||
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
|
||||||
#{code}
|
|
||||||
</foreach>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
|
||||||
and t.tm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
|
||||||
</if>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
|
||||||
and t.tm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
|
||||||
</if>
|
|
||||||
order by t.tm desc
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<OsmoticShiftListVo2> queryWarn(@Param("obj") OsmoticQuerySo so);
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select t.cd,t.tm as tm,t.de ,t.dn ,t.du,t.res_cd,t.alt
|
|
||||||
from public.jcsk_gnss_r t
|
|
||||||
where t.cd in
|
|
||||||
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
|
||||||
#{code}
|
|
||||||
</foreach>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
|
||||||
and t.tm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
|
||||||
</if>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
|
||||||
and t.tm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
|
||||||
</if>
|
|
||||||
order by t.tm desc
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<OsmoticShiftValueVo2> queryValue(@Param("obj") OsmoticQuerySo osmoticQuerySo);
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select t.cd,t.tm as tm,t.de ,t.dn ,t.du,t.res_cd,t.alt
|
|
||||||
from public.jcsk_gnss_r_8am t
|
|
||||||
where t.cd in
|
|
||||||
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
|
||||||
#{code}
|
|
||||||
</foreach>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
|
||||||
and t.tm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
|
||||||
</if>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
|
||||||
and t.tm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
|
||||||
</if>
|
|
||||||
order by t.tm desc
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<OsmoticShiftValueVo2> queryReorganizeValue(@Param("obj") OsmoticQuerySo osmoticQuerySo);
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select to_char(t.tm,'YYYY-MM-DD HH24:MI:SS') as tm,t.de,t.dn ,t.du,t.is_artificial as isArtificial from public.jcsk_gnss_r t
|
|
||||||
where t.cd = #{obj.stationCode}
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
|
||||||
and t.tm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
|
||||||
</if>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
|
||||||
and t.tm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
|
||||||
</if>
|
|
||||||
order by t.tm desc
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<OsmoticShiftValueVo2> detailValue(@Param("obj") OsmoticDetailQuerySo so);
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
WITH daily_data AS (
|
|
||||||
SELECT
|
|
||||||
t2.cd,
|
|
||||||
t1.ch,
|
|
||||||
t1.cd_nm,
|
|
||||||
t2.de,
|
|
||||||
t2.dn,
|
|
||||||
t2.du,
|
|
||||||
t2.alt,
|
|
||||||
t2.tm,
|
|
||||||
t2.update_tm,
|
|
||||||
ROW_NUMBER() OVER (PARTITION BY t2.cd, t1.ch, DATE(t2.tm) ORDER BY t2.tm DESC) as rn
|
|
||||||
FROM jcsk_gnss_b t1
|
|
||||||
JOIN jcsk_gnss_r t2 ON t1.cd = t2.cd
|
|
||||||
WHERE 1=1
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
|
||||||
AND t2.tm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
|
||||||
</if>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
|
||||||
AND t2.tm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
|
||||||
</if>
|
|
||||||
<if test="obj.cd != null and obj.cd != ''">
|
|
||||||
AND t2.cd = #{obj.cd}
|
|
||||||
</if>
|
|
||||||
<if test="obj.ch != null and obj.ch != ''">
|
|
||||||
AND t1.ch = #{obj.ch}
|
|
||||||
</if>
|
|
||||||
<if test= "obj.isArtificial != null">
|
|
||||||
AND t2.is_artificial = #{obj.isArtificial}
|
|
||||||
</if>
|
|
||||||
)
|
|
||||||
SELECT
|
|
||||||
cd,
|
|
||||||
ch,
|
|
||||||
cd_nm as cdnm,
|
|
||||||
de,
|
|
||||||
dn,
|
|
||||||
du,
|
|
||||||
alt,
|
|
||||||
tm as tm,
|
|
||||||
update_tm
|
|
||||||
FROM daily_data
|
|
||||||
WHERE rn = 1
|
|
||||||
ORDER BY DATE(tm) DESC, tm DESC, cd DESC
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
Page<JcskGnssR> pageQuery(Page<Object> page, @Param("obj") JcskGnssRPageSo page1);
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select t1.ch,t2.* from
|
|
||||||
jcsk_gnss_b t1
|
|
||||||
left join jcsk_gnss_r t2
|
|
||||||
on t1.cd = t2.cd
|
|
||||||
where 1=1
|
|
||||||
<if test="dto.cd != null and dto.cd != ''">
|
|
||||||
AND t1.cd = #{dto.cd}
|
|
||||||
</if>
|
|
||||||
<if test="dto.ch != null and dto.ch != ''">
|
|
||||||
AND t1.ch = #{dto.ch}
|
|
||||||
</if>
|
|
||||||
<if test="dto.dateTimeRangeSo != null">
|
|
||||||
<![CDATA[
|
|
||||||
AND t2.tm >= #{dto.dateTimeRangeSo.start}
|
|
||||||
AND t2.tm <= #{dto.dateTimeRangeSo.end}
|
|
||||||
]]>
|
|
||||||
</if>
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
Page<JcskGnssRHisVo> historyPage(Page<Object> page, @Param("dto") JcskGnssRPageSo page1);
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select t1.ch,t2.* from
|
|
||||||
jcsk_gnss_b t1
|
|
||||||
left join jcsk_gnss_r t2
|
|
||||||
on t1.cd = t2.cd
|
|
||||||
where t2.is_artificial = 1
|
|
||||||
<if test="dto.cd != null and dto.cd != ''">
|
|
||||||
AND t1.cd = #{dto.cd}
|
|
||||||
</if>
|
|
||||||
<if test="dto.ch != null and dto.ch != ''">
|
|
||||||
AND t1.ch = #{dto.ch}
|
|
||||||
</if>
|
|
||||||
<if test="dto.dateTimeRangeSo != null">
|
|
||||||
<![CDATA[
|
|
||||||
AND t2.tm >= #{dto.dateTimeRangeSo.start}
|
|
||||||
AND t2.tm <= #{dto.dateTimeRangeSo.end}
|
|
||||||
]]>
|
|
||||||
</if>
|
|
||||||
order by t2.tm desc
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
Page<JcskGnssR> artificialPage(Page<Object> page,@Param("dto") JcskGnssRPageSo page1);
|
|
||||||
}
|
|
||||||
|
|
@ -1,164 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.mapper;
|
|
||||||
|
|
||||||
|
|
||||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.gunshi.project.hsz.common.model.so.OsmoticDetailQuerySo;
|
|
||||||
import com.gunshi.project.hsz.common.model.so.OsmoticDetailQuerySo;
|
|
||||||
import com.gunshi.project.hsz.common.model.so.OsmoticQuerySo;
|
|
||||||
import com.gunshi.project.hsz.common.model.vo.HomeJcskSlBVo;
|
|
||||||
import com.gunshi.project.hsz.common.model.vo.JcskSyRVo;
|
|
||||||
import com.gunshi.project.hsz.common.model.vo.OsmoticPressDetailVo;
|
|
||||||
import com.gunshi.project.hsz.common.model.vo.OsmoticValueVo2;
|
|
||||||
import com.gunshi.project.hsz.common.model.JcskSlB;
|
|
||||||
import com.gunshi.project.hsz.common.model.JcskSlR;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Select;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
@DS("tsg")
|
|
||||||
@Mapper
|
|
||||||
public interface JcskSlBMapper extends BaseMapper<JcskSlB> {
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
SELECT st.*,r.spqn as q,r.mstm as tm FROM jcsk_sl_b st
|
|
||||||
LEFT JOIN (SELECT mpcd,MAX(mstm) tm FROM jcsk_sl_r GROUP BY mpcd) maxr ON st.mpcd = maxr.mpcd
|
|
||||||
LEFT JOIN jcsk_sl_r r ON maxr.mpcd = r.mpcd AND maxr.tm = r.mstm
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<HomeJcskSlBVo> getDetailsAndMonitoringDataList();
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
SELECT st.*,r.spqn as q,r.mstm as tm FROM jcsk_sl_b st
|
|
||||||
LEFT JOIN (SELECT mpcd,MAX(mstm) tm FROM jcsk_sl_r GROUP BY mpcd) maxr ON st.mpcd = maxr.mpcd
|
|
||||||
LEFT JOIN jcsk_sl_r r ON maxr.mpcd = r.mpcd AND maxr.tm = r.mstm
|
|
||||||
where st.mpcd = #{id}
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
HomeJcskSlBVo getDetailsById(String id);
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
select dvcd from jcsk_sl_b where dm = #{dm}
|
|
||||||
""")
|
|
||||||
List<String> getDvcdByProfileCode(@Param("dm") String profileCode);
|
|
||||||
|
|
||||||
|
|
||||||
@Select(
|
|
||||||
"""
|
|
||||||
<script>
|
|
||||||
SELECT station_code, value, tm,lgtd,lttd
|
|
||||||
FROM (
|
|
||||||
SELECT
|
|
||||||
st.dvcd as station_code,
|
|
||||||
r.spqn as value,
|
|
||||||
to_char(r.mstm,'YYYY-MM-DD HH24:MI:SS') as tm,
|
|
||||||
st.lgtd,
|
|
||||||
st.lttd,
|
|
||||||
ROW_NUMBER() OVER (PARTITION BY st.mpcd ORDER BY r.mstm DESC) as rn
|
|
||||||
FROM jcsk_sl_b st
|
|
||||||
LEFT JOIN jcsk_sl_r r ON st.mpcd = r.mpcd
|
|
||||||
) t
|
|
||||||
WHERE rn = 1
|
|
||||||
ORDER BY station_code asc;
|
|
||||||
</script>
|
|
||||||
"""
|
|
||||||
)
|
|
||||||
List<JcskSyRVo> listValue();
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select t1.dvcd as stationCode,t2.mstm as tm,t2.spqn as value
|
|
||||||
from public.jcsk_sl_b t1
|
|
||||||
left join public.jcsk_sl_r t2
|
|
||||||
on t1.mpcd = t2.mpcd
|
|
||||||
where t1.dvcd in
|
|
||||||
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
|
||||||
#{code}
|
|
||||||
</foreach>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
|
||||||
and t2.mstm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
|
||||||
</if>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
|
||||||
and t2.mstm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
|
||||||
</if>
|
|
||||||
order by t2.mstm desc
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<OsmoticValueVo2> queryValue(@Param("obj") OsmoticQuerySo osmoticQuerySo);
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select t2.*
|
|
||||||
from public.jcsk_sl_b t1
|
|
||||||
join public.jcsk_sl_r t2
|
|
||||||
on t1.mpcd = t2.mpcd
|
|
||||||
where t1.dvcd in
|
|
||||||
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
|
||||||
#{code}
|
|
||||||
</foreach>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
|
||||||
and t2.mstm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
|
||||||
</if>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
|
||||||
and t2.mstm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
|
||||||
</if>
|
|
||||||
order by t2.mstm desc
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<JcskSlR> syncqueryValue(@Param("obj") OsmoticQuerySo osmoticQuerySo);
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select t1.dvcd as stationCode,t2.mstm as tm,t2.spqn as value
|
|
||||||
from public.jcsk_sl_b t1
|
|
||||||
left join public.jcsk_sl_r_8am t2
|
|
||||||
on t1.mpcd = t2.mpcd
|
|
||||||
where t1.dvcd in
|
|
||||||
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
|
||||||
#{code}
|
|
||||||
</foreach>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
|
||||||
and t2.mstm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
|
||||||
</if>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
|
||||||
and t2.mstm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
|
||||||
</if>
|
|
||||||
order by t2.mstm desc
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<OsmoticValueVo2> query8AmValue(@Param("obj") OsmoticQuerySo osmoticQuerySo);
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select to_char(t.mstm,'YYYY-MM-DD HH24:MI:SS') as tm,
|
|
||||||
t.spqn as value from public.jcsk_sl_b t2
|
|
||||||
left join
|
|
||||||
public.jcsk_sl_r t on t2.mpcd = t.mpcd
|
|
||||||
where t2.dvcd = #{obj.stationCode}
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
|
||||||
and t.mstm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
|
||||||
</if>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
|
||||||
and t.mstm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
|
||||||
</if>
|
|
||||||
order by t.mstm desc
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<OsmoticPressDetailVo> detailValue(@Param("obj") OsmoticDetailQuerySo so);
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select dvcd from jcsk_sl_b where mpcd = #{mpcd} limit 1
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
String selectDvcdByStcdAndMpcd(@Param("mpcd") String mpcd);
|
|
||||||
}
|
|
||||||
|
|
@ -1,84 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import com.gunshi.project.hsz.common.model.so.JcskSlRPageSo;
|
|
||||||
import com.gunshi.project.hsz.common.model.vo.JcskSlRHisVo;
|
|
||||||
import com.gunshi.project.hsz.common.model.JcskSlR;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Select;
|
|
||||||
|
|
||||||
@DS("tsg")
|
|
||||||
@Mapper
|
|
||||||
public interface JcskSlRMapper extends BaseMapper<JcskSlR> {
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
<![CDATA[
|
|
||||||
WITH ranked_data AS (
|
|
||||||
SELECT
|
|
||||||
t1.*,
|
|
||||||
t2.dm,
|
|
||||||
t3.profile_name as dmName,
|
|
||||||
t2.dvcd,
|
|
||||||
ROW_NUMBER() OVER (PARTITION BY t1.mpcd, DATE_TRUNC('day', t1.mstm) ORDER BY t1.mstm DESC) as rn
|
|
||||||
FROM jcsk_sl_r t1
|
|
||||||
JOIN jcsk_sl_b t2 ON t1.mpcd = t2.mpcd
|
|
||||||
LEFT JOIN att_dam_profile t3 ON t2.dm = t3.profile_code
|
|
||||||
WHERE 1=1
|
|
||||||
]]>
|
|
||||||
<if test="dto.dvcd != null and dto.dvcd != ''">
|
|
||||||
AND t2.dvcd = #{dto.dvcd}
|
|
||||||
</if>
|
|
||||||
<if test="dto.dm != null and dto.dm != ''">
|
|
||||||
AND t2.dm = #{dto.dm}
|
|
||||||
</if>
|
|
||||||
<if test="dto.dateTimeRangeSo != null">
|
|
||||||
<![CDATA[
|
|
||||||
AND t1.mstm >= #{dto.dateTimeRangeSo.start}
|
|
||||||
AND t1.mstm <= #{dto.dateTimeRangeSo.end}
|
|
||||||
]]>
|
|
||||||
</if>
|
|
||||||
)
|
|
||||||
SELECT *
|
|
||||||
FROM ranked_data
|
|
||||||
WHERE rn = 1
|
|
||||||
ORDER BY mstm DESC
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
Page<JcskSlR> pageQuery(Page<Object> page, @Param("dto") JcskSlRPageSo page1);
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
<![CDATA[
|
|
||||||
select t2.*,
|
|
||||||
t1.dm,
|
|
||||||
t3.profile_name as dmName,
|
|
||||||
t1.dvcd
|
|
||||||
from jcsk_sl_b t1
|
|
||||||
left join jcsk_sl_r t2 on t1.mpcd = t2.mpcd
|
|
||||||
left join att_dam_profile t3 on t1.dm = t3.profile_code
|
|
||||||
where 1=1
|
|
||||||
]]>
|
|
||||||
<if test="dto.dvcd != null and dto.dvcd != ''">
|
|
||||||
AND t1.dvcd = #{dto.dvcd}
|
|
||||||
</if>
|
|
||||||
<if test="dto.dm != null and dto.dm != ''">
|
|
||||||
AND t1.dm = #{dto.dm}
|
|
||||||
</if>
|
|
||||||
<if test="dto.dateTimeRangeSo != null">
|
|
||||||
<![CDATA[
|
|
||||||
AND t2.mstm >= #{dto.dateTimeRangeSo.start}
|
|
||||||
AND t2.mstm <= #{dto.dateTimeRangeSo.end}
|
|
||||||
]]>
|
|
||||||
</if>
|
|
||||||
order by t2.mstm desc
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
Page<JcskSlRHisVo> historyPage(Page<Object> page, JcskSlRPageSo page1);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,67 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.gunshi.project.hsz.common.model.JcskSyB;
|
|
||||||
import com.gunshi.project.hsz.common.model.vo.HomeJcskSYBVo;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Select;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
@DS("tsg")
|
|
||||||
@Mapper
|
|
||||||
public interface JcskSyBMapper extends BaseMapper<JcskSyB> {
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
SELECT st.*, r.spprwl as value, r.mstm
|
|
||||||
FROM jcsk_sy_b st
|
|
||||||
LEFT JOIN (
|
|
||||||
SELECT mpcd, MAX(mstm) as max_mstm
|
|
||||||
FROM jcsk_sy_r
|
|
||||||
GROUP BY mpcd) maxr ON st.mpcd = maxr.mpcd
|
|
||||||
LEFT JOIN jcsk_sy_r r ON maxr.mpcd = r.mpcd AND maxr.max_mstm = r.mstm
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<HomeJcskSYBVo> getDetailsAndMonitoringDataList();
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
SELECT st.*, r.spprwl as value, r.mstm
|
|
||||||
FROM jcsk_sy_b st
|
|
||||||
LEFT JOIN (
|
|
||||||
SELECT mpcd, MAX(mstm) as tm\s
|
|
||||||
FROM jcsk_sy_r\s
|
|
||||||
GROUP BY mpcd
|
|
||||||
)maxr ON st.mpcd = maxr.mpcd
|
|
||||||
LEFT JOIN jcsk_sy_r r ON maxr.mpcd = r.mpcd AND maxr.tm = r.mstm
|
|
||||||
WHERE st.mpcd = #{id}
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
HomeJcskSYBVo getDetailsById(@Param("id") String id);
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
SELECT dvcd from jcsk_sy_b where dm = #{dm}
|
|
||||||
ORDER BY LENGTH(dvcd) ASC,dvcd ASC;
|
|
||||||
""")
|
|
||||||
List<String> getDvcdByProfileCode(@Param("dm") String profileCode);
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select dvcd from jcsk_sy_b where mpcd = #{mpcd} and stcd =#{stcd}
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
String selectDvcdByStcdAndMpcd(@Param("stcd")String stcd,@Param("mpcd") String mpcd);
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
select DISTINCT(t1.dvcd) from jcsk_sy_b t1
|
|
||||||
""")
|
|
||||||
List<String> selectAllDvcd();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,389 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import com.gunshi.project.hsz.common.model.JcskSyB;
|
|
||||||
import com.gunshi.project.hsz.common.model.JcskSyR;
|
|
||||||
import com.gunshi.project.hsz.common.model.so.OsmoticQuerySo;
|
|
||||||
import com.gunshi.project.hsz.common.model.vo.*;
|
|
||||||
import com.gunshi.project.hsz.common.model.so.JcskSyRPageSo;
|
|
||||||
import com.gunshi.project.hsz.common.model.so.OsmoticDetailQuerySo;
|
|
||||||
import com.gunshi.project.hsz.common.model.so.OsmoticDetailQuerySo;
|
|
||||||
|
|
||||||
import jakarta.validation.constraints.Size;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Select;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
@DS("tsg")
|
|
||||||
@Mapper
|
|
||||||
public interface JcskSyRMapper extends BaseMapper<JcskSyR> {
|
|
||||||
@Select(
|
|
||||||
"""
|
|
||||||
<script>
|
|
||||||
SELECT
|
|
||||||
st.dvcd as station_code,
|
|
||||||
r.spprwl as value,
|
|
||||||
to_char(r.mstm,'YYYY-MM-DD HH24:MI:SS') as tm,
|
|
||||||
m.profile_name,
|
|
||||||
st.lgtd,
|
|
||||||
st.lttd
|
|
||||||
FROM jcsk_sy_b st
|
|
||||||
LEFT JOIN (
|
|
||||||
SELECT mpcd,stcd, MAX(mstm) as max_tm
|
|
||||||
FROM jcsk_sy_r
|
|
||||||
GROUP BY mpcd,stcd
|
|
||||||
) maxr ON st.mpcd = maxr.mpcd and st.stcd = maxr.stcd
|
|
||||||
LEFT JOIN jcsk_sy_r r ON maxr.mpcd = r.mpcd AND maxr.max_tm = r.mstm and maxr.stcd = r.stcd
|
|
||||||
LEFT JOIN att_dam_profile m ON st.dm = m.profile_code
|
|
||||||
ORDER BY m._order ASC;
|
|
||||||
</script>
|
|
||||||
"""
|
|
||||||
)
|
|
||||||
List<JcskSyRVo> listValue();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Select(
|
|
||||||
"""
|
|
||||||
<script>
|
|
||||||
SELECT
|
|
||||||
st.mpcd as station_code,
|
|
||||||
r.spqn as value,
|
|
||||||
to_char(r.mstm,'YYYY-MM-DD HH24:MI:SS') as tm
|
|
||||||
FROM jcsk_sl_b st
|
|
||||||
LEFT JOIN (
|
|
||||||
SELECT mpcd, MAX(mstm) as tm
|
|
||||||
FROM jcsk_sl_r
|
|
||||||
GROUP BY mpcd
|
|
||||||
) maxr ON st.mpcd = maxr.mpcd
|
|
||||||
LEFT JOIN jcsk_sl_r r ON maxr.mpcd = r.mpcd AND maxr.tm = r.mstm
|
|
||||||
ORDER BY st.mpcd asc, r.mstm desc;
|
|
||||||
</script>
|
|
||||||
"""
|
|
||||||
)
|
|
||||||
List<JcskSyRVo> flowListValue();
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select t.station_code as stationCode,to_char(t.tm,'YYYY-MM-DD HH24:MI:SS') as tm
|
|
||||||
from public.osmotic_warn_r t
|
|
||||||
where t.station_code in
|
|
||||||
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
|
||||||
#{code}
|
|
||||||
</foreach>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
|
||||||
and t.tm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
|
||||||
</if>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
|
||||||
and t.tm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
|
||||||
</if>
|
|
||||||
order by t.tm desc
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<OsmoticValueVo2> queryWarn(@Param("obj") OsmoticQuerySo so);
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select to_char(t.mstm,'YYYY-MM-DD HH24:MI:SS') as tm,
|
|
||||||
t.spprwl as value from public.jcsk_sy_b t2
|
|
||||||
left join public.jcsk_sy_r t on t2.stcd = t.stcd and t2.mpcd = t.mpcd
|
|
||||||
where t2.dvcd = #{obj.stationCode}
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
|
||||||
and t.mstm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
|
||||||
</if>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
|
||||||
and t.mstm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
|
||||||
</if>
|
|
||||||
order by t.mstm desc
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<OsmoticPressDetailVo> detailValue(@Param("obj") OsmoticDetailQuerySo so);
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select to_char(t.tm,'YYYY-MM-DD HH24:00:SS') as tm,t.rz
|
|
||||||
from public.st_rsvr_r t
|
|
||||||
where t.stcd = #{stcd} and to_char(t.tm, 'SS') = '00'
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
|
||||||
and t.tm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
|
||||||
</if>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
|
||||||
and t.tm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
|
||||||
</if>
|
|
||||||
order by t.tm desc
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<StRzVo> queryLineRz(@Param("obj") OsmoticQuerySo osmoticQuerySo, @Param("stcd") String stcd);
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select to_char(t.tm,'YYYY-MM-DD') as tm,t.drp as rz
|
|
||||||
from public.st_pptn_r_d t
|
|
||||||
where t.year = #{year} and t.stcd = #{stcd}
|
|
||||||
order by t.tm desc
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<StRzVo> queryDrp(@Param("year") Integer year,@Param("stcd") String stcd);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select to_char(t.tm,'YYYY-MM-DD') as tm,t.rz
|
|
||||||
from public.st_rsvr_r t
|
|
||||||
where to_char(t.tm, 'HH24') = '08' and t.stcd = #{stcd}
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
|
||||||
and t.tm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
|
||||||
</if>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
|
||||||
and t.tm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
|
||||||
</if>
|
|
||||||
order by t.tm desc
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<StRzVo> queryRz(@Param("obj") OsmoticQuerySo osmoticQuerySo,@Param("stcd") String stcd);
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select to_char(t.tm,'YYYY-MM-DD HH:00:ss') as tm,t.rz
|
|
||||||
from public.st_rsvr_r t
|
|
||||||
where to_char(t.tm, 'SS') = '00' and t.stcd = #{stcd}
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
|
||||||
and t.tm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
|
||||||
</if>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
|
||||||
and t.tm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
|
||||||
</if>
|
|
||||||
order by t.tm desc
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<StRzVo> queryRz2(@Param("obj") OsmoticQuerySo osmoticQuerySo,@Param("stcd") String stcd);
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select t1.dvcd as stationCode,t2.mstm as tm,t2.spprwl as value
|
|
||||||
from public.jcsk_sy_b t1 left join public.jcsk_sy_r t2
|
|
||||||
on t1.stcd =t2.stcd and t1.mpcd = t2.mpcd
|
|
||||||
where t1.dvcd in
|
|
||||||
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
|
||||||
#{code}
|
|
||||||
</foreach>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
|
||||||
and t2.mstm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
|
||||||
</if>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
|
||||||
and t2.mstm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
|
||||||
</if>
|
|
||||||
order by t2.mstm desc
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<OsmoticValueVo2> queryValue(@Param("obj") OsmoticQuerySo osmoticQuerySo);
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select t1.dvcd as stationCode,t2.mstm as tm,t2.spprwl as value
|
|
||||||
from public.jcsk_sy_b t1 left join public.jcsk_sy_r_8am t2
|
|
||||||
on t1.stcd =t2.stcd and t1.mpcd = t2.mpcd
|
|
||||||
where t1.dvcd in
|
|
||||||
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
|
||||||
#{code}
|
|
||||||
</foreach>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
|
||||||
and t2.mstm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
|
||||||
</if>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
|
||||||
and t2.mstm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
|
||||||
</if>
|
|
||||||
order by t2.mstm desc
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<OsmoticValueVo2> query8AmValue(@Param("obj") OsmoticQuerySo osmoticQuerySo);
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select t2.*
|
|
||||||
from public.jcsk_sy_b t1
|
|
||||||
join public.jcsk_sy_r t2
|
|
||||||
on t1.stcd =t2.stcd and t1.mpcd = t2.mpcd
|
|
||||||
where t1.dvcd in
|
|
||||||
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
|
||||||
#{code}
|
|
||||||
</foreach>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
|
||||||
and t2.mstm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
|
||||||
</if>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
|
||||||
and t2.mstm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
|
||||||
</if>
|
|
||||||
order by t2.mstm desc
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<JcskSyR> syncqueryValue(@Param("obj") OsmoticQuerySo osmoticQuerySo);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select t1.dvcd as stationCode,to_char(t2.mstm,'YYYY-MM-DD HH24:MI:SS') as tm,t2.spprwl as value
|
|
||||||
from public.jcsk_sy_b t1
|
|
||||||
left join public.jcsk_sy_r t2 on t1.stcd =t2.stcd and t1.mpcd = t2.mpcd
|
|
||||||
where t1.dvcd in
|
|
||||||
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
|
||||||
#{code}
|
|
||||||
</foreach>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
|
||||||
and t2.mstm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
|
||||||
</if>
|
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
|
||||||
and t2.mstm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
|
||||||
</if>
|
|
||||||
order by t2.mstm desc
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<OsmoticValueVo2> queryLineValue(@Param("obj") OsmoticQuerySo osmoticQuerySo);
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
<![CDATA[
|
|
||||||
WITH ranked_data AS (
|
|
||||||
SELECT
|
|
||||||
t1.*,
|
|
||||||
t2.dm,
|
|
||||||
t3.profile_name as dmName,
|
|
||||||
t2.dvcd,
|
|
||||||
ROW_NUMBER() OVER (PARTITION BY t1.stcd, t1.mpcd, DATE_TRUNC('day', t1.mstm) ORDER BY t1.mstm DESC) as rn
|
|
||||||
FROM jcsk_sy_r t1
|
|
||||||
JOIN jcsk_sy_b t2 ON t1.stcd = t2.stcd AND t1.mpcd = t2.mpcd
|
|
||||||
LEFT JOIN att_dam_profile t3 ON t2.dm = t3.profile_code
|
|
||||||
WHERE 1=1
|
|
||||||
]]>
|
|
||||||
<if test="dto.dvcd != null and dto.dvcd != ''">
|
|
||||||
AND t2.dvcd = #{dto.dvcd}
|
|
||||||
</if>
|
|
||||||
<if test="dto.dm != null and dto.dm != ''">
|
|
||||||
AND t2.dm = #{dto.dm}
|
|
||||||
</if>
|
|
||||||
<if test="dto.dateTimeRangeSo != null">
|
|
||||||
<![CDATA[
|
|
||||||
AND t1.mstm >= #{dto.dateTimeRangeSo.start}
|
|
||||||
AND t1.mstm <= #{dto.dateTimeRangeSo.end}
|
|
||||||
]]>
|
|
||||||
</if>
|
|
||||||
)
|
|
||||||
SELECT *
|
|
||||||
FROM ranked_data
|
|
||||||
WHERE rn = 1
|
|
||||||
ORDER BY mstm DESC
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
Page<JcskSyR> queryPage(Page<Object> page, @Param("dto") JcskSyRPageSo pageSo);
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
select dm from jcsk_sy_b
|
|
||||||
GROUP BY dm
|
|
||||||
""")
|
|
||||||
List<String> listDm();
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
select stcd,mpcd from jcsk_sy_b
|
|
||||||
""")
|
|
||||||
List<JcskSyB> listStcdMpcd();
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
select dvcd from jcsk_sy_b where dm = #{dm}
|
|
||||||
""")
|
|
||||||
List<String> listDvcdByDm(@Param("dm") String dm);
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
<![CDATA[
|
|
||||||
select t2.*,
|
|
||||||
t1.dm,
|
|
||||||
t3.profile_name as dmName,
|
|
||||||
t1.dvcd
|
|
||||||
from jcsk_sy_b t1
|
|
||||||
left join jcsk_sy_r t2 on t1.stcd = t2.stcd and t1.mpcd = t2.mpcd
|
|
||||||
left join att_dam_profile t3 on t1.dm = t3.profile_code
|
|
||||||
where 1=1
|
|
||||||
]]>
|
|
||||||
<if test="dto.dvcd != null and dto.dvcd != ''">
|
|
||||||
AND t1.dvcd = #{dto.dvcd}
|
|
||||||
</if>
|
|
||||||
<if test="dto.dm != null and dto.dm != ''">
|
|
||||||
AND t1.dm = #{dto.dm}
|
|
||||||
</if>
|
|
||||||
<if test="dto.dateTimeRangeSo != null">
|
|
||||||
<![CDATA[
|
|
||||||
AND t2.mstm >= #{dto.dateTimeRangeSo.start}
|
|
||||||
AND t2.mstm <= #{dto.dateTimeRangeSo.end}
|
|
||||||
]]>
|
|
||||||
</if>
|
|
||||||
order by t2.mstm desc
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
Page<JcskSyRHisVo> historyPage(Page<Object> page, @Param("dto") JcskSyRPageSo page1);
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
<![CDATA[
|
|
||||||
select t2.*,
|
|
||||||
t1.dm,
|
|
||||||
t3.profile_name as dmName,
|
|
||||||
t1.dvcd
|
|
||||||
from jcsk_sy_b t1
|
|
||||||
left join jcsk_sy_r t2 on t1.stcd = t2.stcd and t1.mpcd = t2.mpcd
|
|
||||||
left join att_dam_profile t3 on t1.dm = t3.profile_code
|
|
||||||
where t2.is_artificial = 1
|
|
||||||
]]>
|
|
||||||
<if test="dto.dvcd != null and dto.dvcd != ''">
|
|
||||||
AND t1.dvcd = #{dto.dvcd}
|
|
||||||
</if>
|
|
||||||
<if test="dto.dm != null and dto.dm != ''">
|
|
||||||
AND t1.dm = #{dto.dm}
|
|
||||||
</if>
|
|
||||||
<if test="dto.dateTimeRangeSo != null">
|
|
||||||
<![CDATA[
|
|
||||||
AND t2.mstm >= #{dto.dateTimeRangeSo.start}
|
|
||||||
AND t2.mstm <= #{dto.dateTimeRangeSo.end}
|
|
||||||
]]>
|
|
||||||
</if>
|
|
||||||
order by t2.mstm desc
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
Page<JcskSyR> artificialPage(Page<Object> page,@Param("dto") JcskSyRPageSo page1);
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
WITH ranked_data AS (
|
|
||||||
SELECT
|
|
||||||
tm,
|
|
||||||
rz,
|
|
||||||
ABS(EXTRACT(HOUR FROM tm) + EXTRACT(MINUTE FROM tm)/60.0 - 8) as time_diff,
|
|
||||||
ROW_NUMBER() OVER (PARTITION BY DATE(tm) ORDER BY ABS(EXTRACT(HOUR FROM tm) + EXTRACT(MINUTE FROM tm)/60.0 - 8)) as rn
|
|
||||||
FROM st_rsvr_r
|
|
||||||
WHERE stcd = #{stcd}
|
|
||||||
AND tm >= #{dto.dateTimeRangeSo.start}
|
|
||||||
AND tm <= #{dto.dateTimeRangeSo.end}
|
|
||||||
)
|
|
||||||
SELECT
|
|
||||||
TO_CHAR(DATE(tm) + INTERVAL '8 hours', 'YYYY-MM-DD HH24:MI:SS') as tm,
|
|
||||||
rz
|
|
||||||
FROM ranked_data
|
|
||||||
WHERE rn = 1
|
|
||||||
ORDER BY tm
|
|
||||||
""")
|
|
||||||
List<StRzVo> qeury8AmRz(@Param("dto") OsmoticQuerySo dto, @Param("stcd") String stcd);
|
|
||||||
}
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.gunshi.project.hsz.common.model.StFlowR;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
import org.apache.ibatis.annotations.Select;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface StFlowRMapper extends BaseMapper<StFlowR> {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
select t1.sttp,t2.* from
|
|
||||||
st_stbprp_b t1
|
|
||||||
join (SELECT id, stcd, tm, inq, q, otq, crtime
|
|
||||||
FROM (
|
|
||||||
SELECT *,
|
|
||||||
ROW_NUMBER() OVER (PARTITION BY stcd ORDER BY tm DESC) as rn
|
|
||||||
FROM st_flow_r
|
|
||||||
) t
|
|
||||||
WHERE rn = 1) t2 on t1.stcd = t2.stcd
|
|
||||||
""")
|
|
||||||
List<StFlowR> listNewData();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,97 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.gunshi.project.hsz.common.model.StPptnR;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Select;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 描述: 降水量表
|
|
||||||
* author: xusan
|
|
||||||
* date: 2024-07-08 15:44:08
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface StPptnRMapper extends BaseMapper<StPptnR> {
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
with m1 as (
|
|
||||||
select stcd,drp from public.st_pptn_r qxt WHERE
|
|
||||||
tm > #{startTime} and tm <= #{endTime})
|
|
||||||
select SUM(m1.drp) as sumdrp FROM m1
|
|
||||||
GROUP BY m1.stcd
|
|
||||||
HAVING m1.stcd = #{stcd}
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
BigDecimal queryStPptnTimeQuantumByStcdAndTime(@Param("stcd") String stcd, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
|
||||||
|
|
||||||
List<StPptnR> getStcdLastPptnData();
|
|
||||||
|
|
||||||
List<Map<String, Object>> getPptnRDataList(@Param("stcd") String stcd, @Param("tm") String tm);
|
|
||||||
|
|
||||||
List<Map<String, Object>> getPptnRDataListByTask(@Param("resCode") String resCode, @Param("stcd") String stcd, @Param("tm") String tm);
|
|
||||||
|
|
||||||
List<StPptnR> getStcdFirstPptnData();
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
select DISTINCT ON (r.stcd) r.stcd, r.drp, r.tm
|
|
||||||
from public.st_stbprp_b_elem b
|
|
||||||
join public.st_pptn_r r on b.stcd=r.stcd
|
|
||||||
ORDER BY r.stcd, r.tm DESC
|
|
||||||
""")
|
|
||||||
List<StPptnR> getNewestDataOfEachStcd();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 根据stcd查询24小时总降水量
|
|
||||||
*/
|
|
||||||
// @Select("""
|
|
||||||
// select SUM(drp) from public.st_pptn_r
|
|
||||||
// where stcd=#{stcd} and tm >= now() - interval '24 hours'
|
|
||||||
// """)
|
|
||||||
@Select("""
|
|
||||||
SELECT SUM(drp)
|
|
||||||
FROM public.st_pptn_r
|
|
||||||
WHERE stcd = #{stcd}
|
|
||||||
AND tm > DATE_TRUNC('day', NOW() - INTERVAL '1 day') + INTERVAL '8 hours'
|
|
||||||
AND tm <= DATE_TRUNC('day', NOW()) + INTERVAL '8 hours'
|
|
||||||
""")
|
|
||||||
BigDecimal getdrp24SumByStcd(String stcd);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 根据stcd查询24小时内最大降水量
|
|
||||||
*/
|
|
||||||
// @Select("""
|
|
||||||
// SELECT *
|
|
||||||
// FROM public.st_pptn_r
|
|
||||||
// WHERE stcd = #{stcd}
|
|
||||||
// AND drp = (
|
|
||||||
// SELECT MAX(drp)
|
|
||||||
// FROM public.st_pptn_r
|
|
||||||
// WHERE stcd = #{stcd}
|
|
||||||
// AND tm >= NOW() - INTERVAL '24 hours'
|
|
||||||
// )
|
|
||||||
// AND tm >= NOW() - INTERVAL '24 hours'
|
|
||||||
// LIMIT 1
|
|
||||||
// """)
|
|
||||||
@Select("""
|
|
||||||
SELECT *
|
|
||||||
FROM public.st_pptn_r
|
|
||||||
WHERE stcd = #{stcd}
|
|
||||||
AND drp = (
|
|
||||||
SELECT MAX(drp)
|
|
||||||
FROM public.st_pptn_r
|
|
||||||
WHERE stcd = #{stcd}
|
|
||||||
AND tm > DATE_TRUNC('day', NOW() - INTERVAL '1 day') + INTERVAL '8 hours'
|
|
||||||
AND tm <= DATE_TRUNC('day', NOW()) + INTERVAL '8 hours'
|
|
||||||
)
|
|
||||||
AND tm > DATE_TRUNC('day', NOW() - INTERVAL '1 day') + INTERVAL '8 hours'
|
|
||||||
AND tm <= DATE_TRUNC('day', NOW()) + INTERVAL '8 hours'
|
|
||||||
LIMIT 1
|
|
||||||
""")
|
|
||||||
StPptnR getdrp24MaxByStcd(String stcd);
|
|
||||||
}
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.gunshi.project.hsz.common.model.StPptnRReal;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Select;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 描述: 降水量历史表
|
|
||||||
* author: xusan
|
|
||||||
* date: 2024-07-08 15:44:08
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface StPptnRRealMapper extends BaseMapper<StPptnRReal> {
|
|
||||||
|
|
||||||
int updatePptnRReal(@Param("stcd") String stcd);
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
SELECT t.*,s.stnm FROM public.st_stbprp_b s
|
|
||||||
left join public.st_pptn_r_real t on t.stcd = s.stcd
|
|
||||||
WHERE s.stcd in (select distinct(stcd) from st_stbprp_b_elem where elem ='drp')
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<StPptnRReal> queryList();
|
|
||||||
}
|
|
||||||
|
|
@ -1,40 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.gunshi.db.dto.DateTimeRangeSo;
|
|
||||||
import com.gunshi.project.hsz.common.model.StRiverR;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Select;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 描述:
|
|
||||||
* author: cxw
|
|
||||||
* date: 2024-09-24 14:01:07
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface StRiverRMapper extends BaseMapper<StRiverR> {
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select t1.*,t2.stnm,t2.lgtd,t2.lttd from st_river_r t1
|
|
||||||
left join st_stbprp_b t2 on t1.stcd = t2.stcd
|
|
||||||
where 1=1
|
|
||||||
<if test="stcd != null and stcd != ''">
|
|
||||||
and t1.stcd = #{stcd}
|
|
||||||
</if>
|
|
||||||
<if test="obj != null">
|
|
||||||
<if test="obj.start != null">
|
|
||||||
and t1.tm >= #{obj.start}
|
|
||||||
</if>
|
|
||||||
<if test="obj.end != null">
|
|
||||||
and t1.tm <= #{obj.end}
|
|
||||||
</if>
|
|
||||||
</if>
|
|
||||||
order by t1.tm desc
|
|
||||||
limit 1
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
StRiverR queryByOneByTimeRange(@Param("stcd") String stcd, @Param("obj") DateTimeRangeSo dateTimeRangeSo);
|
|
||||||
}
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.gunshi.project.hsz.common.model.StRiverRReal;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Select;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 描述:
|
|
||||||
* author: cxw
|
|
||||||
* date: 2024-09-24 14:01:07
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface StRiverRRealMapper extends BaseMapper<StRiverRReal> {
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
select t.*,t2.stnm from st_river_r_real t
|
|
||||||
left join st_stbprp_b t2 on t.stcd = t2.stcd
|
|
||||||
where t.stcd = #{stcd}
|
|
||||||
order by t.tm desc limit 1
|
|
||||||
""")
|
|
||||||
StRiverRReal queryQByStcd(@Param("stcd") String stcd);
|
|
||||||
}
|
|
||||||
|
|
@ -1,50 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.gunshi.project.hsz.common.model.StRsvrR;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
import org.apache.ibatis.annotations.Select;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 描述: 水库历史水位表
|
|
||||||
* author: xusan
|
|
||||||
* date: 2024-07-08 15:44:08
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface StRsvrRMapper extends BaseMapper<StRsvrR> {
|
|
||||||
|
|
||||||
List<StRsvrR> getStcdLastRsvrData();
|
|
||||||
|
|
||||||
List<StRsvrR> getStcdFirstRsvrData();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 根据stcd获取8点的rz
|
|
||||||
*/
|
|
||||||
@Select("""
|
|
||||||
select rz
|
|
||||||
from public.st_rsvr_r
|
|
||||||
where stcd = '232'
|
|
||||||
and tm <= date_trunc('day', now()) + interval '8 hours'
|
|
||||||
and tm >= now() - interval '24 hours' -- 增加这个条件
|
|
||||||
order by tm desc
|
|
||||||
limit 1
|
|
||||||
""")
|
|
||||||
BigDecimal getRz8ByStcd(String stcd);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 根据stcd获取昨日8点的rz
|
|
||||||
*/
|
|
||||||
@Select("""
|
|
||||||
select rz
|
|
||||||
from public.st_rsvr_r
|
|
||||||
where stcd = #{stcd}
|
|
||||||
and tm >= date_trunc('day', now() - interval '1 day') + interval '7 hours 50 minutes'
|
|
||||||
and tm <= date_trunc('day', now() - interval '1 day') + interval '8 hours 10 minutes'
|
|
||||||
order by tm desc
|
|
||||||
limit 1
|
|
||||||
""")
|
|
||||||
BigDecimal getRzYesterday8ByStcd(String stcd);
|
|
||||||
}
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.gunshi.project.hsz.common.model.StRsvrRReal;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Select;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 描述: 水库水位实时数据表
|
|
||||||
* author: xusan
|
|
||||||
* date: 2024-07-08 15:44:08
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface StRsvrRRealMapper extends BaseMapper<StRsvrRReal> {
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
select t2.*,t1.stnm FROM
|
|
||||||
st_stbprp_b t1
|
|
||||||
join st_rsvr_r_real t2
|
|
||||||
on t1.stcd = t2.stcd
|
|
||||||
where t2.stcd = #{stcd}
|
|
||||||
order by t2.tm desc
|
|
||||||
limit 1
|
|
||||||
""")
|
|
||||||
StRsvrRReal queryRzByStcd(@Param("stcd") String stcd);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.gunshi.project.hsz.common.model.StStbprpBElem;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Select;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 描述: 测站监测值类型
|
|
||||||
* author: xusan
|
|
||||||
* date: 2024-07-08 15:44:08
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface StStbprpBElemMapper extends BaseMapper<StStbprpBElem> {
|
|
||||||
@Select("""
|
|
||||||
<script>
|
|
||||||
select b.stcd, e.elem from st_stbprp_b b
|
|
||||||
left join st_stbprp_b_elem e on b.stcd=e.stcd
|
|
||||||
where elem = #{elem}
|
|
||||||
</script>
|
|
||||||
""")
|
|
||||||
List<StStbprpBElem> selectByElem(@Param("elem") String elem);
|
|
||||||
}
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.gunshi.project.hsz.common.model.StStbprpB;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
import org.apache.ibatis.annotations.Select;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 描述: sttp 以水利标准来
|
|
||||||
* author: xusan
|
|
||||||
* date: 2024-07-08 15:44:08
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface StStbprpBMapper extends BaseMapper<StStbprpB> {
|
|
||||||
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
select * from public.st_stbprp_b b
|
|
||||||
join public.st_stbprp_b_elem e
|
|
||||||
on b.stcd = e.stcd
|
|
||||||
where e.elem='drp'
|
|
||||||
""")
|
|
||||||
List<StStbprpB> getPptnStations();
|
|
||||||
|
|
||||||
@Select("""
|
|
||||||
select * from public.st_stbprp_b b
|
|
||||||
join public.st_stbprp_b_elem e
|
|
||||||
on b.stcd =e.stcd
|
|
||||||
where e.elem = 'rz'
|
|
||||||
""")
|
|
||||||
List<StStbprpB> getRsvrStations();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,159 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model;
|
|
||||||
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
||||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
||||||
import com.gunshi.core.dateformat.DateFormatString;
|
|
||||||
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
|
||||||
import com.gunshi.project.hsz.common.validate.markers.Update;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
|
||||||
import jakarta.validation.constraints.Size;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 描述: 巡检任务
|
|
||||||
* author: xusan
|
|
||||||
* date: 2024-08-29 14:21:14
|
|
||||||
*/
|
|
||||||
@Schema(description="巡检任务")
|
|
||||||
@Data
|
|
||||||
@TableName("public.inspect_task")
|
|
||||||
@IgnoreAutoMapperAndDao
|
|
||||||
public class InspectTask implements Serializable {
|
|
||||||
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主键
|
|
||||||
*/
|
|
||||||
@TableId(value="id", type= IdType.AUTO)
|
|
||||||
@Schema(description="主键")
|
|
||||||
@NotNull(message = "主键不能为空",groups = {Update.class})
|
|
||||||
@JsonSerialize(using = ToStringSerializer.class)
|
|
||||||
private Long id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 任务类型(1日常巡查 2特别检查 3汛前巡检)
|
|
||||||
*/
|
|
||||||
@TableField(value="task_type")
|
|
||||||
@Schema(description="任务类型(1日常巡查 2特别检查 3汛前巡检)")
|
|
||||||
private Integer taskType;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 任务标题
|
|
||||||
*/
|
|
||||||
@TableField(value="task_title")
|
|
||||||
@Schema(description="任务标题")
|
|
||||||
@Size(max = 100,message = "任务标题最大长度要小于 100")
|
|
||||||
private String taskTitle;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 巡查人id
|
|
||||||
*/
|
|
||||||
@TableField(value="inspect_user_id")
|
|
||||||
@Schema(description="巡查人id")
|
|
||||||
@JsonSerialize(using = ToStringSerializer.class)
|
|
||||||
private Long inspectUserId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 巡查人
|
|
||||||
*/
|
|
||||||
@TableField(value="inspect_user_name")
|
|
||||||
@Schema(description="巡查人")
|
|
||||||
@Size(max = 100,message = "巡查人最大长度要小于 100")
|
|
||||||
private String inspectUserName;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 任务内容
|
|
||||||
*/
|
|
||||||
@TableField(value="task_content")
|
|
||||||
@Schema(description="任务内容")
|
|
||||||
@Size(max = 500,message = "任务内容最大长度要小于 500")
|
|
||||||
private String taskContent;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 开始日期
|
|
||||||
*/
|
|
||||||
@TableField(value="start_date")
|
|
||||||
@Schema(description="开始日期")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD, timezone = "GMT+8")
|
|
||||||
private Date startDate;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 结束日期
|
|
||||||
*/
|
|
||||||
@TableField(value="end_date")
|
|
||||||
@Schema(description="结束日期")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD, timezone = "GMT+8")
|
|
||||||
private Date endDate;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 接收时间
|
|
||||||
*/
|
|
||||||
@TableField(value="receive_time")
|
|
||||||
@Schema(description="接收时间")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date receiveTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 完成时间
|
|
||||||
*/
|
|
||||||
@TableField(value="finish_time")
|
|
||||||
@Schema(description="完成时间")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date finishTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 状态(0未完成 1进行中 2已完成)
|
|
||||||
*/
|
|
||||||
@TableField(value="status")
|
|
||||||
@Schema(description="状态(0未完成 1进行中 2已完成)")
|
|
||||||
private Integer status;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建人id
|
|
||||||
*/
|
|
||||||
@TableField(value="create_user_id")
|
|
||||||
@Schema(description="创建人id")
|
|
||||||
@JsonSerialize(using = ToStringSerializer.class)
|
|
||||||
private Long createUserId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建人
|
|
||||||
*/
|
|
||||||
@TableField(value="create_user_name")
|
|
||||||
@Schema(description="创建人")
|
|
||||||
@Size(max = 100,message = "创建人最大长度要小于 100")
|
|
||||||
private String createUserName;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建时间
|
|
||||||
*/
|
|
||||||
@TableField(value="create_time")
|
|
||||||
@Schema(description="创建时间")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date createTime;
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
@Schema(description="问题数量")
|
|
||||||
private Integer problemNum = 0;
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
@Schema(description="待处理数量")
|
|
||||||
private Integer handleNum = 0;
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
@Schema(description="巡检项")
|
|
||||||
private List<InspectTaskDetail> items;
|
|
||||||
}
|
|
||||||
|
|
@ -1,124 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model;
|
|
||||||
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
||||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
||||||
import com.gunshi.core.dateformat.DateFormatString;
|
|
||||||
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
|
||||||
import com.gunshi.project.hsz.common.validate.markers.Update;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
|
||||||
import jakarta.validation.constraints.Size;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 描述: 巡查信息
|
|
||||||
* author: xusan
|
|
||||||
* date: 2024-08-29 15:21:24
|
|
||||||
*/
|
|
||||||
@Schema(description="巡查信息")
|
|
||||||
@Data
|
|
||||||
@TableName("public.inspect_task_detail")
|
|
||||||
@IgnoreAutoMapperAndDao
|
|
||||||
public class InspectTaskDetail implements Serializable {
|
|
||||||
|
|
||||||
public final static String thisTableName = "InspectTaskDetail";
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主键
|
|
||||||
*/
|
|
||||||
@TableId(value="id", type= IdType.AUTO)
|
|
||||||
@Schema(description="主键")
|
|
||||||
@NotNull(message = "主键不能为空",groups = {Update.class})
|
|
||||||
@JsonSerialize(using = ToStringSerializer.class)
|
|
||||||
private Long id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 任务id
|
|
||||||
*/
|
|
||||||
@TableField(value="task_id")
|
|
||||||
@Schema(description="任务id")
|
|
||||||
@JsonSerialize(using = ToStringSerializer.class)
|
|
||||||
private Long taskId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 巡查点id
|
|
||||||
*/
|
|
||||||
@TableField(value="point_id")
|
|
||||||
@Schema(description="巡查点id")
|
|
||||||
@JsonSerialize(using = ToStringSerializer.class)
|
|
||||||
private Long pointId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 巡查项id
|
|
||||||
*/
|
|
||||||
@TableField(value="item_id")
|
|
||||||
@Schema(description="巡查项id")
|
|
||||||
@JsonSerialize(using = ToStringSerializer.class)
|
|
||||||
private Long itemId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 是否正常(0否 1是)
|
|
||||||
*/
|
|
||||||
@TableField(value="is_normal")
|
|
||||||
@Schema(description="是否正常(0否 1是)")
|
|
||||||
private Integer isNormal;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 巡查问题描述
|
|
||||||
*/
|
|
||||||
@TableField(value="problem_desc")
|
|
||||||
@Schema(description="巡查问题描述")
|
|
||||||
@Size(max = 500,message = "巡查问题描述最大长度要小于 500")
|
|
||||||
private String problemDesc;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 是否处理(0否 1是)
|
|
||||||
*/
|
|
||||||
@TableField(value="is_handle")
|
|
||||||
@Schema(description="是否处理(0否 1是)")
|
|
||||||
private Integer isHandle;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 处理人id
|
|
||||||
*/
|
|
||||||
@TableField(value="handle_user_id")
|
|
||||||
@Schema(description="处理人id")
|
|
||||||
@JsonSerialize(using = ToStringSerializer.class)
|
|
||||||
private Long handleUserId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 处理人
|
|
||||||
*/
|
|
||||||
@TableField(value="handle_user_name")
|
|
||||||
@Schema(description="处理人")
|
|
||||||
@Size(max = 100,message = "处理人最大长度要小于 100")
|
|
||||||
private String handleUserName;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 处理描述
|
|
||||||
*/
|
|
||||||
@TableField(value="handle_desc")
|
|
||||||
@Schema(description="处理描述")
|
|
||||||
@Size(max = 500,message = "处理描述最大长度要小于 500")
|
|
||||||
private String handleDesc;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 处理时间
|
|
||||||
*/
|
|
||||||
@TableField(value="handle_time")
|
|
||||||
@Schema(description="处理时间")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date handleTime;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,211 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 白蚁设备表实体类
|
|
||||||
* 数据源为WaterDevice
|
|
||||||
* 与r表通过device_id关联
|
|
||||||
* @see com.gunshi.project.hsz.datasync.entity.jcsk.WaterDevice
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@TableName("jcsk_by_b")
|
|
||||||
@IgnoreAutoMapperAndDao
|
|
||||||
public class JcskByB {
|
|
||||||
/**
|
|
||||||
* 主键
|
|
||||||
*/
|
|
||||||
@TableField("id")
|
|
||||||
private Integer id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设备名称
|
|
||||||
*/
|
|
||||||
@TableField("name")
|
|
||||||
private String name;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设备编码
|
|
||||||
*/
|
|
||||||
@TableField("code")
|
|
||||||
private String code;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 站点接入编码
|
|
||||||
*/
|
|
||||||
@TableField("mn_no")
|
|
||||||
private String mnNo;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 厂家id
|
|
||||||
*/
|
|
||||||
@TableField("factory_id")
|
|
||||||
private Integer factoryId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 服务站点id
|
|
||||||
*/
|
|
||||||
@TableField("station_id")
|
|
||||||
private Integer stationId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 服务站点名称
|
|
||||||
*/
|
|
||||||
@TableField("station_name")
|
|
||||||
private String stationName;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建时间
|
|
||||||
*/
|
|
||||||
@TableField("created_at")
|
|
||||||
private Integer createdAt;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建人id
|
|
||||||
*/
|
|
||||||
@TableField("created_user")
|
|
||||||
private Integer createdUser;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改时间
|
|
||||||
*/
|
|
||||||
@TableField("updated_at")
|
|
||||||
private Integer updatedAt;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改人id
|
|
||||||
*/
|
|
||||||
@TableField("updated_user")
|
|
||||||
private Integer updatedUser;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 状态
|
|
||||||
*/
|
|
||||||
@TableField("status")
|
|
||||||
private Integer status;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 纬度
|
|
||||||
*/
|
|
||||||
@TableField("lat")
|
|
||||||
private BigDecimal lat;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 经度
|
|
||||||
*/
|
|
||||||
@TableField("lon")
|
|
||||||
private BigDecimal lon;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 省份id
|
|
||||||
*/
|
|
||||||
@TableField("province_id")
|
|
||||||
private Long provinceId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 省份名称
|
|
||||||
*/
|
|
||||||
@TableField("province_name")
|
|
||||||
private String provinceName;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 城市id
|
|
||||||
*/
|
|
||||||
@TableField("city_id")
|
|
||||||
private Long cityId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 城市名称
|
|
||||||
*/
|
|
||||||
@TableField("city_name")
|
|
||||||
private String cityName;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 区域名称
|
|
||||||
*/
|
|
||||||
@TableField("area_name")
|
|
||||||
private String areaName;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 区域id
|
|
||||||
*/
|
|
||||||
@TableField("area_id")
|
|
||||||
private Long areaId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设备类型
|
|
||||||
*/
|
|
||||||
@TableField("type")
|
|
||||||
private Integer type;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设备类型详情
|
|
||||||
*/
|
|
||||||
@TableField("send_type")
|
|
||||||
private String sendType;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 联系人
|
|
||||||
*/
|
|
||||||
@TableField("contact")
|
|
||||||
private String contact;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 联系电话
|
|
||||||
*/
|
|
||||||
@TableField("telephone")
|
|
||||||
private String telephone;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 流域
|
|
||||||
*/
|
|
||||||
@TableField("river")
|
|
||||||
private String river;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 安装地点
|
|
||||||
*/
|
|
||||||
@TableField("address")
|
|
||||||
private String address;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 产品型号
|
|
||||||
*/
|
|
||||||
@TableField("model")
|
|
||||||
private String model;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 备注
|
|
||||||
*/
|
|
||||||
@TableField("remark")
|
|
||||||
private String remark;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通信方式
|
|
||||||
*/
|
|
||||||
@TableField("communication_type")
|
|
||||||
private Integer communicationType;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设备图片
|
|
||||||
*/
|
|
||||||
@TableField("image_url")
|
|
||||||
private String imageUrl;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设备视频流地址的ip
|
|
||||||
*/
|
|
||||||
@TableField("video_ip")
|
|
||||||
private String videoIp;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设备视频id
|
|
||||||
*/
|
|
||||||
@TableField("video_id")
|
|
||||||
private String videoId;
|
|
||||||
}
|
|
||||||
|
|
@ -1,73 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设备站点关联表实体类
|
|
||||||
* 对应表:jcsk_by_b_d
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@TableName("public.jcsk_by_b_d")
|
|
||||||
@IgnoreAutoMapperAndDao
|
|
||||||
public class JcskByBD {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 机箱
|
|
||||||
*/
|
|
||||||
@TableField(value="device_id")
|
|
||||||
@Schema(description="设备编号")
|
|
||||||
private Integer deviceId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 站点编号
|
|
||||||
*/
|
|
||||||
@TableField(value = "\"order\"")
|
|
||||||
@Schema(description = "测点编号")
|
|
||||||
private String order;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 联网方式
|
|
||||||
*/
|
|
||||||
@TableField(value = "inte_type")
|
|
||||||
@Schema(description = "联网方式")
|
|
||||||
private String inteType;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 安装位置
|
|
||||||
*/
|
|
||||||
@TableField(value = "fix_place")
|
|
||||||
@Schema(description = "安装位置")
|
|
||||||
private String fixPlace;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 经度
|
|
||||||
*/
|
|
||||||
@TableField(value = "lgtd")
|
|
||||||
@Schema(description = "经度")
|
|
||||||
private BigDecimal lgtd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 备注
|
|
||||||
*/
|
|
||||||
@TableField(value = "remark")
|
|
||||||
@Schema(description = "备注")
|
|
||||||
private String remark;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 纬度
|
|
||||||
*/
|
|
||||||
@TableField(value = "lttd")
|
|
||||||
@Schema(description = "纬度")
|
|
||||||
private BigDecimal lttd;
|
|
||||||
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
@Schema(description = "有无白蚁 1为有 0为无")
|
|
||||||
private Integer status;
|
|
||||||
}
|
|
||||||
|
|
@ -1,127 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
|
||||||
import com.gunshi.project.hsz.common.model.vo.JcskByRProcessVo;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 白蚁数据表实体类
|
|
||||||
* 数据源为WaterDataTermites
|
|
||||||
* nmNo = JcskByB.
|
|
||||||
* @see com.gunshi.project.hsz.datasync.entity.jcsk.WaterDataTermites
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@TableName("jcsk_by_r")
|
|
||||||
@IgnoreAutoMapperAndDao
|
|
||||||
public class JcskByR {
|
|
||||||
/**
|
|
||||||
* 设备编码
|
|
||||||
*/
|
|
||||||
@TableField("mn_no")
|
|
||||||
private String mnNo;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 白蚁蚁情状态,有白蚁入侵为1
|
|
||||||
*/
|
|
||||||
@TableField("status")
|
|
||||||
private Integer status;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 白蚁设备电量
|
|
||||||
*/
|
|
||||||
@TableField("electricity")
|
|
||||||
private Integer electricity;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 白蚁设备安装的点位顺序
|
|
||||||
*/
|
|
||||||
@TableField("\"order\"")
|
|
||||||
private String order;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建时间
|
|
||||||
*/
|
|
||||||
@TableField("created_at")
|
|
||||||
private LocalDateTime createdAt;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 观测时间
|
|
||||||
*/
|
|
||||||
@TableField("ob_time")
|
|
||||||
private String obTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 观测时间2
|
|
||||||
*/
|
|
||||||
@TableField("ob_date")
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
private LocalDateTime obDate;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主键id
|
|
||||||
*/
|
|
||||||
@TableField("id")
|
|
||||||
private Integer id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 水库id
|
|
||||||
*/
|
|
||||||
@TableField("station_id")
|
|
||||||
private Integer stationId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 站点名称
|
|
||||||
*/
|
|
||||||
@TableField("station_name")
|
|
||||||
private String stationName;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设备id
|
|
||||||
*/
|
|
||||||
@TableField("device_id")
|
|
||||||
private Integer deviceId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设备名称
|
|
||||||
*/
|
|
||||||
@TableField("device_name")
|
|
||||||
private String deviceName;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 任务状态
|
|
||||||
*/
|
|
||||||
@TableField("task_status")
|
|
||||||
private String taskStatus;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 任务id
|
|
||||||
*/
|
|
||||||
@TableField("task_id")
|
|
||||||
private String taskId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 接收类型
|
|
||||||
*/
|
|
||||||
@TableField("receive_type")
|
|
||||||
private Short receiveType;
|
|
||||||
|
|
||||||
|
|
||||||
@Schema(description = "是否处理")
|
|
||||||
@TableField(exist = false)
|
|
||||||
private Boolean isProcess = false;
|
|
||||||
|
|
||||||
@Schema(description = "是否有巡检任务")
|
|
||||||
@TableField(exist = false)
|
|
||||||
private Boolean hasInspectTask = false;
|
|
||||||
|
|
||||||
|
|
||||||
@Schema(description = "工单详情")
|
|
||||||
@TableField(exist = false)
|
|
||||||
private JcskByRProcessVo jcskByRProcessVo;
|
|
||||||
}
|
|
||||||
|
|
@ -1,69 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 位移设备表
|
|
||||||
* 数据源为AttWyCdBase
|
|
||||||
* 与r表通过rscd加cd关联
|
|
||||||
* @see com.gunshi.project.hsz.datasync.entity.jcsk.AttWyCdBase
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@TableName("jcsk_gnss_b")
|
|
||||||
@IgnoreAutoMapperAndDao
|
|
||||||
public class JcskGnssB {
|
|
||||||
/**
|
|
||||||
* 测点编码
|
|
||||||
*/
|
|
||||||
@TableField("cd")
|
|
||||||
private String cd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测点名称
|
|
||||||
*/
|
|
||||||
@TableField("cd_nm")
|
|
||||||
private String cdNm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 桩号
|
|
||||||
*/
|
|
||||||
@TableField("ch")
|
|
||||||
private String ch;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测点类型(sl/wy/sy)
|
|
||||||
*/
|
|
||||||
@TableField("cd_type")
|
|
||||||
private String cdType;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 水库编码
|
|
||||||
*/
|
|
||||||
@TableField("res_cd")
|
|
||||||
private String resCd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设备状态
|
|
||||||
*/
|
|
||||||
@TableField("device_status")
|
|
||||||
private String deviceStatus;
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private String stationCode;
|
|
||||||
|
|
||||||
@Schema(description = "0 离线 1 在线")
|
|
||||||
@TableField(exist = false)
|
|
||||||
private Integer status;
|
|
||||||
|
|
||||||
@TableField("lttd")
|
|
||||||
private BigDecimal lttd;
|
|
||||||
|
|
||||||
@TableField("lgtd")
|
|
||||||
private BigDecimal lgtd;
|
|
||||||
}
|
|
||||||
|
|
@ -1,95 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 位移数据表
|
|
||||||
* 数据源为AttMqttCalcData
|
|
||||||
* @see com.gunshi.project.hsz.datasync.entity.jcsk.AttMqttCalcData
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@TableName("jcsk_gnss_r")
|
|
||||||
@IgnoreAutoMapperAndDao
|
|
||||||
public class JcskGnssR {
|
|
||||||
/**
|
|
||||||
* 水库编码设备编码
|
|
||||||
*/
|
|
||||||
@TableField("res_cd")
|
|
||||||
private String resCd;
|
|
||||||
|
|
||||||
|
|
||||||
@TableField("is_artificial")
|
|
||||||
private Integer isArtificial;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测点编码
|
|
||||||
*/
|
|
||||||
@TableField("cd")
|
|
||||||
private String cd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* e方向变形值,单位(mm)
|
|
||||||
*/
|
|
||||||
@TableField("de")
|
|
||||||
private BigDecimal de;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* n方向变形值,单位(mm)
|
|
||||||
*/
|
|
||||||
@TableField("dn")
|
|
||||||
private BigDecimal dn;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* u方向变形值,单位(mm)
|
|
||||||
*/
|
|
||||||
@TableField("du")
|
|
||||||
private BigDecimal du;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 站点高程
|
|
||||||
*/
|
|
||||||
@TableField("alt")
|
|
||||||
private BigDecimal alt;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 监测时间
|
|
||||||
*/
|
|
||||||
@TableField("tm")
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
private LocalDateTime tm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 更新时间
|
|
||||||
*/
|
|
||||||
@TableField("update_tm")
|
|
||||||
private LocalDateTime updateTm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 人工录入时间,用于执行更新时用
|
|
||||||
*/
|
|
||||||
@TableField(exist = false)
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
private LocalDateTime newUpdateTm;
|
|
||||||
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private String ch;
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private String cdnm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 人工录入cd,用于执行更新时用
|
|
||||||
*/
|
|
||||||
@TableField(exist = false)
|
|
||||||
private String newUpdateCd;
|
|
||||||
}
|
|
||||||
|
|
@ -1,116 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.time.LocalDate;
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 渗流测点表实体类
|
|
||||||
* 数据源为DsmSpgSpqnmp
|
|
||||||
* 与r表通过rscd,stcd,mpcd关联
|
|
||||||
* @see com.gunshi.project.hsz.datasync.entity.jcsk.DsmSpgSpqnmp
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@TableName("jcsk_sl_b")
|
|
||||||
@IgnoreAutoMapperAndDao
|
|
||||||
public class JcskSlB {
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 水库代码
|
|
||||||
*/
|
|
||||||
@TableField("rscd")
|
|
||||||
private String rscd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 水工建筑物编号
|
|
||||||
*/
|
|
||||||
@TableField("hycncd")
|
|
||||||
private String hycncd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测点编号
|
|
||||||
*/
|
|
||||||
@TableField("mpcd")
|
|
||||||
private String mpcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* rtu编号
|
|
||||||
*/
|
|
||||||
@TableField("stcd")
|
|
||||||
private String stcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 桩号
|
|
||||||
*/
|
|
||||||
@TableField("ch")
|
|
||||||
private String ch;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 轴距,单位m
|
|
||||||
*/
|
|
||||||
@TableField("ofax")
|
|
||||||
private BigDecimal ofax;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 高程,单位m
|
|
||||||
*/
|
|
||||||
@TableField("el")
|
|
||||||
private BigDecimal el;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 安装日期
|
|
||||||
*/
|
|
||||||
@TableField("indt")
|
|
||||||
private LocalDate indt;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 仪器编号
|
|
||||||
*/
|
|
||||||
@TableField("dvcd")
|
|
||||||
private String dvcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 经度
|
|
||||||
*/
|
|
||||||
@TableField("lgtd")
|
|
||||||
private BigDecimal lgtd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 纬度
|
|
||||||
*/
|
|
||||||
@TableField("lttd")
|
|
||||||
private BigDecimal lttd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 备注
|
|
||||||
*/
|
|
||||||
@TableField("rm")
|
|
||||||
private String rm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 资料更新时间
|
|
||||||
*/
|
|
||||||
@TableField("dtuptm")
|
|
||||||
private LocalDateTime dtuptm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 断面
|
|
||||||
*/
|
|
||||||
@TableField("dm")
|
|
||||||
private String dm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 是否填报
|
|
||||||
*/
|
|
||||||
@TableField("is_tb")
|
|
||||||
private String isTb;
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private String stationCode;
|
|
||||||
}
|
|
||||||
|
|
@ -1,70 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 渗流数据表实体类
|
|
||||||
* 数据源为DsmSpgSpqnNormal
|
|
||||||
* @see com.gunshi.project.hsz.datasync.entity.jcsk.DsmSpgSpqn
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@TableName("jcsk_sl_r")
|
|
||||||
@IgnoreAutoMapperAndDao
|
|
||||||
public class JcskSlR {
|
|
||||||
/**
|
|
||||||
* 水库代码
|
|
||||||
*/
|
|
||||||
@TableField("rscd")
|
|
||||||
private String rscd;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 水工建筑物编号
|
|
||||||
*/
|
|
||||||
@TableField("hycncd")
|
|
||||||
private String hycncd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测点编号
|
|
||||||
*/
|
|
||||||
@TableField("mpcd")
|
|
||||||
private String mpcd;
|
|
||||||
|
|
||||||
@TableField("stcd")
|
|
||||||
private String stcd;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测量时间
|
|
||||||
*/
|
|
||||||
@TableField("mstm")
|
|
||||||
private LocalDateTime mstm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 温度,单位℃
|
|
||||||
*/
|
|
||||||
@TableField("tm")
|
|
||||||
private BigDecimal tm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 渗流量,单位l/s
|
|
||||||
*/
|
|
||||||
@TableField("spqn")
|
|
||||||
private BigDecimal spqn;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 标准水温渗流量,单位l/s
|
|
||||||
*/
|
|
||||||
@TableField("stspqn")
|
|
||||||
private BigDecimal stspqn;
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private String dvcd;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,139 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.time.LocalDate;
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 渗压测点表
|
|
||||||
* 数据源为DsmSpgSpprmp
|
|
||||||
* 与r表通过rscd,stcd,mpcd关联
|
|
||||||
* @see com.gunshi.project.hsz.datasync.entity.jcsk.DsmSpgSpprmp
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@TableName("jcsk_sy_b")
|
|
||||||
@IgnoreAutoMapperAndDao
|
|
||||||
public class JcskSyB {
|
|
||||||
/**
|
|
||||||
* 水库代码
|
|
||||||
*/
|
|
||||||
@TableField("rscd")
|
|
||||||
private String rscd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* rtu编码
|
|
||||||
*/
|
|
||||||
@TableField("stcd")
|
|
||||||
private String stcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 水工建筑物编号
|
|
||||||
*/
|
|
||||||
@TableField("hycncd")
|
|
||||||
private String hycncd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测点编号
|
|
||||||
*/
|
|
||||||
@TableField("mpcd")
|
|
||||||
private String mpcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 桩号
|
|
||||||
*/
|
|
||||||
@TableField("ch")
|
|
||||||
private String ch;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 轴距,单位m
|
|
||||||
*/
|
|
||||||
@TableField("ofax")
|
|
||||||
private BigDecimal ofax;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 高程,单位m
|
|
||||||
*/
|
|
||||||
@TableField("el")
|
|
||||||
private BigDecimal el;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 监测类型
|
|
||||||
*/
|
|
||||||
@TableField("msps")
|
|
||||||
private String msps;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 透水段底高程,单位m
|
|
||||||
*/
|
|
||||||
@TableField("pmbtel")
|
|
||||||
private BigDecimal pmbtel;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 透水段顶高程,单位m
|
|
||||||
*/
|
|
||||||
@TableField("pmtpel")
|
|
||||||
private BigDecimal pmtpel;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 坝面高程
|
|
||||||
*/
|
|
||||||
@TableField("dsel")
|
|
||||||
private BigDecimal dsel;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 安装日期
|
|
||||||
*/
|
|
||||||
@TableField("indt")
|
|
||||||
private LocalDate indt;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 仪器编号
|
|
||||||
*/
|
|
||||||
@TableField("dvcd")
|
|
||||||
private String dvcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 经度
|
|
||||||
*/
|
|
||||||
@TableField("lgtd")
|
|
||||||
private BigDecimal lgtd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 纬度
|
|
||||||
*/
|
|
||||||
@TableField("lttd")
|
|
||||||
private BigDecimal lttd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 备注
|
|
||||||
*/
|
|
||||||
@TableField("rm")
|
|
||||||
private String rm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 资料更新时间
|
|
||||||
*/
|
|
||||||
@TableField("dtuptm")
|
|
||||||
private LocalDateTime dtuptm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 断面
|
|
||||||
*/
|
|
||||||
@TableField("dm")
|
|
||||||
private String dm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 是否填报
|
|
||||||
*/
|
|
||||||
@TableField("is_tb")
|
|
||||||
private String isTb;
|
|
||||||
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private String stationCode;
|
|
||||||
}
|
|
||||||
|
|
@ -1,100 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 渗压数据表实体类
|
|
||||||
* 数据源为DsmSpgSpprNormal
|
|
||||||
* @see com.gunshi.project.hsz.datasync.entity.jcsk.DsmSpgSppr
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@TableName("jcsk_sy_r")
|
|
||||||
@IgnoreAutoMapperAndDao
|
|
||||||
public class JcskSyR {
|
|
||||||
/**
|
|
||||||
* 水库代码
|
|
||||||
*/
|
|
||||||
@TableField("rscd")
|
|
||||||
private String rscd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* rtu编码
|
|
||||||
*/
|
|
||||||
@TableField("stcd")
|
|
||||||
private String stcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 水工建筑物编号
|
|
||||||
*/
|
|
||||||
@TableField("hycncd")
|
|
||||||
private String hycncd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测点编号
|
|
||||||
*/
|
|
||||||
@TableField("mpcd")
|
|
||||||
private String mpcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测量时间
|
|
||||||
*/
|
|
||||||
@TableField("mstm")
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
private LocalDateTime mstm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 温度
|
|
||||||
*/
|
|
||||||
@TableField("tm")
|
|
||||||
private BigDecimal tm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用于记录人工录入数据时的新时间
|
|
||||||
*/
|
|
||||||
@TableField(exist = false)
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
private Date updateMstm;
|
|
||||||
|
|
||||||
|
|
||||||
@TableField("is_artificial")
|
|
||||||
@Schema(description = "是否为人工录入 0不是 1是")
|
|
||||||
private Integer isArtificial;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 渗流压力水位,单位m
|
|
||||||
*/
|
|
||||||
@TableField("spprwl")
|
|
||||||
private BigDecimal spprwl;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 更新时间
|
|
||||||
*/
|
|
||||||
@TableField("update_tm")
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
private LocalDateTime updateTm;
|
|
||||||
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
@Schema(description = "断面编码")
|
|
||||||
private String dm;
|
|
||||||
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
@Schema(description = "断面名称")
|
|
||||||
private String dmName;
|
|
||||||
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
@Schema(description = "测点编号")
|
|
||||||
private String dvcd;
|
|
||||||
}
|
|
||||||
|
|
@ -1,67 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author lyf
|
|
||||||
* @since 2025-10-16
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@TableName("st_flow_r")
|
|
||||||
@IgnoreAutoMapperAndDao
|
|
||||||
public class StFlowR {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主键id
|
|
||||||
*/
|
|
||||||
@TableId(value = "id", type = IdType.NONE)
|
|
||||||
private Integer id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测站编码
|
|
||||||
*/
|
|
||||||
@TableField("stcd")
|
|
||||||
private String stcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 观测时间
|
|
||||||
*/
|
|
||||||
@TableField("tm")
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
private LocalDateTime tm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 入库流量,单位m³/s
|
|
||||||
*/
|
|
||||||
@TableField("inq")
|
|
||||||
private BigDecimal inq;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 瞬时流量,单位m³/s
|
|
||||||
*/
|
|
||||||
@TableField("q")
|
|
||||||
private BigDecimal q;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 出库流量,单位m³/s
|
|
||||||
*/
|
|
||||||
@TableField("otq")
|
|
||||||
private BigDecimal otq;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建时间
|
|
||||||
*/
|
|
||||||
@TableField("crtime")
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
private LocalDateTime crtime;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,113 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model;
|
|
||||||
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
||||||
import com.gunshi.core.dateformat.DateFormatString;
|
|
||||||
|
|
||||||
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import jakarta.validation.constraints.NotBlank;
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
|
||||||
import jakarta.validation.constraints.Size;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 描述: 降水量表
|
|
||||||
* author: xusan
|
|
||||||
* date: 2024-07-08 17:34:26
|
|
||||||
*/
|
|
||||||
@Schema(description="降水量表")
|
|
||||||
@Data
|
|
||||||
@TableName("public.st_pptn_r")
|
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
|
||||||
@IgnoreAutoMapperAndDao
|
|
||||||
public class StPptnR implements Serializable {
|
|
||||||
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测站编码
|
|
||||||
*/
|
|
||||||
@TableId(value="stcd", type= IdType.AUTO)
|
|
||||||
@Schema(description="测站编码")
|
|
||||||
@Size(max = 20,message = "测站编码最大长度要小于 20")
|
|
||||||
@NotBlank(message = "测站编码不能为空")
|
|
||||||
private String stcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 时段降水量
|
|
||||||
*/
|
|
||||||
@TableField(value="drp")
|
|
||||||
@Schema(description="时段降水量")
|
|
||||||
private String drp;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 时间
|
|
||||||
*/
|
|
||||||
@TableField(value="tm")
|
|
||||||
@Schema(description="时间")
|
|
||||||
@NotNull(message = "时间不能为空")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date tm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 时段长
|
|
||||||
*/
|
|
||||||
@TableField(value="intv")
|
|
||||||
@Schema(description="时段长")
|
|
||||||
private String intv;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 降水历时
|
|
||||||
*/
|
|
||||||
@TableField(value="pdr")
|
|
||||||
@Schema(description="降水历时")
|
|
||||||
private String pdr;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 日降水量
|
|
||||||
*/
|
|
||||||
@TableField(value="dyp")
|
|
||||||
@Schema(description="日降水量")
|
|
||||||
private String dyp;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 天气状况
|
|
||||||
*/
|
|
||||||
@TableField(value="wth")
|
|
||||||
@Schema(description="天气状况")
|
|
||||||
@Size(max = 1,message = "天气状况最大长度要小于 1")
|
|
||||||
private String wth;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* chtm
|
|
||||||
*/
|
|
||||||
@TableField(value="chtm")
|
|
||||||
@Schema(description="chtm")
|
|
||||||
// @Size(max = 0,message = "chtm最大长度要小于 0")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date chtm;
|
|
||||||
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private Date stm;// 同步的数据的开始时间
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private Date etm;// 同步的数据的结束时间
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private String source;// 测站数据源
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private String sttp;// 测站类型
|
|
||||||
}
|
|
||||||
|
|
@ -1,172 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model;
|
|
||||||
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
||||||
import com.gunshi.core.dateformat.DateFormatString;
|
|
||||||
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import jakarta.validation.constraints.NotBlank;
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
|
||||||
import jakarta.validation.constraints.Size;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 描述: 降水量历史表
|
|
||||||
* author: xusan
|
|
||||||
* date: 2024-07-08 17:34:26
|
|
||||||
*/
|
|
||||||
@Schema(description="降水量历史表")
|
|
||||||
@Data
|
|
||||||
@TableName("public.st_pptn_r_real")
|
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
|
||||||
@IgnoreAutoMapperAndDao
|
|
||||||
public class StPptnRReal implements Serializable {
|
|
||||||
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* stcd
|
|
||||||
*/
|
|
||||||
@TableId(value="stcd", type= IdType.AUTO)
|
|
||||||
@Schema(description="stcd")
|
|
||||||
@Size(max = 20,message = "stcd最大长度要小于 20")
|
|
||||||
@NotBlank(message = "stcd不能为空")
|
|
||||||
private String stcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* tm
|
|
||||||
*/
|
|
||||||
@TableField(value="tm")
|
|
||||||
@Schema(description="tm")
|
|
||||||
// @Size(max = 0,message = "tm最大长度要小于 0")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date tm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* drp
|
|
||||||
*/
|
|
||||||
@TableField(value="drp")
|
|
||||||
@Schema(description="drp")
|
|
||||||
// @Size(max = 0,message = "drp最大长度要小于 0")
|
|
||||||
private BigDecimal drp;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* today
|
|
||||||
*/
|
|
||||||
@TableField(value="today")
|
|
||||||
@Schema(description="today")
|
|
||||||
// @Size(max = 0,message = "today最大长度要小于 0")
|
|
||||||
private BigDecimal today;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* m10
|
|
||||||
*/
|
|
||||||
@TableField(value="m10")
|
|
||||||
@Schema(description="m10")
|
|
||||||
// @Size(max = 0,message = "m10最大长度要小于 0")
|
|
||||||
private BigDecimal m10;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* m30
|
|
||||||
*/
|
|
||||||
@TableField(value="m30")
|
|
||||||
@Schema(description="m30")
|
|
||||||
// @Size(max = 0,message = "m30最大长度要小于 0")
|
|
||||||
private BigDecimal m30;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* h1
|
|
||||||
*/
|
|
||||||
@TableField(value="h1")
|
|
||||||
@Schema(description="h1")
|
|
||||||
// @Size(max = 0,message = "h1最大长度要小于 0")
|
|
||||||
private BigDecimal h1;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* h3
|
|
||||||
*/
|
|
||||||
@TableField(value="h3")
|
|
||||||
@Schema(description="h3")
|
|
||||||
// @Size(max = 0,message = "h3最大长度要小于 0")
|
|
||||||
private BigDecimal h3;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* h6
|
|
||||||
*/
|
|
||||||
@TableField(value="h6")
|
|
||||||
@Schema(description="h6")
|
|
||||||
// @Size(max = 0,message = "h6最大长度要小于 0")
|
|
||||||
private BigDecimal h6;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* h12
|
|
||||||
*/
|
|
||||||
@TableField(value="h12")
|
|
||||||
@Schema(description="h12")
|
|
||||||
// @Size(max = 0,message = "h12最大长度要小于 0")
|
|
||||||
private BigDecimal h12;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* h24
|
|
||||||
*/
|
|
||||||
@TableField(value="h24")
|
|
||||||
@Schema(description="h24")
|
|
||||||
// @Size(max = 0,message = "h24最大长度要小于 0")
|
|
||||||
private BigDecimal h24;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* h48
|
|
||||||
*/
|
|
||||||
@TableField(value="h48")
|
|
||||||
@Schema(description="h48")
|
|
||||||
// @Size(max = 0,message = "h48最大长度要小于 0")
|
|
||||||
private BigDecimal h48;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* chtm
|
|
||||||
*/
|
|
||||||
@TableField(value="chtm")
|
|
||||||
@Schema(description="chtm")
|
|
||||||
// @Size(max = 0,message = "chtm最大长度要小于 0")
|
|
||||||
@NotNull(message = "chtm不能为空")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date chtm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* warning
|
|
||||||
*/
|
|
||||||
@TableField(value="warning")
|
|
||||||
@Schema(description="warning")
|
|
||||||
// @Size(max = 0,message = "warning最大长度要小于 0")
|
|
||||||
private Integer warning;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* status
|
|
||||||
*/
|
|
||||||
@TableField(value="status")
|
|
||||||
@Schema(description="status")
|
|
||||||
// @Size(max = 0,message = "status最大长度要小于 0")
|
|
||||||
private Integer status;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* cluster
|
|
||||||
*/
|
|
||||||
@TableField(value="cluster")
|
|
||||||
@Schema(description="cluster")
|
|
||||||
@Size(max = 10,message = "cluster最大长度要小于 10")
|
|
||||||
private String cluster;
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
@Schema(description = "站点名称")
|
|
||||||
private String stnm;
|
|
||||||
}
|
|
||||||
|
|
@ -1,167 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model;
|
|
||||||
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.gunshi.core.dateformat.DateFormatString;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import jakarta.validation.constraints.NotBlank;
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
|
||||||
import jakarta.validation.constraints.Size;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 描述:
|
|
||||||
* author: cxw
|
|
||||||
* date: 2024-09-24 14:01:07
|
|
||||||
*/
|
|
||||||
@Schema(description="河道水位表")
|
|
||||||
@Data
|
|
||||||
@TableName("public.st_river_r")
|
|
||||||
public class StRiverR implements Serializable {
|
|
||||||
|
|
||||||
public final static String thisTableName = "StRiverR";
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* stcd
|
|
||||||
*/
|
|
||||||
@TableId(value="stcd", type= IdType.AUTO)
|
|
||||||
@Schema(description="stcd")
|
|
||||||
@Size(max = 20,message = "stcd最大长度要小于 20")
|
|
||||||
@NotBlank(message = "stcd不能为空")
|
|
||||||
@NotNull(message = "stcd不能为空")
|
|
||||||
private String stcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* tm
|
|
||||||
*/
|
|
||||||
@TableField(value="tm")
|
|
||||||
@Schema(description="tm")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date tm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* z
|
|
||||||
*/
|
|
||||||
@TableField(value="z")
|
|
||||||
@Schema(description="z")
|
|
||||||
private BigDecimal z;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* q
|
|
||||||
*/
|
|
||||||
@TableField(value="q")
|
|
||||||
@Schema(description="q")
|
|
||||||
private BigDecimal q;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* xsa
|
|
||||||
*/
|
|
||||||
@TableField(value="xsa")
|
|
||||||
@Schema(description="xsa")
|
|
||||||
private BigDecimal xsa;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* xsavv
|
|
||||||
*/
|
|
||||||
@TableField(value="xsavv")
|
|
||||||
@Schema(description="xsavv")
|
|
||||||
private BigDecimal xsavv;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* xsmxv
|
|
||||||
*/
|
|
||||||
@TableField(value="xsmxv")
|
|
||||||
@Schema(description="xsmxv")
|
|
||||||
private BigDecimal xsmxv;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* flwchrcd
|
|
||||||
*/
|
|
||||||
@TableField(value="flwchrcd")
|
|
||||||
@Schema(description="flwchrcd")
|
|
||||||
@Size(max = 4,message = "flwchrcd最大长度要小于 4")
|
|
||||||
private String flwchrcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* wptn
|
|
||||||
*/
|
|
||||||
@TableField(value="wptn")
|
|
||||||
@Schema(description="wptn")
|
|
||||||
@Size(max = 4,message = "wptn最大长度要小于 4")
|
|
||||||
private String wptn;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* msqmt
|
|
||||||
*/
|
|
||||||
@TableField(value="msqmt")
|
|
||||||
@Schema(description="msqmt")
|
|
||||||
@Size(max = 4,message = "msqmt最大长度要小于 4")
|
|
||||||
private String msqmt;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* msamt
|
|
||||||
*/
|
|
||||||
@TableField(value="msamt")
|
|
||||||
@Schema(description="msamt")
|
|
||||||
@Size(max = 4,message = "msamt最大长度要小于 4")
|
|
||||||
private String msamt;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* msvmt
|
|
||||||
*/
|
|
||||||
@TableField(value="msvmt")
|
|
||||||
@Schema(description="msvmt")
|
|
||||||
@Size(max = 4,message = "msvmt最大长度要小于 4")
|
|
||||||
private String msvmt;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* chtm
|
|
||||||
*/
|
|
||||||
@TableField(value="chtm")
|
|
||||||
@Schema(description="chtm")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date chtm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* sendtm
|
|
||||||
*/
|
|
||||||
@TableField(value="sendtm")
|
|
||||||
@Schema(description="sendtm")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date sendtm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* receivetm
|
|
||||||
*/
|
|
||||||
@TableField(value="receivetm")
|
|
||||||
@Schema(description="receivetm")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date receivetm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* source_int
|
|
||||||
*/
|
|
||||||
@TableField(value="source_int")
|
|
||||||
@Schema(description="source_int")
|
|
||||||
private Integer sourceInt;
|
|
||||||
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private String stnm;
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private BigDecimal lgtd;
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private BigDecimal lttd;
|
|
||||||
}
|
|
||||||
|
|
@ -1,167 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model;
|
|
||||||
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.gunshi.core.dateformat.DateFormatString;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import jakarta.validation.constraints.NotBlank;
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
|
||||||
import jakarta.validation.constraints.Size;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 描述:
|
|
||||||
* author: cxw
|
|
||||||
* date: 2024-09-24 14:01:07
|
|
||||||
*/
|
|
||||||
@Schema(description="")
|
|
||||||
@Data
|
|
||||||
@TableName("public.st_river_r_real")
|
|
||||||
public class StRiverRReal implements Serializable {
|
|
||||||
|
|
||||||
public final static String thisTableName = "StRiverRReal";
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* stcd
|
|
||||||
*/
|
|
||||||
@TableId(value="stcd", type= IdType.AUTO)
|
|
||||||
@Schema(description="stcd")
|
|
||||||
@Size(max = 20,message = "stcd最大长度要小于 20")
|
|
||||||
@NotBlank(message = "stcd不能为空")
|
|
||||||
@NotNull(message = "stcd不能为空")
|
|
||||||
private String stcd;
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private String stnm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* tm
|
|
||||||
*/
|
|
||||||
@TableField(value="tm")
|
|
||||||
@Schema(description="tm")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date tm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* z
|
|
||||||
*/
|
|
||||||
@TableField(value="z")
|
|
||||||
@Schema(description="z")
|
|
||||||
private BigDecimal z;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* q
|
|
||||||
*/
|
|
||||||
@TableField(value="q")
|
|
||||||
@Schema(description="q")
|
|
||||||
private BigDecimal q;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* xsa
|
|
||||||
*/
|
|
||||||
@TableField(value="xsa")
|
|
||||||
@Schema(description="xsa")
|
|
||||||
private BigDecimal xsa;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* xsavv
|
|
||||||
*/
|
|
||||||
@TableField(value="xsavv")
|
|
||||||
@Schema(description="xsavv")
|
|
||||||
private BigDecimal xsavv;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* xsmxv
|
|
||||||
*/
|
|
||||||
@TableField(value="xsmxv")
|
|
||||||
@Schema(description="xsmxv")
|
|
||||||
private BigDecimal xsmxv;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* flwchrcdf
|
|
||||||
*/
|
|
||||||
@TableField(value="flwchrcdf")
|
|
||||||
@Schema(description="flwchrcdf")
|
|
||||||
@Size(max = 1,message = "flwchrcdf最大长度要小于 1")
|
|
||||||
private String flwchrcdf;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* wptn
|
|
||||||
*/
|
|
||||||
@TableField(value="wptn")
|
|
||||||
@Schema(description="wptn")
|
|
||||||
@Size(max = 1,message = "wptn最大长度要小于 1")
|
|
||||||
private String wptn;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* maxz
|
|
||||||
*/
|
|
||||||
@TableField(value="maxz")
|
|
||||||
@Schema(description="maxz")
|
|
||||||
private BigDecimal maxz;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* maxtm
|
|
||||||
*/
|
|
||||||
@TableField(value="maxtm")
|
|
||||||
@Schema(description="maxtm")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date maxtm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* msqmt
|
|
||||||
*/
|
|
||||||
@TableField(value="msqmt")
|
|
||||||
@Schema(description="msqmt")
|
|
||||||
@Size(max = 1,message = "msqmt最大长度要小于 1")
|
|
||||||
private String msqmt;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* msamt
|
|
||||||
*/
|
|
||||||
@TableField(value="msamt")
|
|
||||||
@Schema(description="msamt")
|
|
||||||
@Size(max = 1,message = "msamt最大长度要小于 1")
|
|
||||||
private String msamt;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* msvmt
|
|
||||||
*/
|
|
||||||
@TableField(value="msvmt")
|
|
||||||
@Schema(description="msvmt")
|
|
||||||
@Size(max = 1,message = "msvmt最大长度要小于 1")
|
|
||||||
private String msvmt;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* chtm
|
|
||||||
*/
|
|
||||||
@TableField(value="chtm")
|
|
||||||
@Schema(description="chtm")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date chtm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* warning
|
|
||||||
*/
|
|
||||||
@TableField(value="warning")
|
|
||||||
@Schema(description="warning")
|
|
||||||
private Integer warning;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* status
|
|
||||||
*/
|
|
||||||
@TableField(value="status")
|
|
||||||
@Schema(description="status")
|
|
||||||
private Integer status;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,170 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model;
|
|
||||||
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
||||||
import com.gunshi.core.dateformat.DateFormatString;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import jakarta.validation.constraints.NotBlank;
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
|
||||||
import jakarta.validation.constraints.Size;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 描述: 水库历史水位表
|
|
||||||
* author: xusan
|
|
||||||
* date: 2024-07-08 17:34:26
|
|
||||||
*/
|
|
||||||
@Schema(description="水库历史水位表")
|
|
||||||
@Data
|
|
||||||
@TableName("public.st_rsvr_r")
|
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
|
||||||
public class StRsvrR implements Serializable {
|
|
||||||
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* stcd
|
|
||||||
*/
|
|
||||||
@TableId(value="stcd", type= IdType.AUTO)
|
|
||||||
@Schema(description="stcd")
|
|
||||||
@Size(max = 20,message = "stcd最大长度要小于 20")
|
|
||||||
@NotBlank(message = "stcd不能为空")
|
|
||||||
private String stcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* tm
|
|
||||||
*/
|
|
||||||
@TableField(value="tm")
|
|
||||||
@Schema(description="tm")
|
|
||||||
@NotNull(message = "tm不能为空")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date tm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* rz
|
|
||||||
*/
|
|
||||||
@TableField(value="rz")
|
|
||||||
@Schema(description="rz")
|
|
||||||
private String rz;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* inq
|
|
||||||
*/
|
|
||||||
@TableField(value="inq")
|
|
||||||
@Schema(description="inq")
|
|
||||||
private String inq;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* w
|
|
||||||
*/
|
|
||||||
@TableField(value="w")
|
|
||||||
@Schema(description="w")
|
|
||||||
private String w;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* blrz
|
|
||||||
*/
|
|
||||||
@TableField(value="blrz")
|
|
||||||
@Schema(description="blrz")
|
|
||||||
private String blrz;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* otq
|
|
||||||
*/
|
|
||||||
@TableField(value="otq")
|
|
||||||
@Schema(description="otq")
|
|
||||||
private String otq;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* rwchrcd
|
|
||||||
*/
|
|
||||||
@TableField(value="rwchrcd")
|
|
||||||
@Schema(description="rwchrcd")
|
|
||||||
@Size(max = 4,message = "rwchrcd最大长度要小于 4")
|
|
||||||
private String rwchrcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* rwptn
|
|
||||||
*/
|
|
||||||
@TableField(value="rwptn")
|
|
||||||
@Schema(description="rwptn")
|
|
||||||
@Size(max = 4,message = "rwptn最大长度要小于 4")
|
|
||||||
private String rwptn;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* inqdr
|
|
||||||
*/
|
|
||||||
@TableField(value="inqdr")
|
|
||||||
@Schema(description="inqdr")
|
|
||||||
// @Size(max = 0,message = "inqdr最大长度要小于 0")
|
|
||||||
private String inqdr;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* msqmt
|
|
||||||
*/
|
|
||||||
@TableField(value="msqmt")
|
|
||||||
@Schema(description="msqmt")
|
|
||||||
@Size(max = 4,message = "msqmt最大长度要小于 4")
|
|
||||||
private String msqmt;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* chtm
|
|
||||||
*/
|
|
||||||
@TableField(value="chtm")
|
|
||||||
@Schema(description="chtm")
|
|
||||||
// @Size(max = 0,message = "chtm最大长度要小于 0")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date chtm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* sendtm
|
|
||||||
*/
|
|
||||||
@TableField(value="sendtm")
|
|
||||||
@Schema(description="sendtm")
|
|
||||||
// @Size(max = 0,message = "sendtm最大长度要小于 0")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date sendtm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* receivetm
|
|
||||||
*/
|
|
||||||
@TableField(value="receivetm")
|
|
||||||
@Schema(description="receivetm")
|
|
||||||
// @Size(max = 0,message = "receivetm最大长度要小于 0")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date receivetm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* source_int
|
|
||||||
*/
|
|
||||||
@TableField(value="source_int")
|
|
||||||
@Schema(description="source_int")
|
|
||||||
// @Size(max = 0,message = "source_int最大长度要小于 0")
|
|
||||||
private Integer sourceInt;
|
|
||||||
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private Date stm;// 同步的数据的开始时间
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private Date etm;// 同步的数据的结束时间
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private String source;// 测站数据源
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private String sttp;// 测站类型
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private String z;// 山洪河道水位
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,159 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model;
|
|
||||||
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
||||||
import com.gunshi.core.dateformat.DateFormatString;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import jakarta.validation.constraints.NotBlank;
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
|
||||||
import jakarta.validation.constraints.Size;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 描述: 水库水位实时数据表
|
|
||||||
* author: xusan
|
|
||||||
* date: 2024-07-08 17:34:26
|
|
||||||
*/
|
|
||||||
@Schema(description="水库水位实时数据表")
|
|
||||||
@Data
|
|
||||||
@TableName("public.st_rsvr_r_real")
|
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
|
||||||
public class StRsvrRReal implements Serializable {
|
|
||||||
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* stcd
|
|
||||||
*/
|
|
||||||
@TableId(value="stcd", type= IdType.AUTO)
|
|
||||||
@Schema(description="stcd")
|
|
||||||
@Size(max = 20,message = "stcd最大长度要小于 20")
|
|
||||||
@NotBlank(message = "stcd不能为空")
|
|
||||||
private String stcd;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* stnm
|
|
||||||
*/
|
|
||||||
@TableField(exist=false)
|
|
||||||
private String stnm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* tm
|
|
||||||
*/
|
|
||||||
@TableField(value="tm")
|
|
||||||
@Schema(description="tm")
|
|
||||||
// @Size(max = 0,message = "tm最大长度要小于 0")
|
|
||||||
@NotNull(message = "tm不能为空")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date tm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* rz
|
|
||||||
*/
|
|
||||||
@TableField(value="rz")
|
|
||||||
@Schema(description="rz")
|
|
||||||
// @Size(max = 0,message = "rz最大长度要小于 0")
|
|
||||||
private BigDecimal rz;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* inq
|
|
||||||
*/
|
|
||||||
@TableField(value="inq")
|
|
||||||
@Schema(description="inq")
|
|
||||||
// @Size(max = 0,message = "inq最大长度要小于 0")
|
|
||||||
private String inq;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* w
|
|
||||||
*/
|
|
||||||
@TableField(value="w")
|
|
||||||
@Schema(description="w")
|
|
||||||
// @Size(max = 0,message = "w最大长度要小于 0")
|
|
||||||
private String w;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* blrz
|
|
||||||
*/
|
|
||||||
@TableField(value="blrz")
|
|
||||||
@Schema(description="blrz")
|
|
||||||
// @Size(max = 0,message = "blrz最大长度要小于 0")
|
|
||||||
private String blrz;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* otq
|
|
||||||
*/
|
|
||||||
@TableField(value="otq")
|
|
||||||
@Schema(description="otq")
|
|
||||||
// @Size(max = 0,message = "otq最大长度要小于 0")
|
|
||||||
private String otq;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* rwchrcd
|
|
||||||
*/
|
|
||||||
@TableField(value="rwchrcd")
|
|
||||||
@Schema(description="rwchrcd")
|
|
||||||
@Size(max = 1,message = "rwchrcd最大长度要小于 1")
|
|
||||||
private String rwchrcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* rwptn
|
|
||||||
*/
|
|
||||||
@TableField(value="rwptn")
|
|
||||||
@Schema(description="rwptn")
|
|
||||||
@Size(max = 1,message = "rwptn最大长度要小于 1")
|
|
||||||
private String rwptn;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* inqdr
|
|
||||||
*/
|
|
||||||
@TableField(value="inqdr")
|
|
||||||
@Schema(description="inqdr")
|
|
||||||
// @Size(max = 0,message = "inqdr最大长度要小于 0")
|
|
||||||
private String inqdr;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* msqmt
|
|
||||||
*/
|
|
||||||
@TableField(value="msqmt")
|
|
||||||
@Schema(description="msqmt")
|
|
||||||
@Size(max = 1,message = "msqmt最大长度要小于 1")
|
|
||||||
private String msqmt;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* chtm
|
|
||||||
*/
|
|
||||||
@TableField(value="chtm")
|
|
||||||
@Schema(description="chtm")
|
|
||||||
// @Size(max = 0,message = "chtm最大长度要小于 0")
|
|
||||||
@NotNull(message = "chtm不能为空")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date chtm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* warning
|
|
||||||
*/
|
|
||||||
@TableField(value="warning")
|
|
||||||
@Schema(description="warning")
|
|
||||||
// @Size(max = 0,message = "warning最大长度要小于 0")
|
|
||||||
private Integer warning;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* status
|
|
||||||
*/
|
|
||||||
@TableField(value="status")
|
|
||||||
@Schema(description="status")
|
|
||||||
// @Size(max = 0,message = "status最大长度要小于 0")
|
|
||||||
private Integer status;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,543 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model;
|
|
||||||
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
|
||||||
import com.gunshi.project.hsz.common.validate.markers.Update;
|
|
||||||
import com.gunshi.core.dateformat.DateFormatString;
|
|
||||||
import com.gunshi.project.hsz.common.validate.markers.Insert;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import jakarta.validation.constraints.NotBlank;
|
|
||||||
import jakarta.validation.constraints.Size;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 描述: sttp 以水利标准来
|
|
||||||
* author: xusan
|
|
||||||
* date: 2024-07-08 17:34:26
|
|
||||||
*/
|
|
||||||
@Schema(description="sttp 以水利标准来")
|
|
||||||
@Data
|
|
||||||
@TableName("public.st_stbprp_b")
|
|
||||||
@IgnoreAutoMapperAndDao
|
|
||||||
public class StStbprpB implements Serializable {
|
|
||||||
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测站编码
|
|
||||||
*/
|
|
||||||
@TableId(value="stcd", type= IdType.AUTO)
|
|
||||||
@Schema(description="测站编码")
|
|
||||||
@Size(max = 32,message = "测站编码最大长度要小于 32")
|
|
||||||
@NotBlank(message = "测站编码不能为空",groups = {Insert.class, Update.class})
|
|
||||||
private String stcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测站名称
|
|
||||||
*/
|
|
||||||
@TableField(value="stnm")
|
|
||||||
@Schema(description="测站名称")
|
|
||||||
@Size(max = 150,message = "测站名称最大长度要小于 150")
|
|
||||||
private String stnm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 河流名称
|
|
||||||
*/
|
|
||||||
@TableField(value="rvnm")
|
|
||||||
@Schema(description="河流名称")
|
|
||||||
@Size(max = 300,message = "河流名称最大长度要小于 300")
|
|
||||||
private String rvnm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 水系名称
|
|
||||||
*/
|
|
||||||
@TableField(value="hnnm")
|
|
||||||
@Schema(description="水系名称")
|
|
||||||
@Size(max = 300,message = "水系名称最大长度要小于 300")
|
|
||||||
private String hnnm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 流域名称
|
|
||||||
*/
|
|
||||||
@TableField(value="bsnm")
|
|
||||||
@Schema(description="流域名称")
|
|
||||||
@Size(max = 300,message = "流域名称最大长度要小于 300")
|
|
||||||
private String bsnm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 经度
|
|
||||||
*/
|
|
||||||
@TableField(value="lgtd")
|
|
||||||
@Schema(description="经度")
|
|
||||||
// @Size(max = 0,message = "经度最大长度要小于 0")
|
|
||||||
private String lgtd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 纬度
|
|
||||||
*/
|
|
||||||
@TableField(value="lttd")
|
|
||||||
@Schema(description="纬度")
|
|
||||||
// @Size(max = 0,message = "纬度最大长度要小于 0")
|
|
||||||
private String lttd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 站址
|
|
||||||
*/
|
|
||||||
@TableField(value="stlc")
|
|
||||||
@Schema(description="站址")
|
|
||||||
@Size(max = 500,message = "站址最大长度要小于 500")
|
|
||||||
private String stlc;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* alt
|
|
||||||
*/
|
|
||||||
@TableField(value="alt")
|
|
||||||
@Schema(description="alt")
|
|
||||||
// @Size(max = 0,message = "alt最大长度要小于 0")
|
|
||||||
private String alt;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* mdbz
|
|
||||||
*/
|
|
||||||
@TableField(value="mdbz")
|
|
||||||
@Schema(description="mdbz")
|
|
||||||
// @Size(max = 0,message = "mdbz最大长度要小于 0")
|
|
||||||
private String mdbz;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* mdpr
|
|
||||||
*/
|
|
||||||
@TableField(value="mdpr")
|
|
||||||
@Schema(description="mdpr")
|
|
||||||
// @Size(max = 0,message = "mdpr最大长度要小于 0")
|
|
||||||
private String mdpr;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 基面名称
|
|
||||||
*/
|
|
||||||
@TableField(value="dtmnm")
|
|
||||||
@Schema(description="基面名称")
|
|
||||||
@Size(max = 160,message = "基面名称最大长度要小于 160")
|
|
||||||
private String dtmnm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 基面高程
|
|
||||||
*/
|
|
||||||
@TableField(value="dtmel")
|
|
||||||
@Schema(description="基面高程")
|
|
||||||
// @Size(max = 0,message = "基面高程最大长度要小于 0")
|
|
||||||
private String dtmel;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 基面修正值
|
|
||||||
*/
|
|
||||||
@TableField(value="dtpr")
|
|
||||||
@Schema(description="基面修正值")
|
|
||||||
// @Size(max = 0,message = "基面修正值最大长度要小于 0")
|
|
||||||
private String dtpr;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 站类,PP=雨量站,RR=水库水位站,ZQ=河道水位站,TX=图像站
|
|
||||||
*/
|
|
||||||
@TableField(value="sttp")
|
|
||||||
@Schema(description="站类,MM=气象站,PP=雨量站,BB=蒸发站,ZQ=河道水文站,DD=堰闸水文站,ZZ=河道水位站,TT=潮位站,RR=水库水文站,DP=泵站,ZG=地下水站,SS=墒情站,ZB=分洪水位站,QQ=流量站,TX=图像站,ZI=渠道水位站,ZL=田间水层,QI=渠道流量站,ZT=塘堰,ZS=渗压渗流站,GT=闸位站,SZ=水质站,PQ=管道流量站")
|
|
||||||
@Size(max = 30,message = "站类,MM=气象站,PP=雨量站,BB=蒸发站,ZQ=河道水文站,DD=堰闸水文站,ZZ=河道水位站,TT=潮位站,RR=水库水文站,DP=泵站,ZG=地下水站,SS=墒情站,ZB=分洪水位站,QQ=流量站,TX=图像站,ZI=渠道水位站,ZL=田间水层,QI=渠道流量站,ZT=塘堰,ZS=渗压渗流站,GT=闸位站,SZ=水质站,PQ=管道流量站。最大长度要小于 30")
|
|
||||||
private String sttp;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* dfrtms
|
|
||||||
*/
|
|
||||||
@TableField(value="dfrtms")
|
|
||||||
@Schema(description="dfrtms")
|
|
||||||
// @Size(max = 0,message = "dfrtms最大长度要小于 0")
|
|
||||||
private String dfrtms;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* fritm
|
|
||||||
*/
|
|
||||||
@TableField(value="fritm")
|
|
||||||
@Schema(description="fritm")
|
|
||||||
@Size(max = 320,message = "fritm最大长度要小于 320")
|
|
||||||
private String fritm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 报汛等级
|
|
||||||
*/
|
|
||||||
@TableField(value="frgrd")
|
|
||||||
@Schema(description="报汛等级")
|
|
||||||
@Size(max = 500,message = "报汛等级最大长度要小于 500")
|
|
||||||
private String frgrd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 建站年月
|
|
||||||
*/
|
|
||||||
@TableField(value="esstym")
|
|
||||||
@Schema(description="建站年月")
|
|
||||||
@Size(max = 60,message = "建站年月最大长度要小于 60")
|
|
||||||
private String esstym;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* bgfrym
|
|
||||||
*/
|
|
||||||
@TableField(value="bgfrym")
|
|
||||||
@Schema(description="bgfrym")
|
|
||||||
@Size(max = 60,message = "bgfrym最大长度要小于 60")
|
|
||||||
private String bgfrym;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* edfrym
|
|
||||||
*/
|
|
||||||
@TableField(value="edfrym")
|
|
||||||
@Schema(description="edfrym")
|
|
||||||
@Size(max = 60,message = "edfrym最大长度要小于 60")
|
|
||||||
private String edfrym;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 隶属行业单位
|
|
||||||
*/
|
|
||||||
@TableField(value="atcunit")
|
|
||||||
@Schema(description="隶属行业单位")
|
|
||||||
@Size(max = 200,message = "隶属行业单位最大长度要小于 200")
|
|
||||||
private String atcunit;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 信息管理单位
|
|
||||||
*/
|
|
||||||
@TableField(value="admauth")
|
|
||||||
@Schema(description="信息管理单位")
|
|
||||||
@Size(max = 500,message = "信息管理单位最大长度要小于 500")
|
|
||||||
private String admauth;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 交换管理单位
|
|
||||||
*/
|
|
||||||
@TableField(value="locality")
|
|
||||||
@Schema(description="交换管理单位")
|
|
||||||
@Size(max = 200,message = "交换管理单位最大长度要小于 200")
|
|
||||||
private String locality;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测站岸别
|
|
||||||
*/
|
|
||||||
@TableField(value="stbk")
|
|
||||||
@Schema(description="测站岸别")
|
|
||||||
@Size(max = 1,message = "测站岸别最大长度要小于 1")
|
|
||||||
private String stbk;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测站方位
|
|
||||||
*/
|
|
||||||
@TableField(value="stazt")
|
|
||||||
@Schema(description="测站方位")
|
|
||||||
// @Size(max = 0,message = "测站方位最大长度要小于 0")
|
|
||||||
private String stazt;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 至河口距离
|
|
||||||
*/
|
|
||||||
@TableField(value="dstrvm")
|
|
||||||
@Schema(description="至河口距离")
|
|
||||||
// @Size(max = 0,message = "至河口距离最大长度要小于 0")
|
|
||||||
private String dstrvm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 集水面积
|
|
||||||
*/
|
|
||||||
@TableField(value="drna")
|
|
||||||
@Schema(description="集水面积")
|
|
||||||
// @Size(max = 0,message = "集水面积最大长度要小于 0")
|
|
||||||
private String drna;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 拼音码
|
|
||||||
*/
|
|
||||||
@TableField(value="phcd")
|
|
||||||
@Schema(description="拼音码")
|
|
||||||
@Size(max = 60,message = "拼音码最大长度要小于 60")
|
|
||||||
private String phcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 启用标志
|
|
||||||
*/
|
|
||||||
@TableField(value="usfl")
|
|
||||||
@Schema(description="启用标志")
|
|
||||||
@Size(max = 1,message = "启用标志最大长度要小于 1")
|
|
||||||
private String usfl;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 备注
|
|
||||||
*/
|
|
||||||
@TableField(value="comments")
|
|
||||||
@Schema(description="备注")
|
|
||||||
@Size(max = 200,message = "备注最大长度要小于 200")
|
|
||||||
private String comments;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 时间戳
|
|
||||||
*/
|
|
||||||
@TableField(value="moditime")
|
|
||||||
@Schema(description="时间戳")
|
|
||||||
// @Size(max = 0,message = "时间戳最大长度要小于 0")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date moditime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* rem_gd
|
|
||||||
*/
|
|
||||||
@TableField(value="rem_gd")
|
|
||||||
@Schema(description="rem_gd")
|
|
||||||
@Size(max = 300,message = "rem_gd最大长度要小于 300")
|
|
||||||
private String remGd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ogid
|
|
||||||
*/
|
|
||||||
@TableField(value="ogid")
|
|
||||||
@Schema(description="ogid")
|
|
||||||
@Size(max = 100,message = "ogid最大长度要小于 100")
|
|
||||||
private String ogid;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* vlfl
|
|
||||||
*/
|
|
||||||
@TableField(value="vlfl")
|
|
||||||
@Schema(description="vlfl")
|
|
||||||
// @Size(max = 0,message = "vlfl最大长度要小于 0")
|
|
||||||
private String vlfl;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* atid
|
|
||||||
*/
|
|
||||||
@TableField(value="atid")
|
|
||||||
@Schema(description="atid")
|
|
||||||
@Size(max = 180,message = "atid最大长度要小于 180")
|
|
||||||
private String atid;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* sdfl
|
|
||||||
*/
|
|
||||||
@TableField(value="sdfl")
|
|
||||||
@Schema(description="sdfl")
|
|
||||||
@Size(max = 500,message = "sdfl最大长度要小于 500")
|
|
||||||
private String sdfl;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* rma
|
|
||||||
*/
|
|
||||||
@TableField(value="rma")
|
|
||||||
@Schema(description="rma")
|
|
||||||
@Size(max = 256,message = "rma最大长度要小于 256")
|
|
||||||
private String rma;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* mdps
|
|
||||||
*/
|
|
||||||
@TableField(value="mdps")
|
|
||||||
@Schema(description="mdps")
|
|
||||||
@Size(max = 300,message = "mdps最大长度要小于 300")
|
|
||||||
private String mdps;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* mddt
|
|
||||||
*/
|
|
||||||
@TableField(value="mddt")
|
|
||||||
@Schema(description="mddt")
|
|
||||||
// @Size(max = 0,message = "mddt最大长度要小于 0")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date mddt;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* stindex
|
|
||||||
*/
|
|
||||||
@TableField(value="stindex")
|
|
||||||
@Schema(description="stindex")
|
|
||||||
// @Size(max = 0,message = "stindex最大长度要小于 0")
|
|
||||||
private String stindex;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* starea
|
|
||||||
*/
|
|
||||||
@TableField(value="starea")
|
|
||||||
@Schema(description="starea")
|
|
||||||
@Size(max = 500,message = "starea最大长度要小于 500")
|
|
||||||
private String starea;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* stlevel
|
|
||||||
*/
|
|
||||||
@TableField(value="stlevel")
|
|
||||||
@Schema(description="stlevel")
|
|
||||||
@Size(max = 1,message = "stlevel最大长度要小于 1")
|
|
||||||
private String stlevel;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* code
|
|
||||||
*/
|
|
||||||
@TableField(value="code")
|
|
||||||
@Schema(description="code")
|
|
||||||
@Size(max = 300,message = "code最大长度要小于 300")
|
|
||||||
private String code;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ispbj
|
|
||||||
*/
|
|
||||||
@TableField(value="ispbj")
|
|
||||||
@Schema(description="ispbj")
|
|
||||||
@Size(max = 1,message = "ispbj最大长度要小于 1")
|
|
||||||
private String ispbj;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* issxst
|
|
||||||
*/
|
|
||||||
@TableField(value="issxst")
|
|
||||||
@Schema(description="issxst")
|
|
||||||
@Size(max = 1,message = "issxst最大长度要小于 1")
|
|
||||||
private String issxst;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* stpq
|
|
||||||
*/
|
|
||||||
@TableField(value="stpq")
|
|
||||||
@Schema(description="stpq")
|
|
||||||
@Size(max = 500,message = "stpq最大长度要小于 500")
|
|
||||||
private String stpq;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* sthday
|
|
||||||
*/
|
|
||||||
@TableField(value="sthday")
|
|
||||||
@Schema(description="sthday")
|
|
||||||
// @Size(max = 0,message = "sthday最大长度要小于 0")
|
|
||||||
private Integer sthday;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* source
|
|
||||||
*/
|
|
||||||
@TableField(value="source")
|
|
||||||
@Schema(description="站点来源,SH=山洪,SW=水文,QX=气象,SK=水库")
|
|
||||||
@Size(max = 12,message = "站点来源,SH=山洪,SW=水文,QX=气象,SK=水库最大长度要小于 12")
|
|
||||||
@NotBlank(message = "站点来源不能为空")
|
|
||||||
private String source;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* importancy
|
|
||||||
*/
|
|
||||||
@TableField(value="importancy")
|
|
||||||
@Schema(description="importancy")
|
|
||||||
// @Size(max = 0,message = "importancy最大长度要小于 0")
|
|
||||||
private Integer importancy;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* clgtd
|
|
||||||
*/
|
|
||||||
@TableField(value="clgtd")
|
|
||||||
@Schema(description="clgtd")
|
|
||||||
// @Size(max = 0,message = "clgtd最大长度要小于 0")
|
|
||||||
private String clgtd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* clttd
|
|
||||||
*/
|
|
||||||
@TableField(value="clttd")
|
|
||||||
@Schema(description="clttd")
|
|
||||||
// @Size(max = 0,message = "clttd最大长度要小于 0")
|
|
||||||
private String clttd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* elev
|
|
||||||
*/
|
|
||||||
@TableField(value="elev")
|
|
||||||
@Schema(description="elev")
|
|
||||||
// @Size(max = 0,message = "elev最大长度要小于 0")
|
|
||||||
private String elev;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* crucial
|
|
||||||
*/
|
|
||||||
@TableField(value="crucial")
|
|
||||||
@Schema(description="crucial")
|
|
||||||
// @Size(max = 0,message = "crucial最大长度要小于 0")
|
|
||||||
private Integer crucial;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* build_year
|
|
||||||
*/
|
|
||||||
@TableField(value="build_year")
|
|
||||||
@Schema(description="build_year")
|
|
||||||
@Size(max = 50,message = "build_year最大长度要小于 50")
|
|
||||||
private String buildYear;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 行政区划编码
|
|
||||||
*/
|
|
||||||
@TableField(value="adcd")
|
|
||||||
@Schema(description="行政区划编码")
|
|
||||||
@Size(max = 15,message = "行政区划编码最大长度要小于 15")
|
|
||||||
private String adcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 流域编码
|
|
||||||
*/
|
|
||||||
@TableField(value="lyid")
|
|
||||||
@Schema(description="流域编码")
|
|
||||||
@Size(max = 255,message = "流域编码最大长度要小于 255")
|
|
||||||
private String lyid;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 水库编码
|
|
||||||
*/
|
|
||||||
@TableField(value="res_code")
|
|
||||||
@Schema(description="水库编码")
|
|
||||||
@Size(max = 255,message = "水库编码最大长度要小于 255")
|
|
||||||
private String resCode;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 河流编码
|
|
||||||
*/
|
|
||||||
@TableField(value="rv_code")
|
|
||||||
@Schema(description="河流编码")
|
|
||||||
@Size(max = 255,message = "河流编码最大长度要小于 255")
|
|
||||||
private String rvCode;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测站状态 0无效 1有效
|
|
||||||
*/
|
|
||||||
@TableField(value="status")
|
|
||||||
@Schema(description="测站状态 0无效 1有效")
|
|
||||||
// @Size(max = 0,message = "测站状态 0无效 1有效最大长度要小于 0")
|
|
||||||
private Integer status;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 归属协议
|
|
||||||
*/
|
|
||||||
@Schema(description="归属协议")
|
|
||||||
@TableField(value="agreement")
|
|
||||||
private String agreement;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* SIM卡
|
|
||||||
*/
|
|
||||||
@Schema(description="SIM卡")
|
|
||||||
@TableField(value="sim_card")
|
|
||||||
private String simCard;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 北斗卡号
|
|
||||||
*/
|
|
||||||
@Schema(description="北斗卡号")
|
|
||||||
@TableField(value="bd_card")
|
|
||||||
private String bdCard;
|
|
||||||
|
|
||||||
public static final String COL_STCD = "stcd";
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,48 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model;
|
|
||||||
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import jakarta.validation.constraints.NotBlank;
|
|
||||||
import jakarta.validation.constraints.Size;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 描述: 测站监测值类型
|
|
||||||
* author: xusan
|
|
||||||
* date: 2024-07-08 17:34:26
|
|
||||||
*/
|
|
||||||
@Schema(description="测站监测值类型")
|
|
||||||
@Data
|
|
||||||
@TableName("public.st_stbprp_b_elem")
|
|
||||||
@IgnoreAutoMapperAndDao
|
|
||||||
public class StStbprpBElem implements Serializable {
|
|
||||||
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测站编码
|
|
||||||
*/
|
|
||||||
@TableId(value="stcd", type= IdType.AUTO)
|
|
||||||
@Schema(description="测站编码")
|
|
||||||
@Size(max = 32,message = "测站编码最大长度要小于 32")
|
|
||||||
@NotBlank(message = "测站编码不能为空")
|
|
||||||
private String stcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 监测值类型, z是水位,drp是雨量,img是图像
|
|
||||||
*/
|
|
||||||
@TableField(value="elem")
|
|
||||||
@Schema(description="监测值类型, z是水位,drp是雨量,img是图像")
|
|
||||||
@Size(max = 4,message = "监测值类型, z是水位,drp是雨量,img是图像最大长度要小于 4")
|
|
||||||
@NotBlank(message = "监测值类型, z是水位,drp是雨量,img是图像不能为空")
|
|
||||||
private String elem;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.page;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.gunshi.db.dto.PageSo;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author cxw
|
|
||||||
* @description: 通用分页参数
|
|
||||||
* @classname GenericPageParams.java
|
|
||||||
* @create 2024-07-09, 星期二, 11:29:56
|
|
||||||
*/
|
|
||||||
@Schema(description = "通用分页查询对象")
|
|
||||||
@Data
|
|
||||||
public class GenericPageParams {
|
|
||||||
|
|
||||||
@Schema(description = "分页参数")
|
|
||||||
@TableField(exist = false)
|
|
||||||
private PageSo pageSo;
|
|
||||||
|
|
||||||
@Schema(description = "排序字段")
|
|
||||||
@TableField(exist = false)
|
|
||||||
private String orderField;
|
|
||||||
|
|
||||||
@Schema(description = "排序规则,是否升序")
|
|
||||||
@TableField(exist = false)
|
|
||||||
private Boolean isAsc;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.so;
|
|
||||||
|
|
||||||
import com.gunshi.db.dto.PageSo;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@Schema(description = "分页查询对象")
|
|
||||||
public class JcskByBDPageSo {
|
|
||||||
|
|
||||||
@NotNull(message = "分页参数不能为空")
|
|
||||||
@Schema(description = "分页参数")
|
|
||||||
private PageSo pageSo;
|
|
||||||
|
|
||||||
@Schema(description = "机箱编号 (一个机箱有多个设备)")
|
|
||||||
private String deviceId;
|
|
||||||
|
|
||||||
@Schema(description = "设备编号")
|
|
||||||
private String order;
|
|
||||||
}
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.so;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.gunshi.core.dateformat.DateFormatString;
|
|
||||||
import com.gunshi.db.dto.DateTimeRangeSo;
|
|
||||||
import com.gunshi.db.dto.PageSo;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@Schema(description = "分页查询对象")
|
|
||||||
public class JcskByRPageSo {
|
|
||||||
|
|
||||||
@NotNull(message = "分页参数不能为空")
|
|
||||||
@Schema(description = "分页参数")
|
|
||||||
private PageSo pageSo;
|
|
||||||
|
|
||||||
private DateTimeRangeSo dateTimeRangeSo;
|
|
||||||
|
|
||||||
@Schema(description = "监测时间")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD, timezone = "GMT+8")
|
|
||||||
private Date obDate;
|
|
||||||
|
|
||||||
@Schema(description = "设备编号")
|
|
||||||
private String deviceCode;
|
|
||||||
|
|
||||||
@Schema(description = "测点编号")
|
|
||||||
private String order;
|
|
||||||
|
|
||||||
@Schema(description = "有无白蚁入侵")
|
|
||||||
private Integer status;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.so;
|
|
||||||
|
|
||||||
|
|
||||||
import com.gunshi.db.dto.PageSo;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@Schema(description = "分页查询对象")
|
|
||||||
public class JcskGnssBPageSo {
|
|
||||||
|
|
||||||
@NotNull(message = "分页参数不能为空")
|
|
||||||
@Schema(description = "分页参数")
|
|
||||||
private PageSo pageSo;
|
|
||||||
|
|
||||||
@Schema(description = "设备编码")
|
|
||||||
private String stationCode;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.so;
|
|
||||||
|
|
||||||
|
|
||||||
import com.gunshi.db.dto.DateTimeRangeSo;
|
|
||||||
import com.gunshi.db.dto.PageSo;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@Schema(description = "分页查询对象")
|
|
||||||
public class JcskGnssRPageSo {
|
|
||||||
|
|
||||||
@NotNull(message = "分页参数不能为空")
|
|
||||||
@Schema(description = "分页参数")
|
|
||||||
private PageSo pageSo;
|
|
||||||
|
|
||||||
@Schema(description = "上报时间")
|
|
||||||
private DateTimeRangeSo dateTimeRangeSo;
|
|
||||||
|
|
||||||
|
|
||||||
@Schema(description = "测点编码")
|
|
||||||
private String cd;
|
|
||||||
|
|
||||||
@Schema(description = "断面")
|
|
||||||
private String ch;
|
|
||||||
|
|
||||||
@Schema(description = "录入方式")
|
|
||||||
private Integer isArtificial;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.so;
|
|
||||||
|
|
||||||
import com.gunshi.db.dto.PageSo;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@Schema(description = "分页查询对象")
|
|
||||||
public class JcskSlBPageSo {
|
|
||||||
|
|
||||||
@NotNull(message = "分页参数不能为空")
|
|
||||||
@Schema(description = "分页参数")
|
|
||||||
private PageSo pageSo;
|
|
||||||
|
|
||||||
|
|
||||||
@Schema(description = "水库代码")
|
|
||||||
private String rscd;
|
|
||||||
|
|
||||||
@Schema(description = "RTU编号")
|
|
||||||
private String stcd;
|
|
||||||
|
|
||||||
@Schema(description = "测点编号")
|
|
||||||
private String mpcd;
|
|
||||||
}
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.so;
|
|
||||||
|
|
||||||
|
|
||||||
import com.gunshi.db.dto.DateTimeRangeSo;
|
|
||||||
import com.gunshi.db.dto.PageSo;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@Schema(description = "分页查询对象")
|
|
||||||
public class JcskSlRPageSo {
|
|
||||||
|
|
||||||
@NotNull(message = "分页参数不能为空")
|
|
||||||
@Schema(description = "分页参数")
|
|
||||||
private PageSo pageSo;
|
|
||||||
|
|
||||||
|
|
||||||
@Schema(description = "上报时间")
|
|
||||||
private DateTimeRangeSo dateTimeRangeSo;
|
|
||||||
|
|
||||||
@Schema(description = "断面")
|
|
||||||
private String dm;
|
|
||||||
|
|
||||||
|
|
||||||
@Schema(description = "测点")
|
|
||||||
private String dvcd;
|
|
||||||
}
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.so;
|
|
||||||
|
|
||||||
import com.gunshi.db.dto.PageSo;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@Schema(description = "分页查询对象")
|
|
||||||
public class JcskSyBPageSo {
|
|
||||||
|
|
||||||
|
|
||||||
@NotNull(message = "分页参数不能为空")
|
|
||||||
@Schema(description = "分页参数")
|
|
||||||
private PageSo pageSo;
|
|
||||||
|
|
||||||
|
|
||||||
@Schema(description = "断面")
|
|
||||||
private String dm;
|
|
||||||
|
|
||||||
@Schema(description = "测点编号")
|
|
||||||
private String mpcd;
|
|
||||||
}
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.so;
|
|
||||||
|
|
||||||
import com.gunshi.db.dto.DateTimeRangeSo;
|
|
||||||
import com.gunshi.db.dto.PageSo;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@Schema(description = "分页查询对象")
|
|
||||||
public class JcskSyRPageSo {
|
|
||||||
|
|
||||||
|
|
||||||
@NotNull(message = "分页参数不能为空")
|
|
||||||
@Schema(description = "分页参数")
|
|
||||||
private PageSo pageSo;
|
|
||||||
|
|
||||||
|
|
||||||
@Schema(description = "上报时间")
|
|
||||||
private DateTimeRangeSo dateTimeRangeSo;
|
|
||||||
|
|
||||||
@Schema(description = "测点编号")
|
|
||||||
private String dvcd;
|
|
||||||
|
|
||||||
@Schema(description = "断面")
|
|
||||||
private String dm;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.so;
|
|
||||||
|
|
||||||
import com.gunshi.db.dto.DateTimeRangeSo;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import jakarta.validation.constraints.NotEmpty;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Description:
|
|
||||||
* Created by wanyan on 2024/3/19
|
|
||||||
*
|
|
||||||
* @author wanyan
|
|
||||||
* @version 1.0
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@Schema(description = "布置图详细数据查询对象")
|
|
||||||
public class OsmoticDetailQuerySo {
|
|
||||||
|
|
||||||
@Schema(description = "类型(2渗流 其他可不传)")
|
|
||||||
private Integer type = 1;
|
|
||||||
|
|
||||||
@Schema(description = "时间")
|
|
||||||
private DateTimeRangeSo dateTimeRangeSo;
|
|
||||||
|
|
||||||
@Schema(description = "测点编号")
|
|
||||||
@NotEmpty(message = "测点编号不可为空")
|
|
||||||
private String stationCode;
|
|
||||||
}
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.so;
|
|
||||||
|
|
||||||
import com.gunshi.project.hsz.common.model.page.GenericPageParams;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Description:
|
|
||||||
* Created by XuSan on 2024/7/18.
|
|
||||||
*
|
|
||||||
* @author XuSan
|
|
||||||
* @version 1.0
|
|
||||||
*/
|
|
||||||
@EqualsAndHashCode(callSuper = true)
|
|
||||||
@Data
|
|
||||||
public class OsmoticDevicePage extends GenericPageParams {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测点编号
|
|
||||||
*/
|
|
||||||
@Schema(description="测点编号")
|
|
||||||
private String stationCode;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 仪器编号
|
|
||||||
*/
|
|
||||||
@Schema(description="仪器编号")
|
|
||||||
private String deviceCode;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.so;
|
|
||||||
|
|
||||||
import com.gunshi.db.dto.DateTimeRangeSo;
|
|
||||||
import com.gunshi.db.dto.PageSo;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Description:
|
|
||||||
* Created by wanyan on 2024/3/19
|
|
||||||
*
|
|
||||||
* @author wanyan
|
|
||||||
* @version 1.0
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@Schema(description = "渗压/渗流/位移分页查询对象")
|
|
||||||
public class OsmoticQueryPageSo{
|
|
||||||
|
|
||||||
@NotNull(message = "分页参数不能为空")
|
|
||||||
@Schema(description = "分页参数")
|
|
||||||
private PageSo pageSo;
|
|
||||||
|
|
||||||
@Schema(description = "上报时间")
|
|
||||||
private DateTimeRangeSo dateTimeRangeSo;
|
|
||||||
|
|
||||||
@Schema(description = "监测断面")
|
|
||||||
private String profileCode;
|
|
||||||
|
|
||||||
@Schema(description = "测点编号")
|
|
||||||
private String stationCode;
|
|
||||||
}
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.so;
|
|
||||||
|
|
||||||
import com.gunshi.db.dto.DateTimeRangeSo;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import jakarta.validation.constraints.NotEmpty;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Description:
|
|
||||||
* Created by wanyan on 2024/3/19
|
|
||||||
*
|
|
||||||
* @author wanyan
|
|
||||||
* @version 1.0
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@Schema(description = "测值查询对象")
|
|
||||||
public class OsmoticQuerySo {
|
|
||||||
|
|
||||||
@Schema(description = "类型(1渗压 2渗流)")
|
|
||||||
private Integer type = 1;
|
|
||||||
|
|
||||||
@Schema(description = "年度")
|
|
||||||
private String year;
|
|
||||||
|
|
||||||
@Schema(description = "时间")
|
|
||||||
private DateTimeRangeSo dateTimeRangeSo;
|
|
||||||
|
|
||||||
@Schema(description = "监测断面名称(只有导出时传)")
|
|
||||||
private String profileName;
|
|
||||||
|
|
||||||
@Schema(description = "测点编号")
|
|
||||||
private List<@NotEmpty String> stationCodes;
|
|
||||||
|
|
||||||
@Schema(description = "wy (没啥用的字段)")
|
|
||||||
private String wy;
|
|
||||||
}
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.vo;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.gunshi.core.dateformat.DateFormatString;
|
|
||||||
import com.gunshi.project.hsz.common.model.JcskGnssB;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
public class HomeJcskGnssBVo extends JcskGnssB {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* x方向
|
|
||||||
*/
|
|
||||||
@Schema(description="x方向")
|
|
||||||
private String x;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* y方向
|
|
||||||
*/
|
|
||||||
@Schema(description="y方向")
|
|
||||||
private String y;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* h方向
|
|
||||||
*/
|
|
||||||
@Schema(description="h方向")
|
|
||||||
private String h;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 监测时间
|
|
||||||
*/
|
|
||||||
@Schema(description="监测时间")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date tm;
|
|
||||||
}
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.vo;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.gunshi.core.dateformat.DateFormatString;
|
|
||||||
import com.gunshi.project.hsz.common.model.JcskSyB;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
public class HomeJcskSYBVo extends JcskSyB {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 管水位
|
|
||||||
*/
|
|
||||||
@Schema(description="管水位")
|
|
||||||
private String value;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 监测时间
|
|
||||||
*/
|
|
||||||
@Schema(description="监测时间")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date tm;
|
|
||||||
}
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.vo;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.gunshi.core.dateformat.DateFormatString;
|
|
||||||
|
|
||||||
import com.gunshi.project.hsz.common.model.JcskSlB;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
public class HomeJcskSlBVo extends JcskSlB {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 管水位
|
|
||||||
*/
|
|
||||||
@Schema(description="流量")
|
|
||||||
private String q;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 监测时间
|
|
||||||
*/
|
|
||||||
@Schema(description="监测时间")
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
private Date tm;
|
|
||||||
}
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.vo;
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
public class JcskByInspectDetailVo {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.vo;
|
|
||||||
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.gunshi.core.dateformat.DateFormatString;
|
|
||||||
import com.gunshi.project.hsz.common.model.InspectTask;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
public class JcskByRProcessVo extends InspectTask {
|
|
||||||
|
|
||||||
@Schema(description = "设备编号")
|
|
||||||
private String order;
|
|
||||||
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
@Schema(description = "监测时间")
|
|
||||||
private Date obDate;
|
|
||||||
|
|
||||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
||||||
@Schema(description = "监测时间 + hours之后的结束时间")
|
|
||||||
private Date obResolveDate;
|
|
||||||
|
|
||||||
|
|
||||||
private Integer hours;
|
|
||||||
}
|
|
||||||
|
|
@ -1,64 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.vo;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
public class JcskGnessListVo {
|
|
||||||
/**
|
|
||||||
* 测点编号
|
|
||||||
*/
|
|
||||||
@Schema(description="测点编号")
|
|
||||||
private String cd;
|
|
||||||
|
|
||||||
@Schema(description = "桩号/断面")
|
|
||||||
private String ch;
|
|
||||||
|
|
||||||
@Schema(description = "测点名称")
|
|
||||||
private String cdnm;
|
|
||||||
|
|
||||||
@Schema(description = "测点编号/另一种叫法")
|
|
||||||
private String stationCode;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 时间
|
|
||||||
*/
|
|
||||||
@Schema(description="时间")
|
|
||||||
private String tm;
|
|
||||||
|
|
||||||
@Schema(description = "监测时间是否离当前时间超过2天(0否 1是)")
|
|
||||||
private Integer flag = 0;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* x方向
|
|
||||||
*/
|
|
||||||
@Schema(description="e方向")
|
|
||||||
private BigDecimal de;
|
|
||||||
|
|
||||||
@Schema(description = "e方向是否超过预警(0否 1是)")
|
|
||||||
private Integer xStatus = 0;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* y方向
|
|
||||||
*/
|
|
||||||
@Schema(description="n方向")
|
|
||||||
private BigDecimal dn;
|
|
||||||
|
|
||||||
@Schema(description = "n方向是否超过预警(0否 1是)")
|
|
||||||
private Integer yStatus = 0;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* h方向
|
|
||||||
*/
|
|
||||||
@Schema(description="u方向")
|
|
||||||
private BigDecimal du;
|
|
||||||
|
|
||||||
@Schema(description = "u方向是否超过预警(0否 1是)")
|
|
||||||
private Integer hStatus = 0;
|
|
||||||
|
|
||||||
@JsonIgnore
|
|
||||||
private String direction;
|
|
||||||
}
|
|
||||||
|
|
@ -1,64 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.vo;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
public class JcskGnssRHisVo {
|
|
||||||
/**
|
|
||||||
* 水库编码设备编码
|
|
||||||
*/
|
|
||||||
@TableField("res_cd")
|
|
||||||
private String resCd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测点编码
|
|
||||||
*/
|
|
||||||
@TableField("cd")
|
|
||||||
private String cd;
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private String ch;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* e方向变形值,单位(mm)
|
|
||||||
*/
|
|
||||||
@TableField("de")
|
|
||||||
private BigDecimal de;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* n方向变形值,单位(mm)
|
|
||||||
*/
|
|
||||||
@TableField("dn")
|
|
||||||
private BigDecimal dn;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* u方向变形值,单位(mm)
|
|
||||||
*/
|
|
||||||
@TableField("du")
|
|
||||||
private BigDecimal du;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 站点高程
|
|
||||||
*/
|
|
||||||
@TableField("alt")
|
|
||||||
private BigDecimal alt;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 监测时间
|
|
||||||
*/
|
|
||||||
@TableField("tm")
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
private Date tm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 更新时间
|
|
||||||
*/
|
|
||||||
@TableField("update_tm")
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
private Date updateTm;
|
|
||||||
}
|
|
||||||
|
|
@ -1,79 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.vo;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
public class JcskSlRHisVo {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 水库代码
|
|
||||||
*/
|
|
||||||
@TableField("rscd")
|
|
||||||
private String rscd;
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private String dm;
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private String dvcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 水工建筑物编号
|
|
||||||
*/
|
|
||||||
@TableField("hycncd")
|
|
||||||
private String hycncd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测点编号
|
|
||||||
*/
|
|
||||||
@TableField("mpcd")
|
|
||||||
private String mpcd;
|
|
||||||
|
|
||||||
|
|
||||||
@TableField("stcd")
|
|
||||||
private String stcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测量时间
|
|
||||||
*/
|
|
||||||
@TableField("mstm")
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
private Date mstm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 温度,单位℃
|
|
||||||
*/
|
|
||||||
@TableField("tm")
|
|
||||||
private BigDecimal tm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 渗流量,单位l/s
|
|
||||||
*/
|
|
||||||
@TableField("spqn")
|
|
||||||
private BigDecimal spqn;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 标准水温渗流量,单位l/s
|
|
||||||
*/
|
|
||||||
@TableField("stspqn")
|
|
||||||
private BigDecimal stspqn;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建时间
|
|
||||||
*/
|
|
||||||
@TableField("create_time")
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
private Date createTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 更新时间
|
|
||||||
*/
|
|
||||||
@TableField("update_tm")
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
private Date updateTm;
|
|
||||||
}
|
|
||||||
|
|
@ -1,77 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.vo;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
public class JcskSyRHisVo {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 水库代码
|
|
||||||
*/
|
|
||||||
@TableField("rscd")
|
|
||||||
private String rscd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测站编码
|
|
||||||
*/
|
|
||||||
@TableField("stcd")
|
|
||||||
private String stcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 水工建筑物编号
|
|
||||||
*/
|
|
||||||
@TableField("hycncd")
|
|
||||||
private String hycncd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测点编号
|
|
||||||
*/
|
|
||||||
@TableField("mpcd")
|
|
||||||
private String mpcd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测量时间
|
|
||||||
*/
|
|
||||||
@TableField("mstm")
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
private LocalDateTime mstm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 温度
|
|
||||||
*/
|
|
||||||
@TableField("tm")
|
|
||||||
private BigDecimal tm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 渗流压力水位,单位m
|
|
||||||
*/
|
|
||||||
@TableField("spprwl")
|
|
||||||
private BigDecimal spprwl;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 更新时间
|
|
||||||
*/
|
|
||||||
@TableField("update_tm")
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
private LocalDateTime updateTm;
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
@Schema(description = "断面编码")
|
|
||||||
private String dm;
|
|
||||||
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
@Schema(description = "断面名称")
|
|
||||||
private String dmName;
|
|
||||||
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
@Schema(description = "dvcd")
|
|
||||||
private String dvcd;
|
|
||||||
}
|
|
||||||
|
|
@ -1,34 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.vo;
|
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
public class JcskSyRVo {
|
|
||||||
@Schema(description="测点编码")
|
|
||||||
private String stationCode;
|
|
||||||
|
|
||||||
@Schema(description = "断面名称")
|
|
||||||
private String profileName;
|
|
||||||
|
|
||||||
@Schema(description="监测时间")
|
|
||||||
private String tm;
|
|
||||||
|
|
||||||
@Schema(description="监测值")
|
|
||||||
private BigDecimal value;
|
|
||||||
|
|
||||||
@Schema(description = "监测时间是否离当前时间超过2天(0否 1是)")
|
|
||||||
private Integer flag = 0;
|
|
||||||
|
|
||||||
@Schema(description = "是否超过预警(0否 1是)")
|
|
||||||
private Integer status = 0;
|
|
||||||
|
|
||||||
@Schema(description = "0 离线 1在线")
|
|
||||||
private Integer onoffStauts;
|
|
||||||
|
|
||||||
private BigDecimal lgtd;
|
|
||||||
|
|
||||||
private BigDecimal lttd;
|
|
||||||
}
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.vo;
|
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
public class OsmoticChartDetailVo2 {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 时间
|
|
||||||
*/
|
|
||||||
@Schema(description="时间")
|
|
||||||
private String tm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 库水位
|
|
||||||
*/
|
|
||||||
@Schema(description="库水位")
|
|
||||||
private BigDecimal rz;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 管水位
|
|
||||||
*/
|
|
||||||
@Schema(description="管水位")
|
|
||||||
private BigDecimal value;
|
|
||||||
}
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.vo;
|
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Description:
|
|
||||||
* Created by wanyan on 2024/7/9
|
|
||||||
*
|
|
||||||
* @author wanyan
|
|
||||||
* @version 1.0
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
public class OsmoticPressDetailVo {
|
|
||||||
|
|
||||||
|
|
||||||
@Schema(description="监测时间")
|
|
||||||
private String tm;
|
|
||||||
|
|
||||||
@Schema(description="监测值")
|
|
||||||
private BigDecimal value;
|
|
||||||
|
|
||||||
@Schema(description="库水位")
|
|
||||||
private BigDecimal rz;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,63 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.vo;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
public class OsmoticShiftListVo2 {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测点编号
|
|
||||||
*/
|
|
||||||
@Schema(description="测点编号")
|
|
||||||
private String cd;
|
|
||||||
|
|
||||||
private String cdNm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 时间
|
|
||||||
*/
|
|
||||||
@Schema(description="时间")
|
|
||||||
private String tm;
|
|
||||||
|
|
||||||
@Schema(description = "监测时间是否离当前时间超过2天(0否 1是)")
|
|
||||||
private Integer flag = 0;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* x方向
|
|
||||||
*/
|
|
||||||
@Schema(description="x方向")
|
|
||||||
private BigDecimal de;
|
|
||||||
|
|
||||||
@Schema(description = "x方向是否超过预警(0否 1是)")
|
|
||||||
private Integer xStatus = 0;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* y方向
|
|
||||||
*/
|
|
||||||
@Schema(description="y方向")
|
|
||||||
private BigDecimal dn;
|
|
||||||
|
|
||||||
@Schema(description = "y方向是否超过预警(0否 1是)")
|
|
||||||
private Integer yStatus = 0;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* h方向
|
|
||||||
*/
|
|
||||||
@Schema(description="h方向")
|
|
||||||
private BigDecimal du;
|
|
||||||
|
|
||||||
@Schema(description = "h方向是否超过预警(0否 1是)")
|
|
||||||
private Integer hStatus = 0;
|
|
||||||
|
|
||||||
@JsonIgnore
|
|
||||||
private String direction;
|
|
||||||
|
|
||||||
|
|
||||||
private BigDecimal lttd;
|
|
||||||
|
|
||||||
private BigDecimal lgtd;
|
|
||||||
}
|
|
||||||
|
|
@ -1,50 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.vo;
|
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
public class OsmoticShiftValueVo2 {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 时间
|
|
||||||
*/
|
|
||||||
@Schema(description="时间")
|
|
||||||
private String tm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测点编号
|
|
||||||
*/
|
|
||||||
@Schema(description="测点编号")
|
|
||||||
private String cd;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* x方向
|
|
||||||
*/
|
|
||||||
@Schema(description="e ->x方向")
|
|
||||||
private BigDecimal de;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* y方向
|
|
||||||
*/
|
|
||||||
@Schema(description=" n ->y方向")
|
|
||||||
private BigDecimal dn;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* h方向
|
|
||||||
*/
|
|
||||||
@Schema(description="u ->h方向")
|
|
||||||
private BigDecimal du;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 库水位
|
|
||||||
*/
|
|
||||||
@Schema(description="库水位")
|
|
||||||
private BigDecimal rz;
|
|
||||||
|
|
||||||
|
|
||||||
@Schema(description = "是否人工")
|
|
||||||
private Integer isArtificial;
|
|
||||||
}
|
|
||||||
|
|
@ -1,36 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.vo;
|
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
public class OsmoticValueVo2 {
|
|
||||||
/**
|
|
||||||
* 时间
|
|
||||||
*/
|
|
||||||
@Schema(description="时间")
|
|
||||||
private String tm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 测点编号
|
|
||||||
*/
|
|
||||||
@Schema(description="测点编号")
|
|
||||||
private String stationCode;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 管水位
|
|
||||||
*/
|
|
||||||
@Schema(description="管水位")
|
|
||||||
private BigDecimal value;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 库水位
|
|
||||||
*/
|
|
||||||
@Schema(description="库水位")
|
|
||||||
private BigDecimal rz;
|
|
||||||
|
|
||||||
@Schema(description = "结果分析(0异常 1正常)")
|
|
||||||
private Integer status = 1;
|
|
||||||
}
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.model.vo;
|
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 水库水情
|
|
||||||
* Created by wanyan on 2024/2/20
|
|
||||||
*
|
|
||||||
* @author wanyan
|
|
||||||
* @version 1.0
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
public class StRzVo {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 时间
|
|
||||||
*/
|
|
||||||
@Schema(description="时间")
|
|
||||||
private String tm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 库水位
|
|
||||||
*/
|
|
||||||
@Schema(description="库水位")
|
|
||||||
private BigDecimal rz;
|
|
||||||
}
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.util;
|
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
import java.time.ZoneId;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author lyf
|
|
||||||
* @since 2025-11-06
|
|
||||||
*/
|
|
||||||
public class LocalDateTimeConverter {
|
|
||||||
public static Date toDate(LocalDateTime localDateTime) {
|
|
||||||
return Date.from(localDateTime.atZone(ZoneId.systemDefault()).toInstant());
|
|
||||||
}
|
|
||||||
|
|
||||||
public static LocalDateTime fromDate(Date date) {
|
|
||||||
return LocalDateTime.ofInstant(date.toInstant(), ZoneId.systemDefault());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.validate.markers;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 类描述
|
|
||||||
*
|
|
||||||
* @author lyf
|
|
||||||
* @version 1.0.0
|
|
||||||
* @since 2024-01-23
|
|
||||||
*/
|
|
||||||
public interface Delete {
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.validate.markers;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 类描述
|
|
||||||
*
|
|
||||||
* @author lyf
|
|
||||||
* @version 1.0.0
|
|
||||||
* @since 2024-01-23
|
|
||||||
*/
|
|
||||||
public interface Insert {
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.validate.markers;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 类描述
|
|
||||||
*
|
|
||||||
* @author lyf
|
|
||||||
* @version 1.0.0
|
|
||||||
* @since 2024-01-23
|
|
||||||
*/
|
|
||||||
public interface Query {
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.validate.markers;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 类描述
|
|
||||||
*
|
|
||||||
* @author lyf
|
|
||||||
* @version 1.0.0
|
|
||||||
* @since 2024-01-24
|
|
||||||
*/
|
|
||||||
public interface QueryPage {
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.validate.markers;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 类描述
|
|
||||||
*
|
|
||||||
* @author lyf
|
|
||||||
* @version 1.0.0
|
|
||||||
* @since 2024-01-24
|
|
||||||
*/
|
|
||||||
public interface QueryTimeRange {
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
package com.gunshi.project.hsz.common.validate.markers;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 类描述
|
|
||||||
*
|
|
||||||
* @author lyf
|
|
||||||
* @version 1.0.0
|
|
||||||
* @since 2024-01-23
|
|
||||||
*/
|
|
||||||
public interface Update {
|
|
||||||
}
|
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
package com.gunshi.project.ss.common.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.gunshi.project.ss.common.model.JcskByB;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@DS("tsg")
|
||||||
|
@Mapper
|
||||||
|
public interface JcskByBMapper extends BaseMapper<JcskByB> {
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.gunshi.project.ss.common.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.gunshi.project.ss.common.model.JcskByR;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@DS("tsg")
|
||||||
|
@Mapper
|
||||||
|
public interface JcskByRMapper extends BaseMapper<JcskByR> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.gunshi.project.ss.common.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.gunshi.project.ss.common.model.vo.HomeJcskGnssBVo;
|
||||||
|
import com.gunshi.project.ss.common.model.JcskGnssB;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@DS("tsg")
|
||||||
|
@Mapper
|
||||||
|
public interface JcskGnssBMapper extends BaseMapper<JcskGnssB> {
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
SELECT st.*,r.de as x,r.dn as y,r.du as h,r.tm FROM jcsk_gnss_b st
|
||||||
|
LEFT JOIN (SELECT cd ,MAX(tm) tm FROM jcsk_gnss_r GROUP BY cd) maxr ON st.cd = maxr.cd
|
||||||
|
LEFT JOIN jcsk_gnss_r r ON maxr.cd = r.cd AND maxr.tm = r.tm
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<HomeJcskGnssBVo> getDetailsAndMonitoringDataList();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
SELECT st.*,r.de as x,r.dn as y,r.du as h,r.tm FROM jcsk_gnss_b st
|
||||||
|
LEFT JOIN (SELECT cd ,MAX(tm) tm FROM jcsk_gnss_r GROUP BY cd) maxr ON st.cd = maxr.cd
|
||||||
|
LEFT JOIN jcsk_gnss_r r ON maxr.cd = r.cd AND maxr.tm = r.tm
|
||||||
|
WHERE st.cd = #{id}
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
HomeJcskGnssBVo getDetailsById(String id);
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
select ch from jcsk_gnss_b where ch is not null
|
||||||
|
group by ch
|
||||||
|
""")
|
||||||
|
List<String> listDms();
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
select ch from jcsk_gnss_b group by ch
|
||||||
|
""")
|
||||||
|
List<String> selectCH();
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
select cd from jcsk_gnss_b where ch = #{ch}
|
||||||
|
""")
|
||||||
|
List<String> selectCDbyCh(@Param("ch") String ch);
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
select * from jcsk_gnss_b where ch is null order by cd asc
|
||||||
|
""")
|
||||||
|
List<JcskGnssB> selectArtificial();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,233 @@
|
||||||
|
package com.gunshi.project.ss.common.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.gunshi.project.ss.common.model.so.JcskGnssRPageSo;
|
||||||
|
import com.gunshi.project.ss.common.model.so.OsmoticDetailQuerySo;
|
||||||
|
import com.gunshi.project.ss.common.model.so.OsmoticQuerySo;
|
||||||
|
import com.gunshi.project.ss.common.model.vo.JcskGnessListVo;
|
||||||
|
import com.gunshi.project.ss.common.model.vo.JcskGnssRHisVo;
|
||||||
|
import com.gunshi.project.ss.common.model.vo.OsmoticShiftListVo2;
|
||||||
|
import com.gunshi.project.ss.common.model.vo.OsmoticShiftValueVo2;
|
||||||
|
import com.gunshi.project.ss.common.model.JcskGnssR;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@DS("tsg")
|
||||||
|
@Mapper
|
||||||
|
public interface JcskGnssRMapper extends BaseMapper<JcskGnssR> {
|
||||||
|
|
||||||
|
// @Select("""
|
||||||
|
// <script>
|
||||||
|
// SELECT st.cd,r.de,r.dn,r.du,to_char(r.tm,'YYYY-MM-DD HH24:MI:SS') as tm FROM jcsk_gnss_r st
|
||||||
|
// LEFT JOIN (SELECT cd,MAX(tm) tm FROM jcsk_gnss_r GROUP BY cd) maxr ON st.cd = maxr.cd
|
||||||
|
// LEFT JOIN jcsk_gnss_r r ON maxr.cd = r.cd AND maxr.tm = r.tm
|
||||||
|
// ORDER BY st.cd asc,r.tm desc
|
||||||
|
// </script>
|
||||||
|
// """)
|
||||||
|
// List<JcskGnessListVo> listValue();
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select
|
||||||
|
t1.cd,
|
||||||
|
t1.ch,
|
||||||
|
t1.cd_nm as cdnm,
|
||||||
|
t2.de,
|
||||||
|
t2.dn,
|
||||||
|
t2.du,
|
||||||
|
to_char(t2.tm,'YYYY-MM-DD HH24:MI:SS') as tm
|
||||||
|
from jcsk_gnss_b t1
|
||||||
|
join (
|
||||||
|
select t2.*
|
||||||
|
from jcsk_gnss_r t2
|
||||||
|
join (
|
||||||
|
select cd, MAX(tm) as tm
|
||||||
|
from jcsk_gnss_r
|
||||||
|
GROUP BY cd
|
||||||
|
) maxr on t2.cd = maxr.cd and t2.tm = maxr.tm
|
||||||
|
) t2 on t1.cd = t2.cd
|
||||||
|
ORDER BY t1.cd asc, t2.tm desc;
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<JcskGnessListVo> listValue();
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select t.station_code as cd,to_char(t.tm,'YYYY-MM-DD HH24:MI:SS') as tm,s.direction
|
||||||
|
from public.osmotic_warn_r t
|
||||||
|
left join public.osmotic_warn_rule s on t.rule_id = s.id
|
||||||
|
where t.station_code in
|
||||||
|
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
||||||
|
#{code}
|
||||||
|
</foreach>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
||||||
|
and t.tm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
||||||
|
</if>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
||||||
|
and t.tm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
||||||
|
</if>
|
||||||
|
order by t.tm desc
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<OsmoticShiftListVo2> queryWarn(@Param("obj") OsmoticQuerySo so);
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select t.cd,t.tm as tm,t.de ,t.dn ,t.du,t.res_cd,t.alt
|
||||||
|
from public.jcsk_gnss_r t
|
||||||
|
where t.cd in
|
||||||
|
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
||||||
|
#{code}
|
||||||
|
</foreach>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
||||||
|
and t.tm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
||||||
|
</if>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
||||||
|
and t.tm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
||||||
|
</if>
|
||||||
|
order by t.tm desc
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<OsmoticShiftValueVo2> queryValue(@Param("obj") OsmoticQuerySo osmoticQuerySo);
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select t.cd,t.tm as tm,t.de ,t.dn ,t.du,t.res_cd,t.alt
|
||||||
|
from public.jcsk_gnss_r_8am t
|
||||||
|
where t.cd in
|
||||||
|
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
||||||
|
#{code}
|
||||||
|
</foreach>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
||||||
|
and t.tm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
||||||
|
</if>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
||||||
|
and t.tm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
||||||
|
</if>
|
||||||
|
order by t.tm desc
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<OsmoticShiftValueVo2> queryReorganizeValue(@Param("obj") OsmoticQuerySo osmoticQuerySo);
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select to_char(t.tm,'YYYY-MM-DD HH24:MI:SS') as tm,t.de,t.dn ,t.du,t.is_artificial as isArtificial from public.jcsk_gnss_r t
|
||||||
|
where t.cd = #{obj.stationCode}
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
||||||
|
and t.tm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
||||||
|
</if>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
||||||
|
and t.tm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
||||||
|
</if>
|
||||||
|
order by t.tm desc
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<OsmoticShiftValueVo2> detailValue(@Param("obj") OsmoticDetailQuerySo so);
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
WITH daily_data AS (
|
||||||
|
SELECT
|
||||||
|
t2.cd,
|
||||||
|
t1.ch,
|
||||||
|
t1.cd_nm,
|
||||||
|
t2.de,
|
||||||
|
t2.dn,
|
||||||
|
t2.du,
|
||||||
|
t2.alt,
|
||||||
|
t2.tm,
|
||||||
|
t2.update_tm,
|
||||||
|
ROW_NUMBER() OVER (PARTITION BY t2.cd, t1.ch, DATE(t2.tm) ORDER BY t2.tm DESC) as rn
|
||||||
|
FROM jcsk_gnss_b t1
|
||||||
|
JOIN jcsk_gnss_r t2 ON t1.cd = t2.cd
|
||||||
|
WHERE 1=1
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
||||||
|
AND t2.tm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
||||||
|
</if>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
||||||
|
AND t2.tm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
||||||
|
</if>
|
||||||
|
<if test="obj.cd != null and obj.cd != ''">
|
||||||
|
AND t2.cd = #{obj.cd}
|
||||||
|
</if>
|
||||||
|
<if test="obj.ch != null and obj.ch != ''">
|
||||||
|
AND t1.ch = #{obj.ch}
|
||||||
|
</if>
|
||||||
|
<if test= "obj.isArtificial != null">
|
||||||
|
AND t2.is_artificial = #{obj.isArtificial}
|
||||||
|
</if>
|
||||||
|
)
|
||||||
|
SELECT
|
||||||
|
cd,
|
||||||
|
ch,
|
||||||
|
cd_nm as cdnm,
|
||||||
|
de,
|
||||||
|
dn,
|
||||||
|
du,
|
||||||
|
alt,
|
||||||
|
tm as tm,
|
||||||
|
update_tm
|
||||||
|
FROM daily_data
|
||||||
|
WHERE rn = 1
|
||||||
|
ORDER BY DATE(tm) DESC, tm DESC, cd DESC
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
Page<JcskGnssR> pageQuery(Page<Object> page, @Param("obj") JcskGnssRPageSo page1);
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select t1.ch,t2.* from
|
||||||
|
jcsk_gnss_b t1
|
||||||
|
left join jcsk_gnss_r t2
|
||||||
|
on t1.cd = t2.cd
|
||||||
|
where 1=1
|
||||||
|
<if test="dto.cd != null and dto.cd != ''">
|
||||||
|
AND t1.cd = #{dto.cd}
|
||||||
|
</if>
|
||||||
|
<if test="dto.ch != null and dto.ch != ''">
|
||||||
|
AND t1.ch = #{dto.ch}
|
||||||
|
</if>
|
||||||
|
<if test="dto.dateTimeRangeSo != null">
|
||||||
|
<![CDATA[
|
||||||
|
AND t2.tm >= #{dto.dateTimeRangeSo.start}
|
||||||
|
AND t2.tm <= #{dto.dateTimeRangeSo.end}
|
||||||
|
]]>
|
||||||
|
</if>
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
Page<JcskGnssRHisVo> historyPage(Page<Object> page, @Param("dto") JcskGnssRPageSo page1);
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select t1.ch,t2.* from
|
||||||
|
jcsk_gnss_b t1
|
||||||
|
left join jcsk_gnss_r t2
|
||||||
|
on t1.cd = t2.cd
|
||||||
|
where t2.is_artificial = 1
|
||||||
|
<if test="dto.cd != null and dto.cd != ''">
|
||||||
|
AND t1.cd = #{dto.cd}
|
||||||
|
</if>
|
||||||
|
<if test="dto.ch != null and dto.ch != ''">
|
||||||
|
AND t1.ch = #{dto.ch}
|
||||||
|
</if>
|
||||||
|
<if test="dto.dateTimeRangeSo != null">
|
||||||
|
<![CDATA[
|
||||||
|
AND t2.tm >= #{dto.dateTimeRangeSo.start}
|
||||||
|
AND t2.tm <= #{dto.dateTimeRangeSo.end}
|
||||||
|
]]>
|
||||||
|
</if>
|
||||||
|
order by t2.tm desc
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
Page<JcskGnssR> artificialPage(Page<Object> page,@Param("dto") JcskGnssRPageSo page1);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,163 @@
|
||||||
|
package com.gunshi.project.ss.common.mapper;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.gunshi.project.ss.common.model.so.OsmoticDetailQuerySo;
|
||||||
|
import com.gunshi.project.ss.common.model.so.OsmoticQuerySo;
|
||||||
|
import com.gunshi.project.ss.common.model.vo.HomeJcskSlBVo;
|
||||||
|
import com.gunshi.project.ss.common.model.vo.JcskSyRVo;
|
||||||
|
import com.gunshi.project.ss.common.model.vo.OsmoticPressDetailVo;
|
||||||
|
import com.gunshi.project.ss.common.model.vo.OsmoticValueVo2;
|
||||||
|
import com.gunshi.project.ss.common.model.JcskSlB;
|
||||||
|
import com.gunshi.project.ss.common.model.JcskSlR;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@DS("tsg")
|
||||||
|
@Mapper
|
||||||
|
public interface JcskSlBMapper extends BaseMapper<JcskSlB> {
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
SELECT st.*,r.spqn as q,r.mstm as tm FROM jcsk_sl_b st
|
||||||
|
LEFT JOIN (SELECT mpcd,MAX(mstm) tm FROM jcsk_sl_r GROUP BY mpcd) maxr ON st.mpcd = maxr.mpcd
|
||||||
|
LEFT JOIN jcsk_sl_r r ON maxr.mpcd = r.mpcd AND maxr.tm = r.mstm
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<HomeJcskSlBVo> getDetailsAndMonitoringDataList();
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
SELECT st.*,r.spqn as q,r.mstm as tm FROM jcsk_sl_b st
|
||||||
|
LEFT JOIN (SELECT mpcd,MAX(mstm) tm FROM jcsk_sl_r GROUP BY mpcd) maxr ON st.mpcd = maxr.mpcd
|
||||||
|
LEFT JOIN jcsk_sl_r r ON maxr.mpcd = r.mpcd AND maxr.tm = r.mstm
|
||||||
|
where st.mpcd = #{id}
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
HomeJcskSlBVo getDetailsById(String id);
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
select dvcd from jcsk_sl_b where dm = #{dm}
|
||||||
|
""")
|
||||||
|
List<String> getDvcdByProfileCode(@Param("dm") String profileCode);
|
||||||
|
|
||||||
|
|
||||||
|
@Select(
|
||||||
|
"""
|
||||||
|
<script>
|
||||||
|
SELECT station_code, value, tm,lgtd,lttd
|
||||||
|
FROM (
|
||||||
|
SELECT
|
||||||
|
st.dvcd as station_code,
|
||||||
|
r.spqn as value,
|
||||||
|
to_char(r.mstm,'YYYY-MM-DD HH24:MI:SS') as tm,
|
||||||
|
st.lgtd,
|
||||||
|
st.lttd,
|
||||||
|
ROW_NUMBER() OVER (PARTITION BY st.mpcd ORDER BY r.mstm DESC) as rn
|
||||||
|
FROM jcsk_sl_b st
|
||||||
|
LEFT JOIN jcsk_sl_r r ON st.mpcd = r.mpcd
|
||||||
|
) t
|
||||||
|
WHERE rn = 1
|
||||||
|
ORDER BY station_code asc;
|
||||||
|
</script>
|
||||||
|
"""
|
||||||
|
)
|
||||||
|
List<JcskSyRVo> listValue();
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select t1.dvcd as stationCode,t2.mstm as tm,t2.spqn as value
|
||||||
|
from public.jcsk_sl_b t1
|
||||||
|
left join public.jcsk_sl_r t2
|
||||||
|
on t1.mpcd = t2.mpcd
|
||||||
|
where t1.dvcd in
|
||||||
|
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
||||||
|
#{code}
|
||||||
|
</foreach>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
||||||
|
and t2.mstm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
||||||
|
</if>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
||||||
|
and t2.mstm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
||||||
|
</if>
|
||||||
|
order by t2.mstm desc
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<OsmoticValueVo2> queryValue(@Param("obj") OsmoticQuerySo osmoticQuerySo);
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select t2.*
|
||||||
|
from public.jcsk_sl_b t1
|
||||||
|
join public.jcsk_sl_r t2
|
||||||
|
on t1.mpcd = t2.mpcd
|
||||||
|
where t1.dvcd in
|
||||||
|
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
||||||
|
#{code}
|
||||||
|
</foreach>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
||||||
|
and t2.mstm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
||||||
|
</if>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
||||||
|
and t2.mstm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
||||||
|
</if>
|
||||||
|
order by t2.mstm desc
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<JcskSlR> syncqueryValue(@Param("obj") OsmoticQuerySo osmoticQuerySo);
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select t1.dvcd as stationCode,t2.mstm as tm,t2.spqn as value
|
||||||
|
from public.jcsk_sl_b t1
|
||||||
|
left join public.jcsk_sl_r_8am t2
|
||||||
|
on t1.mpcd = t2.mpcd
|
||||||
|
where t1.dvcd in
|
||||||
|
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
||||||
|
#{code}
|
||||||
|
</foreach>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
||||||
|
and t2.mstm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
||||||
|
</if>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
||||||
|
and t2.mstm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
||||||
|
</if>
|
||||||
|
order by t2.mstm desc
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<OsmoticValueVo2> query8AmValue(@Param("obj") OsmoticQuerySo osmoticQuerySo);
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select to_char(t.mstm,'YYYY-MM-DD HH24:MI:SS') as tm,
|
||||||
|
t.spqn as value from public.jcsk_sl_b t2
|
||||||
|
left join
|
||||||
|
public.jcsk_sl_r t on t2.mpcd = t.mpcd
|
||||||
|
where t2.dvcd = #{obj.stationCode}
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
||||||
|
and t.mstm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
||||||
|
</if>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
||||||
|
and t.mstm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
||||||
|
</if>
|
||||||
|
order by t.mstm desc
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<OsmoticPressDetailVo> detailValue(@Param("obj") OsmoticDetailQuerySo so);
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select dvcd from jcsk_sl_b where mpcd = #{mpcd} limit 1
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
String selectDvcdByStcdAndMpcd(@Param("mpcd") String mpcd);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,84 @@
|
||||||
|
package com.gunshi.project.ss.common.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.gunshi.project.ss.common.model.so.JcskSlRPageSo;
|
||||||
|
import com.gunshi.project.ss.common.model.vo.JcskSlRHisVo;
|
||||||
|
import com.gunshi.project.ss.common.model.JcskSlR;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
|
@DS("tsg")
|
||||||
|
@Mapper
|
||||||
|
public interface JcskSlRMapper extends BaseMapper<JcskSlR> {
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
<![CDATA[
|
||||||
|
WITH ranked_data AS (
|
||||||
|
SELECT
|
||||||
|
t1.*,
|
||||||
|
t2.dm,
|
||||||
|
t3.profile_name as dmName,
|
||||||
|
t2.dvcd,
|
||||||
|
ROW_NUMBER() OVER (PARTITION BY t1.mpcd, DATE_TRUNC('day', t1.mstm) ORDER BY t1.mstm DESC) as rn
|
||||||
|
FROM jcsk_sl_r t1
|
||||||
|
JOIN jcsk_sl_b t2 ON t1.mpcd = t2.mpcd
|
||||||
|
LEFT JOIN att_dam_profile t3 ON t2.dm = t3.profile_code
|
||||||
|
WHERE 1=1
|
||||||
|
]]>
|
||||||
|
<if test="dto.dvcd != null and dto.dvcd != ''">
|
||||||
|
AND t2.dvcd = #{dto.dvcd}
|
||||||
|
</if>
|
||||||
|
<if test="dto.dm != null and dto.dm != ''">
|
||||||
|
AND t2.dm = #{dto.dm}
|
||||||
|
</if>
|
||||||
|
<if test="dto.dateTimeRangeSo != null">
|
||||||
|
<![CDATA[
|
||||||
|
AND t1.mstm >= #{dto.dateTimeRangeSo.start}
|
||||||
|
AND t1.mstm <= #{dto.dateTimeRangeSo.end}
|
||||||
|
]]>
|
||||||
|
</if>
|
||||||
|
)
|
||||||
|
SELECT *
|
||||||
|
FROM ranked_data
|
||||||
|
WHERE rn = 1
|
||||||
|
ORDER BY mstm DESC
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
Page<JcskSlR> pageQuery(Page<Object> page, @Param("dto") JcskSlRPageSo page1);
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
<![CDATA[
|
||||||
|
select t2.*,
|
||||||
|
t1.dm,
|
||||||
|
t3.profile_name as dmName,
|
||||||
|
t1.dvcd
|
||||||
|
from jcsk_sl_b t1
|
||||||
|
left join jcsk_sl_r t2 on t1.mpcd = t2.mpcd
|
||||||
|
left join att_dam_profile t3 on t1.dm = t3.profile_code
|
||||||
|
where 1=1
|
||||||
|
]]>
|
||||||
|
<if test="dto.dvcd != null and dto.dvcd != ''">
|
||||||
|
AND t1.dvcd = #{dto.dvcd}
|
||||||
|
</if>
|
||||||
|
<if test="dto.dm != null and dto.dm != ''">
|
||||||
|
AND t1.dm = #{dto.dm}
|
||||||
|
</if>
|
||||||
|
<if test="dto.dateTimeRangeSo != null">
|
||||||
|
<![CDATA[
|
||||||
|
AND t2.mstm >= #{dto.dateTimeRangeSo.start}
|
||||||
|
AND t2.mstm <= #{dto.dateTimeRangeSo.end}
|
||||||
|
]]>
|
||||||
|
</if>
|
||||||
|
order by t2.mstm desc
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
Page<JcskSlRHisVo> historyPage(Page<Object> page, JcskSlRPageSo page1);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,67 @@
|
||||||
|
package com.gunshi.project.ss.common.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.gunshi.project.ss.common.model.JcskSyB;
|
||||||
|
import com.gunshi.project.ss.common.model.vo.HomeJcskSYBVo;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@DS("tsg")
|
||||||
|
@Mapper
|
||||||
|
public interface JcskSyBMapper extends BaseMapper<JcskSyB> {
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
SELECT st.*, r.spprwl as value, r.mstm
|
||||||
|
FROM jcsk_sy_b st
|
||||||
|
LEFT JOIN (
|
||||||
|
SELECT mpcd, MAX(mstm) as max_mstm
|
||||||
|
FROM jcsk_sy_r
|
||||||
|
GROUP BY mpcd) maxr ON st.mpcd = maxr.mpcd
|
||||||
|
LEFT JOIN jcsk_sy_r r ON maxr.mpcd = r.mpcd AND maxr.max_mstm = r.mstm
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<HomeJcskSYBVo> getDetailsAndMonitoringDataList();
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
SELECT st.*, r.spprwl as value, r.mstm
|
||||||
|
FROM jcsk_sy_b st
|
||||||
|
LEFT JOIN (
|
||||||
|
SELECT mpcd, MAX(mstm) as tm\s
|
||||||
|
FROM jcsk_sy_r\s
|
||||||
|
GROUP BY mpcd
|
||||||
|
)maxr ON st.mpcd = maxr.mpcd
|
||||||
|
LEFT JOIN jcsk_sy_r r ON maxr.mpcd = r.mpcd AND maxr.tm = r.mstm
|
||||||
|
WHERE st.mpcd = #{id}
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
HomeJcskSYBVo getDetailsById(@Param("id") String id);
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
SELECT dvcd from jcsk_sy_b where dm = #{dm}
|
||||||
|
ORDER BY LENGTH(dvcd) ASC,dvcd ASC;
|
||||||
|
""")
|
||||||
|
List<String> getDvcdByProfileCode(@Param("dm") String profileCode);
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select dvcd from jcsk_sy_b where mpcd = #{mpcd} and stcd =#{stcd}
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
String selectDvcdByStcdAndMpcd(@Param("stcd")String stcd,@Param("mpcd") String mpcd);
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
select DISTINCT(t1.dvcd) from jcsk_sy_b t1
|
||||||
|
""")
|
||||||
|
List<String> selectAllDvcd();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,387 @@
|
||||||
|
package com.gunshi.project.ss.common.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.gunshi.project.ss.common.model.JcskSyB;
|
||||||
|
import com.gunshi.project.ss.common.model.JcskSyR;
|
||||||
|
import com.gunshi.project.ss.common.model.so.OsmoticQuerySo;
|
||||||
|
import com.gunshi.project.ss.common.model.vo.*;
|
||||||
|
import com.gunshi.project.ss.common.model.so.JcskSyRPageSo;
|
||||||
|
import com.gunshi.project.ss.common.model.so.OsmoticDetailQuerySo;
|
||||||
|
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@DS("tsg")
|
||||||
|
@Mapper
|
||||||
|
public interface JcskSyRMapper extends BaseMapper<JcskSyR> {
|
||||||
|
@Select(
|
||||||
|
"""
|
||||||
|
<script>
|
||||||
|
SELECT
|
||||||
|
st.dvcd as station_code,
|
||||||
|
r.spprwl as value,
|
||||||
|
to_char(r.mstm,'YYYY-MM-DD HH24:MI:SS') as tm,
|
||||||
|
m.profile_name,
|
||||||
|
st.lgtd,
|
||||||
|
st.lttd
|
||||||
|
FROM jcsk_sy_b st
|
||||||
|
LEFT JOIN (
|
||||||
|
SELECT mpcd,stcd, MAX(mstm) as max_tm
|
||||||
|
FROM jcsk_sy_r
|
||||||
|
GROUP BY mpcd,stcd
|
||||||
|
) maxr ON st.mpcd = maxr.mpcd and st.stcd = maxr.stcd
|
||||||
|
LEFT JOIN jcsk_sy_r r ON maxr.mpcd = r.mpcd AND maxr.max_tm = r.mstm and maxr.stcd = r.stcd
|
||||||
|
LEFT JOIN att_dam_profile m ON st.dm = m.profile_code
|
||||||
|
ORDER BY m._order ASC;
|
||||||
|
</script>
|
||||||
|
"""
|
||||||
|
)
|
||||||
|
List<JcskSyRVo> listValue();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Select(
|
||||||
|
"""
|
||||||
|
<script>
|
||||||
|
SELECT
|
||||||
|
st.mpcd as station_code,
|
||||||
|
r.spqn as value,
|
||||||
|
to_char(r.mstm,'YYYY-MM-DD HH24:MI:SS') as tm
|
||||||
|
FROM jcsk_sl_b st
|
||||||
|
LEFT JOIN (
|
||||||
|
SELECT mpcd, MAX(mstm) as tm
|
||||||
|
FROM jcsk_sl_r
|
||||||
|
GROUP BY mpcd
|
||||||
|
) maxr ON st.mpcd = maxr.mpcd
|
||||||
|
LEFT JOIN jcsk_sl_r r ON maxr.mpcd = r.mpcd AND maxr.tm = r.mstm
|
||||||
|
ORDER BY st.mpcd asc, r.mstm desc;
|
||||||
|
</script>
|
||||||
|
"""
|
||||||
|
)
|
||||||
|
List<JcskSyRVo> flowListValue();
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select t.station_code as stationCode,to_char(t.tm,'YYYY-MM-DD HH24:MI:SS') as tm
|
||||||
|
from public.osmotic_warn_r t
|
||||||
|
where t.station_code in
|
||||||
|
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
||||||
|
#{code}
|
||||||
|
</foreach>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
||||||
|
and t.tm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
||||||
|
</if>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
||||||
|
and t.tm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
||||||
|
</if>
|
||||||
|
order by t.tm desc
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<OsmoticValueVo2> queryWarn(@Param("obj") OsmoticQuerySo so);
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select to_char(t.mstm,'YYYY-MM-DD HH24:MI:SS') as tm,
|
||||||
|
t.spprwl as value from public.jcsk_sy_b t2
|
||||||
|
left join public.jcsk_sy_r t on t2.stcd = t.stcd and t2.mpcd = t.mpcd
|
||||||
|
where t2.dvcd = #{obj.stationCode}
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
||||||
|
and t.mstm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
||||||
|
</if>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
||||||
|
and t.mstm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
||||||
|
</if>
|
||||||
|
order by t.mstm desc
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<OsmoticPressDetailVo> detailValue(@Param("obj") OsmoticDetailQuerySo so);
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select to_char(t.tm,'YYYY-MM-DD HH24:00:SS') as tm,t.rz
|
||||||
|
from public.st_rsvr_r t
|
||||||
|
where t.stcd = #{stcd} and to_char(t.tm, 'SS') = '00'
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
||||||
|
and t.tm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
||||||
|
</if>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
||||||
|
and t.tm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
||||||
|
</if>
|
||||||
|
order by t.tm desc
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<StRzVo> queryLineRz(@Param("obj") OsmoticQuerySo osmoticQuerySo, @Param("stcd") String stcd);
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select to_char(t.tm,'YYYY-MM-DD') as tm,t.drp as rz
|
||||||
|
from public.st_pptn_r_d t
|
||||||
|
where t.year = #{year} and t.stcd = #{stcd}
|
||||||
|
order by t.tm desc
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<StRzVo> queryDrp(@Param("year") Integer year,@Param("stcd") String stcd);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select to_char(t.tm,'YYYY-MM-DD') as tm,t.rz
|
||||||
|
from public.st_rsvr_r t
|
||||||
|
where to_char(t.tm, 'HH24') = '08' and t.stcd = #{stcd}
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
||||||
|
and t.tm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
||||||
|
</if>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
||||||
|
and t.tm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
||||||
|
</if>
|
||||||
|
order by t.tm desc
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<StRzVo> queryRz(@Param("obj") OsmoticQuerySo osmoticQuerySo,@Param("stcd") String stcd);
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select to_char(t.tm,'YYYY-MM-DD HH:00:ss') as tm,t.rz
|
||||||
|
from public.st_rsvr_r t
|
||||||
|
where to_char(t.tm, 'SS') = '00' and t.stcd = #{stcd}
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
||||||
|
and t.tm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
||||||
|
</if>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
||||||
|
and t.tm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
||||||
|
</if>
|
||||||
|
order by t.tm desc
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<StRzVo> queryRz2(@Param("obj") OsmoticQuerySo osmoticQuerySo,@Param("stcd") String stcd);
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select t1.dvcd as stationCode,t2.mstm as tm,t2.spprwl as value
|
||||||
|
from public.jcsk_sy_b t1 left join public.jcsk_sy_r t2
|
||||||
|
on t1.stcd =t2.stcd and t1.mpcd = t2.mpcd
|
||||||
|
where t1.dvcd in
|
||||||
|
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
||||||
|
#{code}
|
||||||
|
</foreach>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
||||||
|
and t2.mstm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
||||||
|
</if>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
||||||
|
and t2.mstm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
||||||
|
</if>
|
||||||
|
order by t2.mstm desc
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<OsmoticValueVo2> queryValue(@Param("obj") OsmoticQuerySo osmoticQuerySo);
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select t1.dvcd as stationCode,t2.mstm as tm,t2.spprwl as value
|
||||||
|
from public.jcsk_sy_b t1 left join public.jcsk_sy_r_8am t2
|
||||||
|
on t1.stcd =t2.stcd and t1.mpcd = t2.mpcd
|
||||||
|
where t1.dvcd in
|
||||||
|
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
||||||
|
#{code}
|
||||||
|
</foreach>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
||||||
|
and t2.mstm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
||||||
|
</if>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
||||||
|
and t2.mstm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
||||||
|
</if>
|
||||||
|
order by t2.mstm desc
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<OsmoticValueVo2> query8AmValue(@Param("obj") OsmoticQuerySo osmoticQuerySo);
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select t2.*
|
||||||
|
from public.jcsk_sy_b t1
|
||||||
|
join public.jcsk_sy_r t2
|
||||||
|
on t1.stcd =t2.stcd and t1.mpcd = t2.mpcd
|
||||||
|
where t1.dvcd in
|
||||||
|
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
||||||
|
#{code}
|
||||||
|
</foreach>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
||||||
|
and t2.mstm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
||||||
|
</if>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
||||||
|
and t2.mstm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
||||||
|
</if>
|
||||||
|
order by t2.mstm desc
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<JcskSyR> syncqueryValue(@Param("obj") OsmoticQuerySo osmoticQuerySo);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select t1.dvcd as stationCode,to_char(t2.mstm,'YYYY-MM-DD HH24:MI:SS') as tm,t2.spprwl as value
|
||||||
|
from public.jcsk_sy_b t1
|
||||||
|
left join public.jcsk_sy_r t2 on t1.stcd =t2.stcd and t1.mpcd = t2.mpcd
|
||||||
|
where t1.dvcd in
|
||||||
|
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
||||||
|
#{code}
|
||||||
|
</foreach>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
||||||
|
and t2.mstm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
||||||
|
</if>
|
||||||
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
||||||
|
and t2.mstm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
||||||
|
</if>
|
||||||
|
order by t2.mstm desc
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<OsmoticValueVo2> queryLineValue(@Param("obj") OsmoticQuerySo osmoticQuerySo);
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
<![CDATA[
|
||||||
|
WITH ranked_data AS (
|
||||||
|
SELECT
|
||||||
|
t1.*,
|
||||||
|
t2.dm,
|
||||||
|
t3.profile_name as dmName,
|
||||||
|
t2.dvcd,
|
||||||
|
ROW_NUMBER() OVER (PARTITION BY t1.stcd, t1.mpcd, DATE_TRUNC('day', t1.mstm) ORDER BY t1.mstm DESC) as rn
|
||||||
|
FROM jcsk_sy_r t1
|
||||||
|
JOIN jcsk_sy_b t2 ON t1.stcd = t2.stcd AND t1.mpcd = t2.mpcd
|
||||||
|
LEFT JOIN att_dam_profile t3 ON t2.dm = t3.profile_code
|
||||||
|
WHERE 1=1
|
||||||
|
]]>
|
||||||
|
<if test="dto.dvcd != null and dto.dvcd != ''">
|
||||||
|
AND t2.dvcd = #{dto.dvcd}
|
||||||
|
</if>
|
||||||
|
<if test="dto.dm != null and dto.dm != ''">
|
||||||
|
AND t2.dm = #{dto.dm}
|
||||||
|
</if>
|
||||||
|
<if test="dto.dateTimeRangeSo != null">
|
||||||
|
<![CDATA[
|
||||||
|
AND t1.mstm >= #{dto.dateTimeRangeSo.start}
|
||||||
|
AND t1.mstm <= #{dto.dateTimeRangeSo.end}
|
||||||
|
]]>
|
||||||
|
</if>
|
||||||
|
)
|
||||||
|
SELECT *
|
||||||
|
FROM ranked_data
|
||||||
|
WHERE rn = 1
|
||||||
|
ORDER BY mstm DESC
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
Page<JcskSyR> queryPage(Page<Object> page, @Param("dto") JcskSyRPageSo pageSo);
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
select dm from jcsk_sy_b
|
||||||
|
GROUP BY dm
|
||||||
|
""")
|
||||||
|
List<String> listDm();
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
select stcd,mpcd from jcsk_sy_b
|
||||||
|
""")
|
||||||
|
List<JcskSyB> listStcdMpcd();
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
select dvcd from jcsk_sy_b where dm = #{dm}
|
||||||
|
""")
|
||||||
|
List<String> listDvcdByDm(@Param("dm") String dm);
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
<![CDATA[
|
||||||
|
select t2.*,
|
||||||
|
t1.dm,
|
||||||
|
t3.profile_name as dmName,
|
||||||
|
t1.dvcd
|
||||||
|
from jcsk_sy_b t1
|
||||||
|
left join jcsk_sy_r t2 on t1.stcd = t2.stcd and t1.mpcd = t2.mpcd
|
||||||
|
left join att_dam_profile t3 on t1.dm = t3.profile_code
|
||||||
|
where 1=1
|
||||||
|
]]>
|
||||||
|
<if test="dto.dvcd != null and dto.dvcd != ''">
|
||||||
|
AND t1.dvcd = #{dto.dvcd}
|
||||||
|
</if>
|
||||||
|
<if test="dto.dm != null and dto.dm != ''">
|
||||||
|
AND t1.dm = #{dto.dm}
|
||||||
|
</if>
|
||||||
|
<if test="dto.dateTimeRangeSo != null">
|
||||||
|
<![CDATA[
|
||||||
|
AND t2.mstm >= #{dto.dateTimeRangeSo.start}
|
||||||
|
AND t2.mstm <= #{dto.dateTimeRangeSo.end}
|
||||||
|
]]>
|
||||||
|
</if>
|
||||||
|
order by t2.mstm desc
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
Page<JcskSyRHisVo> historyPage(Page<Object> page, @Param("dto") JcskSyRPageSo page1);
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
<![CDATA[
|
||||||
|
select t2.*,
|
||||||
|
t1.dm,
|
||||||
|
t3.profile_name as dmName,
|
||||||
|
t1.dvcd
|
||||||
|
from jcsk_sy_b t1
|
||||||
|
left join jcsk_sy_r t2 on t1.stcd = t2.stcd and t1.mpcd = t2.mpcd
|
||||||
|
left join att_dam_profile t3 on t1.dm = t3.profile_code
|
||||||
|
where t2.is_artificial = 1
|
||||||
|
]]>
|
||||||
|
<if test="dto.dvcd != null and dto.dvcd != ''">
|
||||||
|
AND t1.dvcd = #{dto.dvcd}
|
||||||
|
</if>
|
||||||
|
<if test="dto.dm != null and dto.dm != ''">
|
||||||
|
AND t1.dm = #{dto.dm}
|
||||||
|
</if>
|
||||||
|
<if test="dto.dateTimeRangeSo != null">
|
||||||
|
<![CDATA[
|
||||||
|
AND t2.mstm >= #{dto.dateTimeRangeSo.start}
|
||||||
|
AND t2.mstm <= #{dto.dateTimeRangeSo.end}
|
||||||
|
]]>
|
||||||
|
</if>
|
||||||
|
order by t2.mstm desc
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
Page<JcskSyR> artificialPage(Page<Object> page,@Param("dto") JcskSyRPageSo page1);
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
WITH ranked_data AS (
|
||||||
|
SELECT
|
||||||
|
tm,
|
||||||
|
rz,
|
||||||
|
ABS(EXTRACT(HOUR FROM tm) + EXTRACT(MINUTE FROM tm)/60.0 - 8) as time_diff,
|
||||||
|
ROW_NUMBER() OVER (PARTITION BY DATE(tm) ORDER BY ABS(EXTRACT(HOUR FROM tm) + EXTRACT(MINUTE FROM tm)/60.0 - 8)) as rn
|
||||||
|
FROM st_rsvr_r
|
||||||
|
WHERE stcd = #{stcd}
|
||||||
|
AND tm >= #{dto.dateTimeRangeSo.start}
|
||||||
|
AND tm <= #{dto.dateTimeRangeSo.end}
|
||||||
|
)
|
||||||
|
SELECT
|
||||||
|
TO_CHAR(DATE(tm) + INTERVAL '8 hours', 'YYYY-MM-DD HH24:MI:SS') as tm,
|
||||||
|
rz
|
||||||
|
FROM ranked_data
|
||||||
|
WHERE rn = 1
|
||||||
|
ORDER BY tm
|
||||||
|
""")
|
||||||
|
List<StRzVo> qeury8AmRz(@Param("dto") OsmoticQuerySo dto, @Param("stcd") String stcd);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
package com.gunshi.project.ss.common.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.gunshi.project.ss.common.model.StFlowR;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface StFlowRMapper extends BaseMapper<StFlowR> {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
select t1.sttp,t2.* from
|
||||||
|
st_stbprp_b t1
|
||||||
|
join (SELECT id, stcd, tm, inq, q, otq, crtime
|
||||||
|
FROM (
|
||||||
|
SELECT *,
|
||||||
|
ROW_NUMBER() OVER (PARTITION BY stcd ORDER BY tm DESC) as rn
|
||||||
|
FROM st_flow_r
|
||||||
|
) t
|
||||||
|
WHERE rn = 1) t2 on t1.stcd = t2.stcd
|
||||||
|
""")
|
||||||
|
List<StFlowR> listNewData();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,97 @@
|
||||||
|
package com.gunshi.project.ss.common.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.gunshi.project.ss.common.model.StPptnR;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 描述: 降水量表
|
||||||
|
* author: xusan
|
||||||
|
* date: 2024-07-08 15:44:08
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface StPptnRMapper extends BaseMapper<StPptnR> {
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
with m1 as (
|
||||||
|
select stcd,drp from public.st_pptn_r qxt WHERE
|
||||||
|
tm > #{startTime} and tm <= #{endTime})
|
||||||
|
select SUM(m1.drp) as sumdrp FROM m1
|
||||||
|
GROUP BY m1.stcd
|
||||||
|
HAVING m1.stcd = #{stcd}
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
BigDecimal queryStPptnTimeQuantumByStcdAndTime(@Param("stcd") String stcd, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||||
|
|
||||||
|
List<StPptnR> getStcdLastPptnData();
|
||||||
|
|
||||||
|
List<Map<String, Object>> getPptnRDataList(@Param("stcd") String stcd, @Param("tm") String tm);
|
||||||
|
|
||||||
|
List<Map<String, Object>> getPptnRDataListByTask(@Param("resCode") String resCode, @Param("stcd") String stcd, @Param("tm") String tm);
|
||||||
|
|
||||||
|
List<StPptnR> getStcdFirstPptnData();
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
select DISTINCT ON (r.stcd) r.stcd, r.drp, r.tm
|
||||||
|
from public.st_stbprp_b_elem b
|
||||||
|
join public.st_pptn_r r on b.stcd=r.stcd
|
||||||
|
ORDER BY r.stcd, r.tm DESC
|
||||||
|
""")
|
||||||
|
List<StPptnR> getNewestDataOfEachStcd();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据stcd查询24小时总降水量
|
||||||
|
*/
|
||||||
|
// @Select("""
|
||||||
|
// select SUM(drp) from public.st_pptn_r
|
||||||
|
// where stcd=#{stcd} and tm >= now() - interval '24 hours'
|
||||||
|
// """)
|
||||||
|
@Select("""
|
||||||
|
SELECT SUM(drp)
|
||||||
|
FROM public.st_pptn_r
|
||||||
|
WHERE stcd = #{stcd}
|
||||||
|
AND tm > DATE_TRUNC('day', NOW() - INTERVAL '1 day') + INTERVAL '8 hours'
|
||||||
|
AND tm <= DATE_TRUNC('day', NOW()) + INTERVAL '8 hours'
|
||||||
|
""")
|
||||||
|
BigDecimal getdrp24SumByStcd(String stcd);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据stcd查询24小时内最大降水量
|
||||||
|
*/
|
||||||
|
// @Select("""
|
||||||
|
// SELECT *
|
||||||
|
// FROM public.st_pptn_r
|
||||||
|
// WHERE stcd = #{stcd}
|
||||||
|
// AND drp = (
|
||||||
|
// SELECT MAX(drp)
|
||||||
|
// FROM public.st_pptn_r
|
||||||
|
// WHERE stcd = #{stcd}
|
||||||
|
// AND tm >= NOW() - INTERVAL '24 hours'
|
||||||
|
// )
|
||||||
|
// AND tm >= NOW() - INTERVAL '24 hours'
|
||||||
|
// LIMIT 1
|
||||||
|
// """)
|
||||||
|
@Select("""
|
||||||
|
SELECT *
|
||||||
|
FROM public.st_pptn_r
|
||||||
|
WHERE stcd = #{stcd}
|
||||||
|
AND drp = (
|
||||||
|
SELECT MAX(drp)
|
||||||
|
FROM public.st_pptn_r
|
||||||
|
WHERE stcd = #{stcd}
|
||||||
|
AND tm > DATE_TRUNC('day', NOW() - INTERVAL '1 day') + INTERVAL '8 hours'
|
||||||
|
AND tm <= DATE_TRUNC('day', NOW()) + INTERVAL '8 hours'
|
||||||
|
)
|
||||||
|
AND tm > DATE_TRUNC('day', NOW() - INTERVAL '1 day') + INTERVAL '8 hours'
|
||||||
|
AND tm <= DATE_TRUNC('day', NOW()) + INTERVAL '8 hours'
|
||||||
|
LIMIT 1
|
||||||
|
""")
|
||||||
|
StPptnR getdrp24MaxByStcd(String stcd);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.gunshi.project.ss.common.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.gunshi.project.ss.common.model.StPptnRReal;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 描述: 降水量历史表
|
||||||
|
* author: xusan
|
||||||
|
* date: 2024-07-08 15:44:08
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface StPptnRRealMapper extends BaseMapper<StPptnRReal> {
|
||||||
|
|
||||||
|
int updatePptnRReal(@Param("stcd") String stcd);
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
SELECT t.*,s.stnm FROM public.st_stbprp_b s
|
||||||
|
left join public.st_pptn_r_real t on t.stcd = s.stcd
|
||||||
|
WHERE s.stcd in (select distinct(stcd) from st_stbprp_b_elem where elem ='drp')
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<StPptnRReal> queryList();
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,40 @@
|
||||||
|
package com.gunshi.project.ss.common.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.gunshi.db.dto.DateTimeRangeSo;
|
||||||
|
import com.gunshi.project.ss.common.model.StRiverR;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 描述:
|
||||||
|
* author: cxw
|
||||||
|
* date: 2024-09-24 14:01:07
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface StRiverRMapper extends BaseMapper<StRiverR> {
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select t1.*,t2.stnm,t2.lgtd,t2.lttd from st_river_r t1
|
||||||
|
left join st_stbprp_b t2 on t1.stcd = t2.stcd
|
||||||
|
where 1=1
|
||||||
|
<if test="stcd != null and stcd != ''">
|
||||||
|
and t1.stcd = #{stcd}
|
||||||
|
</if>
|
||||||
|
<if test="obj != null">
|
||||||
|
<if test="obj.start != null">
|
||||||
|
and t1.tm >= #{obj.start}
|
||||||
|
</if>
|
||||||
|
<if test="obj.end != null">
|
||||||
|
and t1.tm <= #{obj.end}
|
||||||
|
</if>
|
||||||
|
</if>
|
||||||
|
order by t1.tm desc
|
||||||
|
limit 1
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
StRiverR queryByOneByTimeRange(@Param("stcd") String stcd, @Param("obj") DateTimeRangeSo dateTimeRangeSo);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,25 @@
|
||||||
|
package com.gunshi.project.ss.common.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.gunshi.project.ss.common.model.StRiverRReal;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 描述:
|
||||||
|
* author: cxw
|
||||||
|
* date: 2024-09-24 14:01:07
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface StRiverRRealMapper extends BaseMapper<StRiverRReal> {
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
select t.*,t2.stnm from st_river_r_real t
|
||||||
|
left join st_stbprp_b t2 on t.stcd = t2.stcd
|
||||||
|
where t.stcd = #{stcd}
|
||||||
|
order by t.tm desc limit 1
|
||||||
|
""")
|
||||||
|
StRiverRReal queryQByStcd(@Param("stcd") String stcd);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,50 @@
|
||||||
|
package com.gunshi.project.ss.common.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.gunshi.project.ss.common.model.StRsvrR;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 描述: 水库历史水位表
|
||||||
|
* author: xusan
|
||||||
|
* date: 2024-07-08 15:44:08
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface StRsvrRMapper extends BaseMapper<StRsvrR> {
|
||||||
|
|
||||||
|
List<StRsvrR> getStcdLastRsvrData();
|
||||||
|
|
||||||
|
List<StRsvrR> getStcdFirstRsvrData();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据stcd获取8点的rz
|
||||||
|
*/
|
||||||
|
@Select("""
|
||||||
|
select rz
|
||||||
|
from public.st_rsvr_r
|
||||||
|
where stcd = '232'
|
||||||
|
and tm <= date_trunc('day', now()) + interval '8 hours'
|
||||||
|
and tm >= now() - interval '24 hours' -- 增加这个条件
|
||||||
|
order by tm desc
|
||||||
|
limit 1
|
||||||
|
""")
|
||||||
|
BigDecimal getRz8ByStcd(String stcd);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据stcd获取昨日8点的rz
|
||||||
|
*/
|
||||||
|
@Select("""
|
||||||
|
select rz
|
||||||
|
from public.st_rsvr_r
|
||||||
|
where stcd = #{stcd}
|
||||||
|
and tm >= date_trunc('day', now() - interval '1 day') + interval '7 hours 50 minutes'
|
||||||
|
and tm <= date_trunc('day', now() - interval '1 day') + interval '8 hours 10 minutes'
|
||||||
|
order by tm desc
|
||||||
|
limit 1
|
||||||
|
""")
|
||||||
|
BigDecimal getRzYesterday8ByStcd(String stcd);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
package com.gunshi.project.ss.common.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.gunshi.project.ss.common.model.StRsvrRReal;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 描述: 水库水位实时数据表
|
||||||
|
* author: xusan
|
||||||
|
* date: 2024-07-08 15:44:08
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface StRsvrRRealMapper extends BaseMapper<StRsvrRReal> {
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
select t2.*,t1.stnm FROM
|
||||||
|
st_stbprp_b t1
|
||||||
|
join st_rsvr_r_real t2
|
||||||
|
on t1.stcd = t2.stcd
|
||||||
|
where t2.stcd = #{stcd}
|
||||||
|
order by t2.tm desc
|
||||||
|
limit 1
|
||||||
|
""")
|
||||||
|
StRsvrRReal queryRzByStcd(@Param("stcd") String stcd);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
package com.gunshi.project.ss.common.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.gunshi.project.ss.common.model.StStbprpBElem;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 描述: 测站监测值类型
|
||||||
|
* author: xusan
|
||||||
|
* date: 2024-07-08 15:44:08
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface StStbprpBElemMapper extends BaseMapper<StStbprpBElem> {
|
||||||
|
@Select("""
|
||||||
|
<script>
|
||||||
|
select b.stcd, e.elem from st_stbprp_b b
|
||||||
|
left join st_stbprp_b_elem e on b.stcd=e.stcd
|
||||||
|
where elem = #{elem}
|
||||||
|
</script>
|
||||||
|
""")
|
||||||
|
List<StStbprpBElem> selectByElem(@Param("elem") String elem);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,35 @@
|
||||||
|
package com.gunshi.project.ss.common.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.gunshi.project.ss.common.model.StStbprpB;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 描述: sttp 以水利标准来
|
||||||
|
* author: xusan
|
||||||
|
* date: 2024-07-08 15:44:08
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface StStbprpBMapper extends BaseMapper<StStbprpB> {
|
||||||
|
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
select * from public.st_stbprp_b b
|
||||||
|
join public.st_stbprp_b_elem e
|
||||||
|
on b.stcd = e.stcd
|
||||||
|
where e.elem='drp'
|
||||||
|
""")
|
||||||
|
List<StStbprpB> getPptnStations();
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
select * from public.st_stbprp_b b
|
||||||
|
join public.st_stbprp_b_elem e
|
||||||
|
on b.stcd =e.stcd
|
||||||
|
where e.elem = 'rz'
|
||||||
|
""")
|
||||||
|
List<StStbprpB> getRsvrStations();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,159 @@
|
||||||
|
package com.gunshi.project.ss.common.model;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import com.gunshi.core.dateformat.DateFormatString;
|
||||||
|
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
||||||
|
import com.gunshi.project.ss.common.validate.markers.Update;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
import jakarta.validation.constraints.Size;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 描述: 巡检任务
|
||||||
|
* author: xusan
|
||||||
|
* date: 2024-08-29 14:21:14
|
||||||
|
*/
|
||||||
|
@Schema(description="巡检任务")
|
||||||
|
@Data
|
||||||
|
@TableName("public.inspect_task")
|
||||||
|
@IgnoreAutoMapperAndDao
|
||||||
|
public class InspectTask implements Serializable {
|
||||||
|
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@TableId(value="id", type= IdType.AUTO)
|
||||||
|
@Schema(description="主键")
|
||||||
|
@NotNull(message = "主键不能为空",groups = {Update.class})
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务类型(1日常巡查 2特别检查 3汛前巡检)
|
||||||
|
*/
|
||||||
|
@TableField(value="task_type")
|
||||||
|
@Schema(description="任务类型(1日常巡查 2特别检查 3汛前巡检)")
|
||||||
|
private Integer taskType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务标题
|
||||||
|
*/
|
||||||
|
@TableField(value="task_title")
|
||||||
|
@Schema(description="任务标题")
|
||||||
|
@Size(max = 100,message = "任务标题最大长度要小于 100")
|
||||||
|
private String taskTitle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 巡查人id
|
||||||
|
*/
|
||||||
|
@TableField(value="inspect_user_id")
|
||||||
|
@Schema(description="巡查人id")
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long inspectUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 巡查人
|
||||||
|
*/
|
||||||
|
@TableField(value="inspect_user_name")
|
||||||
|
@Schema(description="巡查人")
|
||||||
|
@Size(max = 100,message = "巡查人最大长度要小于 100")
|
||||||
|
private String inspectUserName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务内容
|
||||||
|
*/
|
||||||
|
@TableField(value="task_content")
|
||||||
|
@Schema(description="任务内容")
|
||||||
|
@Size(max = 500,message = "任务内容最大长度要小于 500")
|
||||||
|
private String taskContent;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 开始日期
|
||||||
|
*/
|
||||||
|
@TableField(value="start_date")
|
||||||
|
@Schema(description="开始日期")
|
||||||
|
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD, timezone = "GMT+8")
|
||||||
|
private Date startDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结束日期
|
||||||
|
*/
|
||||||
|
@TableField(value="end_date")
|
||||||
|
@Schema(description="结束日期")
|
||||||
|
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD, timezone = "GMT+8")
|
||||||
|
private Date endDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 接收时间
|
||||||
|
*/
|
||||||
|
@TableField(value="receive_time")
|
||||||
|
@Schema(description="接收时间")
|
||||||
|
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
||||||
|
private Date receiveTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 完成时间
|
||||||
|
*/
|
||||||
|
@TableField(value="finish_time")
|
||||||
|
@Schema(description="完成时间")
|
||||||
|
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
||||||
|
private Date finishTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态(0未完成 1进行中 2已完成)
|
||||||
|
*/
|
||||||
|
@TableField(value="status")
|
||||||
|
@Schema(description="状态(0未完成 1进行中 2已完成)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人id
|
||||||
|
*/
|
||||||
|
@TableField(value="create_user_id")
|
||||||
|
@Schema(description="创建人id")
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long createUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人
|
||||||
|
*/
|
||||||
|
@TableField(value="create_user_name")
|
||||||
|
@Schema(description="创建人")
|
||||||
|
@Size(max = 100,message = "创建人最大长度要小于 100")
|
||||||
|
private String createUserName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
@TableField(value="create_time")
|
||||||
|
@Schema(description="创建时间")
|
||||||
|
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
@Schema(description="问题数量")
|
||||||
|
private Integer problemNum = 0;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
@Schema(description="待处理数量")
|
||||||
|
private Integer handleNum = 0;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
@Schema(description="巡检项")
|
||||||
|
private List<InspectTaskDetail> items;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,124 @@
|
||||||
|
package com.gunshi.project.ss.common.model;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import com.gunshi.core.dateformat.DateFormatString;
|
||||||
|
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
||||||
|
import com.gunshi.project.ss.common.validate.markers.Update;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
import jakarta.validation.constraints.Size;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 描述: 巡查信息
|
||||||
|
* author: xusan
|
||||||
|
* date: 2024-08-29 15:21:24
|
||||||
|
*/
|
||||||
|
@Schema(description="巡查信息")
|
||||||
|
@Data
|
||||||
|
@TableName("public.inspect_task_detail")
|
||||||
|
@IgnoreAutoMapperAndDao
|
||||||
|
public class InspectTaskDetail implements Serializable {
|
||||||
|
|
||||||
|
public final static String thisTableName = "InspectTaskDetail";
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@TableId(value="id", type= IdType.AUTO)
|
||||||
|
@Schema(description="主键")
|
||||||
|
@NotNull(message = "主键不能为空",groups = {Update.class})
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务id
|
||||||
|
*/
|
||||||
|
@TableField(value="task_id")
|
||||||
|
@Schema(description="任务id")
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long taskId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 巡查点id
|
||||||
|
*/
|
||||||
|
@TableField(value="point_id")
|
||||||
|
@Schema(description="巡查点id")
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long pointId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 巡查项id
|
||||||
|
*/
|
||||||
|
@TableField(value="item_id")
|
||||||
|
@Schema(description="巡查项id")
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long itemId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否正常(0否 1是)
|
||||||
|
*/
|
||||||
|
@TableField(value="is_normal")
|
||||||
|
@Schema(description="是否正常(0否 1是)")
|
||||||
|
private Integer isNormal;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 巡查问题描述
|
||||||
|
*/
|
||||||
|
@TableField(value="problem_desc")
|
||||||
|
@Schema(description="巡查问题描述")
|
||||||
|
@Size(max = 500,message = "巡查问题描述最大长度要小于 500")
|
||||||
|
private String problemDesc;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否处理(0否 1是)
|
||||||
|
*/
|
||||||
|
@TableField(value="is_handle")
|
||||||
|
@Schema(description="是否处理(0否 1是)")
|
||||||
|
private Integer isHandle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 处理人id
|
||||||
|
*/
|
||||||
|
@TableField(value="handle_user_id")
|
||||||
|
@Schema(description="处理人id")
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long handleUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 处理人
|
||||||
|
*/
|
||||||
|
@TableField(value="handle_user_name")
|
||||||
|
@Schema(description="处理人")
|
||||||
|
@Size(max = 100,message = "处理人最大长度要小于 100")
|
||||||
|
private String handleUserName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 处理描述
|
||||||
|
*/
|
||||||
|
@TableField(value="handle_desc")
|
||||||
|
@Schema(description="处理描述")
|
||||||
|
@Size(max = 500,message = "处理描述最大长度要小于 500")
|
||||||
|
private String handleDesc;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 处理时间
|
||||||
|
*/
|
||||||
|
@TableField(value="handle_time")
|
||||||
|
@Schema(description="处理时间")
|
||||||
|
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
||||||
|
private Date handleTime;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,211 @@
|
||||||
|
package com.gunshi.project.ss.common.model;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 白蚁设备表实体类
|
||||||
|
* 数据源为WaterDevice
|
||||||
|
* 与r表通过device_id关联
|
||||||
|
* @see com.gunshi.project.ss.datasync.entity.jcsk.WaterDevice
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("jcsk_by_b")
|
||||||
|
@IgnoreAutoMapperAndDao
|
||||||
|
public class JcskByB {
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@TableField("id")
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备名称
|
||||||
|
*/
|
||||||
|
@TableField("name")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备编码
|
||||||
|
*/
|
||||||
|
@TableField("code")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 站点接入编码
|
||||||
|
*/
|
||||||
|
@TableField("mn_no")
|
||||||
|
private String mnNo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 厂家id
|
||||||
|
*/
|
||||||
|
@TableField("factory_id")
|
||||||
|
private Integer factoryId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 服务站点id
|
||||||
|
*/
|
||||||
|
@TableField("station_id")
|
||||||
|
private Integer stationId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 服务站点名称
|
||||||
|
*/
|
||||||
|
@TableField("station_name")
|
||||||
|
private String stationName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
@TableField("created_at")
|
||||||
|
private Integer createdAt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人id
|
||||||
|
*/
|
||||||
|
@TableField("created_user")
|
||||||
|
private Integer createdUser;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改时间
|
||||||
|
*/
|
||||||
|
@TableField("updated_at")
|
||||||
|
private Integer updatedAt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改人id
|
||||||
|
*/
|
||||||
|
@TableField("updated_user")
|
||||||
|
private Integer updatedUser;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态
|
||||||
|
*/
|
||||||
|
@TableField("status")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 纬度
|
||||||
|
*/
|
||||||
|
@TableField("lat")
|
||||||
|
private BigDecimal lat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 经度
|
||||||
|
*/
|
||||||
|
@TableField("lon")
|
||||||
|
private BigDecimal lon;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 省份id
|
||||||
|
*/
|
||||||
|
@TableField("province_id")
|
||||||
|
private Long provinceId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 省份名称
|
||||||
|
*/
|
||||||
|
@TableField("province_name")
|
||||||
|
private String provinceName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 城市id
|
||||||
|
*/
|
||||||
|
@TableField("city_id")
|
||||||
|
private Long cityId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 城市名称
|
||||||
|
*/
|
||||||
|
@TableField("city_name")
|
||||||
|
private String cityName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 区域名称
|
||||||
|
*/
|
||||||
|
@TableField("area_name")
|
||||||
|
private String areaName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 区域id
|
||||||
|
*/
|
||||||
|
@TableField("area_id")
|
||||||
|
private Long areaId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备类型
|
||||||
|
*/
|
||||||
|
@TableField("type")
|
||||||
|
private Integer type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备类型详情
|
||||||
|
*/
|
||||||
|
@TableField("send_type")
|
||||||
|
private String sendType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 联系人
|
||||||
|
*/
|
||||||
|
@TableField("contact")
|
||||||
|
private String contact;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 联系电话
|
||||||
|
*/
|
||||||
|
@TableField("telephone")
|
||||||
|
private String telephone;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 流域
|
||||||
|
*/
|
||||||
|
@TableField("river")
|
||||||
|
private String river;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 安装地点
|
||||||
|
*/
|
||||||
|
@TableField("address")
|
||||||
|
private String address;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 产品型号
|
||||||
|
*/
|
||||||
|
@TableField("model")
|
||||||
|
private String model;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备注
|
||||||
|
*/
|
||||||
|
@TableField("remark")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通信方式
|
||||||
|
*/
|
||||||
|
@TableField("communication_type")
|
||||||
|
private Integer communicationType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备图片
|
||||||
|
*/
|
||||||
|
@TableField("image_url")
|
||||||
|
private String imageUrl;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备视频流地址的ip
|
||||||
|
*/
|
||||||
|
@TableField("video_ip")
|
||||||
|
private String videoIp;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备视频id
|
||||||
|
*/
|
||||||
|
@TableField("video_id")
|
||||||
|
private String videoId;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,73 @@
|
||||||
|
package com.gunshi.project.ss.common.model;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备站点关联表实体类
|
||||||
|
* 对应表:jcsk_by_b_d
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("public.jcsk_by_b_d")
|
||||||
|
@IgnoreAutoMapperAndDao
|
||||||
|
public class JcskByBD {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 机箱
|
||||||
|
*/
|
||||||
|
@TableField(value="device_id")
|
||||||
|
@Schema(description="设备编号")
|
||||||
|
private Integer deviceId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 站点编号
|
||||||
|
*/
|
||||||
|
@TableField(value = "\"order\"")
|
||||||
|
@Schema(description = "测点编号")
|
||||||
|
private String order;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 联网方式
|
||||||
|
*/
|
||||||
|
@TableField(value = "inte_type")
|
||||||
|
@Schema(description = "联网方式")
|
||||||
|
private String inteType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 安装位置
|
||||||
|
*/
|
||||||
|
@TableField(value = "fix_place")
|
||||||
|
@Schema(description = "安装位置")
|
||||||
|
private String fixPlace;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 经度
|
||||||
|
*/
|
||||||
|
@TableField(value = "lgtd")
|
||||||
|
@Schema(description = "经度")
|
||||||
|
private BigDecimal lgtd;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备注
|
||||||
|
*/
|
||||||
|
@TableField(value = "remark")
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 纬度
|
||||||
|
*/
|
||||||
|
@TableField(value = "lttd")
|
||||||
|
@Schema(description = "纬度")
|
||||||
|
private BigDecimal lttd;
|
||||||
|
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
@Schema(description = "有无白蚁 1为有 0为无")
|
||||||
|
private Integer status;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,127 @@
|
||||||
|
package com.gunshi.project.ss.common.model;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
||||||
|
import com.gunshi.project.ss.common.model.vo.JcskByRProcessVo;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 白蚁数据表实体类
|
||||||
|
* 数据源为WaterDataTermites
|
||||||
|
* nmNo = JcskByB.
|
||||||
|
* @see com.gunshi.project.ss.datasync.entity.jcsk.WaterDataTermites
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("jcsk_by_r")
|
||||||
|
@IgnoreAutoMapperAndDao
|
||||||
|
public class JcskByR {
|
||||||
|
/**
|
||||||
|
* 设备编码
|
||||||
|
*/
|
||||||
|
@TableField("mn_no")
|
||||||
|
private String mnNo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 白蚁蚁情状态,有白蚁入侵为1
|
||||||
|
*/
|
||||||
|
@TableField("status")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 白蚁设备电量
|
||||||
|
*/
|
||||||
|
@TableField("electricity")
|
||||||
|
private Integer electricity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 白蚁设备安装的点位顺序
|
||||||
|
*/
|
||||||
|
@TableField("\"order\"")
|
||||||
|
private String order;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
@TableField("created_at")
|
||||||
|
private LocalDateTime createdAt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 观测时间
|
||||||
|
*/
|
||||||
|
@TableField("ob_time")
|
||||||
|
private String obTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 观测时间2
|
||||||
|
*/
|
||||||
|
@TableField("ob_date")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
private LocalDateTime obDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键id
|
||||||
|
*/
|
||||||
|
@TableField("id")
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 水库id
|
||||||
|
*/
|
||||||
|
@TableField("station_id")
|
||||||
|
private Integer stationId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 站点名称
|
||||||
|
*/
|
||||||
|
@TableField("station_name")
|
||||||
|
private String stationName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备id
|
||||||
|
*/
|
||||||
|
@TableField("device_id")
|
||||||
|
private Integer deviceId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备名称
|
||||||
|
*/
|
||||||
|
@TableField("device_name")
|
||||||
|
private String deviceName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务状态
|
||||||
|
*/
|
||||||
|
@TableField("task_status")
|
||||||
|
private String taskStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务id
|
||||||
|
*/
|
||||||
|
@TableField("task_id")
|
||||||
|
private String taskId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 接收类型
|
||||||
|
*/
|
||||||
|
@TableField("receive_type")
|
||||||
|
private Short receiveType;
|
||||||
|
|
||||||
|
|
||||||
|
@Schema(description = "是否处理")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Boolean isProcess = false;
|
||||||
|
|
||||||
|
@Schema(description = "是否有巡检任务")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Boolean hasInspectTask = false;
|
||||||
|
|
||||||
|
|
||||||
|
@Schema(description = "工单详情")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private JcskByRProcessVo jcskByRProcessVo;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,69 @@
|
||||||
|
package com.gunshi.project.ss.common.model;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 位移设备表
|
||||||
|
* 数据源为AttWyCdBase
|
||||||
|
* 与r表通过rscd加cd关联
|
||||||
|
* @see com.gunshi.project.ss.datasync.entity.jcsk.AttWyCdBase
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("jcsk_gnss_b")
|
||||||
|
@IgnoreAutoMapperAndDao
|
||||||
|
public class JcskGnssB {
|
||||||
|
/**
|
||||||
|
* 测点编码
|
||||||
|
*/
|
||||||
|
@TableField("cd")
|
||||||
|
private String cd;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 测点名称
|
||||||
|
*/
|
||||||
|
@TableField("cd_nm")
|
||||||
|
private String cdNm;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 桩号
|
||||||
|
*/
|
||||||
|
@TableField("ch")
|
||||||
|
private String ch;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 测点类型(sl/wy/sy)
|
||||||
|
*/
|
||||||
|
@TableField("cd_type")
|
||||||
|
private String cdType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 水库编码
|
||||||
|
*/
|
||||||
|
@TableField("res_cd")
|
||||||
|
private String resCd;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备状态
|
||||||
|
*/
|
||||||
|
@TableField("device_status")
|
||||||
|
private String deviceStatus;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String stationCode;
|
||||||
|
|
||||||
|
@Schema(description = "0 离线 1 在线")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
@TableField("lttd")
|
||||||
|
private BigDecimal lttd;
|
||||||
|
|
||||||
|
@TableField("lgtd")
|
||||||
|
private BigDecimal lgtd;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,94 @@
|
||||||
|
package com.gunshi.project.ss.common.model;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 位移数据表
|
||||||
|
* 数据源为AttMqttCalcData
|
||||||
|
* @see com.gunshi.project.ss.datasync.entity.jcsk.AttMqttCalcData
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("jcsk_gnss_r")
|
||||||
|
@IgnoreAutoMapperAndDao
|
||||||
|
public class JcskGnssR {
|
||||||
|
/**
|
||||||
|
* 水库编码设备编码
|
||||||
|
*/
|
||||||
|
@TableField("res_cd")
|
||||||
|
private String resCd;
|
||||||
|
|
||||||
|
|
||||||
|
@TableField("is_artificial")
|
||||||
|
private Integer isArtificial;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 测点编码
|
||||||
|
*/
|
||||||
|
@TableField("cd")
|
||||||
|
private String cd;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* e方向变形值,单位(mm)
|
||||||
|
*/
|
||||||
|
@TableField("de")
|
||||||
|
private BigDecimal de;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* n方向变形值,单位(mm)
|
||||||
|
*/
|
||||||
|
@TableField("dn")
|
||||||
|
private BigDecimal dn;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* u方向变形值,单位(mm)
|
||||||
|
*/
|
||||||
|
@TableField("du")
|
||||||
|
private BigDecimal du;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 站点高程
|
||||||
|
*/
|
||||||
|
@TableField("alt")
|
||||||
|
private BigDecimal alt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 监测时间
|
||||||
|
*/
|
||||||
|
@TableField("tm")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
private LocalDateTime tm;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
@TableField("update_tm")
|
||||||
|
private LocalDateTime updateTm;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 人工录入时间,用于执行更新时用
|
||||||
|
*/
|
||||||
|
@TableField(exist = false)
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
private LocalDateTime newUpdateTm;
|
||||||
|
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String ch;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String cdnm;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 人工录入cd,用于执行更新时用
|
||||||
|
*/
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String newUpdateCd;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,116 @@
|
||||||
|
package com.gunshi.project.ss.common.model;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 渗流测点表实体类
|
||||||
|
* 数据源为DsmSpgSpqnmp
|
||||||
|
* 与r表通过rscd,stcd,mpcd关联
|
||||||
|
* @see com.gunshi.project.ss.datasync.entity.jcsk.DsmSpgSpqnmp
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("jcsk_sl_b")
|
||||||
|
@IgnoreAutoMapperAndDao
|
||||||
|
public class JcskSlB {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 水库代码
|
||||||
|
*/
|
||||||
|
@TableField("rscd")
|
||||||
|
private String rscd;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 水工建筑物编号
|
||||||
|
*/
|
||||||
|
@TableField("hycncd")
|
||||||
|
private String hycncd;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 测点编号
|
||||||
|
*/
|
||||||
|
@TableField("mpcd")
|
||||||
|
private String mpcd;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* rtu编号
|
||||||
|
*/
|
||||||
|
@TableField("stcd")
|
||||||
|
private String stcd;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 桩号
|
||||||
|
*/
|
||||||
|
@TableField("ch")
|
||||||
|
private String ch;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 轴距,单位m
|
||||||
|
*/
|
||||||
|
@TableField("ofax")
|
||||||
|
private BigDecimal ofax;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 高程,单位m
|
||||||
|
*/
|
||||||
|
@TableField("el")
|
||||||
|
private BigDecimal el;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 安装日期
|
||||||
|
*/
|
||||||
|
@TableField("indt")
|
||||||
|
private LocalDate indt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 仪器编号
|
||||||
|
*/
|
||||||
|
@TableField("dvcd")
|
||||||
|
private String dvcd;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 经度
|
||||||
|
*/
|
||||||
|
@TableField("lgtd")
|
||||||
|
private BigDecimal lgtd;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 纬度
|
||||||
|
*/
|
||||||
|
@TableField("lttd")
|
||||||
|
private BigDecimal lttd;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备注
|
||||||
|
*/
|
||||||
|
@TableField("rm")
|
||||||
|
private String rm;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 资料更新时间
|
||||||
|
*/
|
||||||
|
@TableField("dtuptm")
|
||||||
|
private LocalDateTime dtuptm;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 断面
|
||||||
|
*/
|
||||||
|
@TableField("dm")
|
||||||
|
private String dm;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否填报
|
||||||
|
*/
|
||||||
|
@TableField("is_tb")
|
||||||
|
private String isTb;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String stationCode;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,70 @@
|
||||||
|
package com.gunshi.project.ss.common.model;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.gunshi.db.annotation.IgnoreAutoMapperAndDao;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 渗流数据表实体类
|
||||||
|
* 数据源为DsmSpgSpqnNormal
|
||||||
|
* @see com.gunshi.project.ss.datasync.entity.jcsk.DsmSpgSpqn
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("jcsk_sl_r")
|
||||||
|
@IgnoreAutoMapperAndDao
|
||||||
|
public class JcskSlR {
|
||||||
|
/**
|
||||||
|
* 水库代码
|
||||||
|
*/
|
||||||
|
@TableField("rscd")
|
||||||
|
private String rscd;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 水工建筑物编号
|
||||||
|
*/
|
||||||
|
@TableField("hycncd")
|
||||||
|
private String hycncd;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 测点编号
|
||||||
|
*/
|
||||||
|
@TableField("mpcd")
|
||||||
|
private String mpcd;
|
||||||
|
|
||||||
|
@TableField("stcd")
|
||||||
|
private String stcd;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 测量时间
|
||||||
|
*/
|
||||||
|
@TableField("mstm")
|
||||||
|
private LocalDateTime mstm;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 温度,单位℃
|
||||||
|
*/
|
||||||
|
@TableField("tm")
|
||||||
|
private BigDecimal tm;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 渗流量,单位l/s
|
||||||
|
*/
|
||||||
|
@TableField("spqn")
|
||||||
|
private BigDecimal spqn;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 标准水温渗流量,单位l/s
|
||||||
|
*/
|
||||||
|
@TableField("stspqn")
|
||||||
|
private BigDecimal stspqn;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String dvcd;
|
||||||
|
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue