| | |
| | | import com.ltkj.common.annotation.DataSource; |
| | | import com.ltkj.common.enums.DataSourceType; |
| | | import com.ltkj.hosp.sqlDomain.*; |
| | | import com.mysql.cj.jdbc.exceptions.MySQLTransactionRollbackException; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | |
| | | public List<Map<String,Object>> getTjYxjcList(@Param("patname")String patname, |
| | | @Param("sex")String sex, |
| | | @Param("nn")String nn); |
| | | |
| | | @DataSource(value = DataSourceType.SLAVE_PACS) |
| | | @Select({"<script>" + |
| | | "select * from V_JCBGLBHIS where mzh is not null " + |
| | | "<when test='name != null'>" + |
| | | "and name = #{name}" + |
| | | "</when>" + |
| | | "<when test='mzh != null'>" + |
| | | "and mzh = #{mzh}" + |
| | | "</when>" + |
| | | "<when test='start != null and end != null'>" + |
| | | "and examinationDate between #{start} and #{end}" + |
| | | "</when>" + |
| | | "order by examinationDate" + |
| | | "</script>"}) |
| | | List<Map<String ,Object>> getPacsJcList(@Param("name")String name,@Param("mzh")String mzh,@Param("start")String start,@Param("end")String end); |
| | | } |