| | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ltkj.hosp.domain.TjStandard; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | |
| | | import java.util.List; |
| | |
| | | "AND IF(NULL is NULL, 0 = 0, tj_type=#{tjType})\n" + |
| | | "AND stan_id in \n" + |
| | | "(SELECT stan_id FROM tj_standard WHERE pro_id=#{proId} AND deleted='0')") |
| | | public TjStandard getListBySexAndType(Long tjSex,int tjType,String proId); |
| | | public TjStandard getListBySexAndType(@Param("tjSex") Long tjSex,@Param("tjType") int tjType,@Param("proId") String proId); |
| | | |
| | | |
| | | @Select("SELECT * FROM tj_standard a WHERE a.deleted='0' AND a.pro_id=#{proId} AND a.tj_sex=#{tjSex} AND a.tj_type=#{tjType}") |
| | | public TjStandard getTjStandardBySexAndType(@Param("tjSex")Long tjSex,@Param("tjType")int tjType,@Param("proId") String proId); |
| | | } |