| 
					
				 | 
			
			
				@@ -12,7 +12,6 @@ import org.apache.ibatis.annotations.Select; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.apache.ibatis.annotations.Update; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import thyyxxk.webserver.entity.datamodify.YzTemperature; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import thyyxxk.webserver.entity.fluorescenceTest.FluorescenceSpecimenResult; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import thyyxxk.webserver.entity.inpatient.patient.Patient; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import thyyxxk.webserver.entity.medicalinsurance.inpatient.ZyPatientInfo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import thyyxxk.webserver.entity.outpatient.thmz.MzEmrPatientData; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import thyyxxk.webserver.entity.zhuyuanyisheng.ZyZkList; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -229,20 +228,6 @@ public interface EmrPatientDao extends BaseMapper<EmrPatientData> { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "</script>") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     List<EmrPatientData> selectEmrDeteles(String patNo, Integer times, String createId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @Update("update emr_rule_unlock " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "set emr_id = #{emrDocumentId} " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "where pat_no = #{patNo} " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "  and times = #{times} " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "  and code = #{emrCategoryCode} " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "  and flag = 1 " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "  and date = (select max(date) " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "from emr_rule_unlock where pat_no = #{patNo} " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            " and times = #{times} and code = #{emrCategoryCode} and flag = 1) " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            " and input_id = #{createId}" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            " and emr_id is null") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    void unlockMedicalRecords(EmrPatientData param); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Select("select id, " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "       pat_no, " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "       times, " + 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -551,19 +536,11 @@ public interface EmrPatientDao extends BaseMapper<EmrPatientData> { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "where pat_no = #{mzNo} ") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     List<MzEmrPatientData> getEmrPatientMz(String mzNo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @Select("select rtrim(b.name) as name, b.sex, b.social_no\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "from emr_patient_data a,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "     a_patient_mi b\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "where emr_document_id = #{documentId}\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "  and a.pat_no = b.inpatient_no") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    Patient getPatientInfoByDocumentId(String documentId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Delete("delete emr_patient_data\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "where emr_document_id = #{id}\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "  and create_id = #{code}  and emr_category_code = 'This is Dir'") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     int delDir(String id, String code); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Update("update emr_patient_data\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "set emr_name = #{name},\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "    name     = #{name}\n" + 
			 |