瀏覽代碼

按照编码查询服用说明

hurugang 3 年之前
父節點
當前提交
46ddf9dd9b
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      src/main/java/cn/hnthyy/thmz/mapper/his/zd/MzYshZdFysmMapper.java

+ 12 - 0
src/main/java/cn/hnthyy/thmz/mapper/his/zd/MzYshZdFysmMapper.java

@@ -1,6 +1,7 @@
 package cn.hnthyy.thmz.mapper.his.zd;
 
 import cn.hnthyy.thmz.entity.his.zd.ZdCommon;
+import org.apache.ibatis.annotations.Param;
 import org.apache.ibatis.annotations.Select;
 
 import java.util.List;
@@ -12,4 +13,15 @@ public interface MzYshZdFysmMapper {
      */
     @Select("SELECT  mz_ysh_zd_fysm.code ,mz_ysh_zd_fysm.name   FROM mz_ysh_zd_fysm  ")
     List<ZdCommon> selectAllMzYshZdFysm();
+
+
+    /**
+     * 查询中药服用说明
+     * @param code
+     * @return
+     */
+    @Select("SELECT  mz_ysh_zd_fysm.code ,mz_ysh_zd_fysm.name   FROM mz_ysh_zd_fysm  where code=#{code}")
+    ZdCommon selectMzYshZdFysmByCode(@Param("code") String code);
+
+
 }