You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					48 lines
				
				1.5 KiB
			
		
		
			
		
	
	
					48 lines
				
				1.5 KiB
			| 
											3 years ago
										 | package com.ynxbd.common.dao.pacs;
 | ||
|  | 
 | ||
|  | import com.ynxbd.common.bean.pacs.RISPacsReportInfo;
 | ||
|  | import com.ynxbd.common.config.db.PacsDB;
 | ||
|  | 
 | ||
|  | import java.util.List;
 | ||
|  | 
 | ||
|  | /**
 | ||
|  |  * @author 李进才
 | ||
|  |  * @ClassName RISPacsDao
 | ||
|  |  * @Description description
 | ||
|  |  * @date 2023/3/21 14:41
 | ||
|  |  */
 | ||
|  | public class RISPacsDao {
 | ||
|  | 
 | ||
|  |     public  List<RISPacsReportInfo> getReportInfoForOutPatientNum(String outPatientNum){
 | ||
|  |         return getReportInfo(outPatientNum,null);
 | ||
|  |     }
 | ||
|  | 
 | ||
|  |     public List<RISPacsReportInfo> getReportInfoForInPatientNum(String inPatientNum){
 | ||
|  |         return getReportInfo(null,inPatientNum);
 | ||
|  |     }
 | ||
|  | 
 | ||
|  | 
 | ||
|  |     public List<RISPacsReportInfo> getReportInfo(String outPatientNum, String inPatientNum){
 | ||
|  |         if(outPatientNum!=null){
 | ||
|  |             return PacsDB.select("select * from V_PACS_ReportInfo where outPatientNum = ? and ReportFile is not null",
 | ||
|  |                     RISPacsReportInfo.class,
 | ||
|  |                     ps ->{
 | ||
|  |                 ps.setString(1,outPatientNum);
 | ||
|  |                     });
 | ||
|  |         }
 | ||
|  |         return PacsDB.select("select * from V_PACS_ReportInfo where inPatientNum = ? and ReportFile is not null",
 | ||
|  |                 RISPacsReportInfo.class,
 | ||
|  |                 ps ->{
 | ||
|  |                     ps.setString(1,inPatientNum);
 | ||
|  |                 });
 | ||
|  |     }
 | ||
|  | 
 | ||
|  |     public String getReportPath(String reportId){
 | ||
|  |         return PacsDB.select("select reportFile from V_PACS_ReportInfo where ReportID = ?",
 | ||
|  |                 String.class,
 | ||
|  |                 ps ->{
 | ||
|  |                     ps.setString(1,reportId);
 | ||
|  |                 }).get(0);
 | ||
|  |     }
 | ||
|  | }
 |