|
@@ -1,13 +1,11 @@
|
|
|
package thyyxxk.webserver.dao.his.examinations;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
-import org.apache.ibatis.annotations.Mapper;
|
|
|
-import org.apache.ibatis.annotations.Param;
|
|
|
-import org.apache.ibatis.annotations.Select;
|
|
|
-import org.apache.ibatis.annotations.Update;
|
|
|
+import org.apache.ibatis.annotations.*;
|
|
|
import thyyxxk.webserver.entity.examinations.bookablemanage.ExamItem;
|
|
|
import thyyxxk.webserver.entity.examinations.inspections.request.ReportIndexInquiry;
|
|
|
import thyyxxk.webserver.entity.examinations.inspections.response.TestReport;
|
|
|
+import thyyxxk.webserver.entity.yiji.YjReqIndex;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
@@ -39,18 +37,19 @@ public interface InspectionsDao {
|
|
|
@Update("update ${tableName} set wx_bookable_flag=#{wxBookableFlag},book_tip=#{bookTip} where code=#{code}")
|
|
|
void updateWxBookableFlag(ExamItem item);
|
|
|
|
|
|
- @Select("select patient_uid,patient_name,examin_eparts,check_time from t_check_data " +
|
|
|
- "where pat_no=#{patNo} and check_time>=#{reqStartTime} and check_time<=#{reqEndTime} ")
|
|
|
- List<TestReport> selectTestReportIndex(ReportIndexInquiry inquiry);
|
|
|
-
|
|
|
- @Select("select *, " +
|
|
|
- "doctorName=(select top 1 rtrim(d.name) from a_employee_mi d where d.code_rs=doctor_code) " +
|
|
|
- "from t_check_data where patient_uid=#{id}")
|
|
|
- TestReport selectTestReport(String id);
|
|
|
-
|
|
|
@Select("select rtrim(social_no) from a_patient_mi where inpatient_no=#{patNo}")
|
|
|
String selectInpatientSocialNo(String patNo);
|
|
|
|
|
|
@Select("select rtrim(social_no) from mz_patient_mi where patient_id=#{patNo}")
|
|
|
String selectOutpatientSocialNo(String patNo);
|
|
|
+
|
|
|
+ @Delete("delete from t_check_data where patient_uid=#{uid}")
|
|
|
+ void deleteOldReport(String uid);
|
|
|
+
|
|
|
+ @Insert("insert into t_check_data (patient_uid,patient_name,pat_no,times,examin_eparts,room_code, " +
|
|
|
+ "examination_see,examinationre_sult,doctor_code,check_doctor_code,check_time,report_time, " +
|
|
|
+ "patient_from,report_url,top_req_no) " +
|
|
|
+ "values (#{uid},#{patName},#{patNo},#{times},#{groupName},#{staffDept},'','',#{reqDoctor},'', " +
|
|
|
+ "'','',#{patientFrom},#{reportUrl},#{reqNo})")
|
|
|
+ void insertNewCheckData(YjReqIndex index);
|
|
|
}
|