河道水情

master
yangzhe123 2025-09-03 14:13:51 +08:00
parent b2077819a5
commit 8dd95ec7d2
1 changed files with 10 additions and 0 deletions

View File

@ -3,6 +3,8 @@ package com.gunshi.project.hsz.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gunshi.project.hsz.model.StRiverRReal; import com.gunshi.project.hsz.model.StRiverRReal;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
/** /**
* : * :
@ -12,4 +14,12 @@ import org.apache.ibatis.annotations.Mapper;
@Mapper @Mapper
public interface StRiverRRealMapper extends BaseMapper<StRiverRReal> { 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);
} }