33 lines
1.0 KiB
Java
33 lines
1.0 KiB
Java
package com.gunshi.project.xyt.mapper;
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import com.gunshi.db.dto.DateTimeRangeSo;
|
|
import com.gunshi.project.xyt.entity.vo.OsmoticWarnVo;
|
|
import com.gunshi.project.xyt.model.StQxWarnR;
|
|
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 StQxWarnRMapper extends BaseMapper<StQxWarnR> {
|
|
|
|
@Select("""
|
|
<script>
|
|
select t.*,s.*
|
|
from public.osmotic_warn_r t
|
|
left join public.osmotic_warn_rule s
|
|
on t.rule_id = s.id
|
|
where t.tm <![CDATA[>=]]> #{obj.start}
|
|
and t.tm <![CDATA[<=]]> #{obj.end}
|
|
order by t.tm,t.station_code desc
|
|
</script>
|
|
""")
|
|
List<OsmoticWarnVo> queryOsmoticWarn(@Param("obj") DateTimeRangeSo dateTimeRangeSo);
|
|
} |