Sfoglia il codice sorgente

按照编码查询服用说明

hurugang 3 anni fa
parent
commit
46ddf9dd9b

+ 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);
+
+
 }