河道水情
parent
b2077819a5
commit
8dd95ec7d2
|
|
@ -3,6 +3,8 @@ package com.gunshi.project.hsz.mapper;
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.gunshi.project.hsz.model.StRiverRReal;
|
||||
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
|
||||
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue