From d866e43afbe901bfc640776e02f767b9045acbc2 Mon Sep 17 00:00:00 2001 From: 赵文轩 <1652863494@qq.com> Date: 星期三, 12 六月 2024 09:04:56 +0800 Subject: [PATCH] Merge branch 'master' of http://101.42.27.146:5001/r/ltkj_peis --- ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjUserAdviceMapper.java | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjUserAdviceMapper.java b/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjUserAdviceMapper.java index bb0d47e..838df60 100644 --- a/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjUserAdviceMapper.java +++ b/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjUserAdviceMapper.java @@ -3,7 +3,13 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.ltkj.hosp.domain.TjUserAdvice; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Select; @Mapper public interface TjUserAdviceMapper extends BaseMapper<TjUserAdvice> { + + + @Select("select * from tj_user_advice a where a.user_id=#{userId} and a.advice_id=#{adviceId}") + TjUserAdvice getTjUserAdviceByUserId(@Param("userId") Long userId,@Param("adviceId") Long adviceId); } -- Gitblit v1.8.0