|
@@ -193,6 +193,7 @@ public interface MzYjReqMapper {
|
|
|
|
|
|
/**
|
|
|
* 查询检验检查的总数
|
|
|
+ *
|
|
|
* @param mzYjReq
|
|
|
* @return
|
|
|
*/
|
|
@@ -223,7 +224,7 @@ public interface MzYjReqMapper {
|
|
|
"<when test='endTime!=null'>",
|
|
|
" and req_date <![CDATA[<=]]>#{endTime} ",
|
|
|
"</when>",
|
|
|
- "</script>"})
|
|
|
+ "</script>"})
|
|
|
Integer selectCountMzYjReq(MzYjReq mzYjReq);
|
|
|
|
|
|
/**
|
|
@@ -267,9 +268,9 @@ public interface MzYjReqMapper {
|
|
|
List<MzYjReq> selectMzYjReqByPatientIdAndReqDateWithPage(MzYjReq mzYjReq);
|
|
|
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 查询检验人名称列表的总数
|
|
|
+ *
|
|
|
* @param mzYjReq
|
|
|
* @return
|
|
|
*/
|
|
@@ -321,21 +322,22 @@ public interface MzYjReqMapper {
|
|
|
List<MzYjReq> selectReqNameByPatientIdAndReqDateWithPage(MzYjReq mzYjReq);
|
|
|
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 医技申请确认费用
|
|
|
- * @param flag 1:医技已接收 =2:结果已返回
|
|
|
- * @param opId 操作人ID
|
|
|
+ *
|
|
|
+ * @param flag 1:医技已接收 =2:结果已返回
|
|
|
+ * @param opId 操作人ID
|
|
|
* @param confirmTime 确认时间
|
|
|
- * @param reqNo 申请单号
|
|
|
+ * @param reqNo 申请单号
|
|
|
* @return
|
|
|
*/
|
|
|
@Update("update mz_yj_req set receive_flag=#{flag},confirm_flag=#{flag},confirm_id=#{opId},confirm_time=#{confirmTime},exec_dept=isnull(exec_dept,'2010000')" +
|
|
|
"where req_no = #{reqNo}")
|
|
|
- int updateReceiveFlagAndConfirmFlag(@Param("flag") String flag, @Param("opId") String opId, @Param("confirmTime") Date confirmTime,@Param("reqNo") Integer reqNo);
|
|
|
+ int updateReceiveFlagAndConfirmFlag(@Param("flag") String flag, @Param("opId") String opId, @Param("confirmTime") Date confirmTime, @Param("reqNo") Integer reqNo);
|
|
|
|
|
|
/**
|
|
|
* 按照门诊ID和就诊次数查询医技申请日期
|
|
|
+ *
|
|
|
* @param patientId
|
|
|
* @param times
|
|
|
* @return
|
|
@@ -345,6 +347,7 @@ public interface MzYjReqMapper {
|
|
|
|
|
|
/**
|
|
|
* 查询患者是否有医技申请
|
|
|
+ *
|
|
|
* @param patientId
|
|
|
* @return
|
|
|
*/
|
|
@@ -354,6 +357,7 @@ public interface MzYjReqMapper {
|
|
|
|
|
|
/**
|
|
|
* 按照门诊ID查询第一次医技申请日期
|
|
|
+ *
|
|
|
* @param patientId
|
|
|
* @return
|
|
|
*/
|
|
@@ -363,6 +367,7 @@ public interface MzYjReqMapper {
|
|
|
|
|
|
/**
|
|
|
* 按照门诊ID查询最后一次医技申请日期
|
|
|
+ *
|
|
|
* @param patientId
|
|
|
* @return
|
|
|
*/
|
|
@@ -371,9 +376,19 @@ public interface MzYjReqMapper {
|
|
|
|
|
|
/**
|
|
|
* 根据门诊id查询检查病人ID
|
|
|
+ *
|
|
|
* @param patientId
|
|
|
* @return
|
|
|
*/
|
|
|
@Select("select jc_id from yj_jc_patient where mz_id =#{patientId}")
|
|
|
String selectJcIdFromYjJcPatient(@Param("patientId") String patientId);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据医嘱编码查询24小时内是否有已经缴费的记录
|
|
|
+ * @param patientId
|
|
|
+ * @param orderCode
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Select("select * from mz_yj_req where patient_id=#{patientId} and order_code =#{orderCode} and pay_mark = 0 and DateDiff(hh,req_date,getDate()) <=24 ")
|
|
|
+ int select24HourReqByCode(@Param("patientId") String patientId,@Param("orderCode") String orderCode);
|
|
|
}
|