30 lines
1.1 KiB
Java
30 lines
1.1 KiB
Java
package com.gunshi.project.xyt.mapper;
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.gunshi.project.xyt.entity.so.TyYearRainfallPageSo;
|
|
import com.gunshi.project.xyt.entity.vo.TyYearRainfallVo;
|
|
import com.gunshi.project.xyt.model.TyYearRainfall;
|
|
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 TyYearRainfallMapper extends BaseMapper<TyYearRainfall> {
|
|
|
|
@Select("""
|
|
<script>
|
|
select * from public.ty_year_rainfall where type = 1
|
|
<if test="obj.status != null">
|
|
and status = #{obj.status}
|
|
</if>
|
|
order by year desc
|
|
</script>
|
|
""")
|
|
Page<TyYearRainfallVo> pageQuery(Page<TyYearRainfallVo> page,@Param("obj") TyYearRainfallPageSo tyYearRainfallPageSo);
|
|
} |