|
@@ -359,117 +359,6 @@ public interface YiZhuLuRuDao {
|
|
|
@Select("select frequ_code from yz_act_order where act_order_no = ${orderNo} ")
|
|
|
String selectParentNo(String orderNo);
|
|
|
|
|
|
- @Select("select cast(cast(act_order_no as decimal) as varchar) " +
|
|
|
- "from yz_act_order with (NOLOCK) " +
|
|
|
- "where parent_no = #{orderNo}")
|
|
|
- List<String> getParentChildOrders(String orderNo);
|
|
|
-
|
|
|
- @Select("<script>" +
|
|
|
- "select * " +
|
|
|
- "from zy_detail_charge with (NOLOCK) " +
|
|
|
- "where inpatient_no = #{patNo} " +
|
|
|
- " and admiss_times = #{times} " +
|
|
|
- " and ori_detail_sn is null" +
|
|
|
- " and charge_fee > 0 " +
|
|
|
- " and order_no in " +
|
|
|
- "<foreach collection='list' item='item' index='index' open='(' close=')' separator=','>" +
|
|
|
- " #{item}" +
|
|
|
- "</foreach>" +
|
|
|
- "</script>")
|
|
|
- List<ZyDetailCharge> getExpenseData(String patNo,
|
|
|
- Integer times,
|
|
|
- List<String> list);
|
|
|
-
|
|
|
- @Update("<script>" +
|
|
|
- "update zy_detail_charge " +
|
|
|
- "set ori_detail_sn = -1 " +
|
|
|
- "where inpatient_no = #{patNo} " +
|
|
|
- " and admiss_times = #{times} " +
|
|
|
- " and ori_detail_sn is null " +
|
|
|
- " and charge_fee > 0 " +
|
|
|
- " and order_no in " +
|
|
|
- "<foreach collection='list' item='item' index='index' open='(' close=')' separator=','>" +
|
|
|
- " #{item}" +
|
|
|
- "</foreach>" +
|
|
|
- "</script>")
|
|
|
- void updateItemFlag(String patNo,
|
|
|
- Integer times,
|
|
|
- List<String> list);
|
|
|
-
|
|
|
- @Update("update yz_act_order " +
|
|
|
- "set status_flag = '-1', " +
|
|
|
- " end_time = getdate(), " +
|
|
|
- " modifier = #{userCode}, " +
|
|
|
- " instruction = #{reasonForCancellation}," +
|
|
|
- " order_name = cast('(作废)' + yz_act_order.order_name as char(100))" +
|
|
|
- "where act_order_no = #{orderNo}")
|
|
|
- void updateVoidedOrders(String orderNo,
|
|
|
- String userCode,
|
|
|
- String reasonForCancellation);
|
|
|
-
|
|
|
- @Update("update yz_yp_zy_order set status_flag = 2 where act_order_no = #{order} and status_flag = 1")
|
|
|
- void refusalToDispenseMedication(String order);
|
|
|
-
|
|
|
- @Update("update yz_act_order " +
|
|
|
- "set status_flag = '-1', " +
|
|
|
- " end_time = getdate(), " +
|
|
|
- " modifier = #{userCode}, " +
|
|
|
- " instruction = #{reasonForCancellation}, " +
|
|
|
- " order_name = cast('(作废)' + yz_act_order.order_name as char(100))" +
|
|
|
- "where parent_no = #{orderNo}")
|
|
|
- void updateChildOrders(String orderNo,
|
|
|
- String userCode,
|
|
|
- String reasonForCancellation);
|
|
|
-
|
|
|
- /**
|
|
|
- * @param deptCode 科室编码
|
|
|
- * @return 获取医生下面的病区
|
|
|
- */
|
|
|
- @Select("select dept " +
|
|
|
- "from zd_dept_all with (NOLOCK) " +
|
|
|
- "where small_dept = #{deptCode} " +
|
|
|
- " and dept is not null")
|
|
|
- List<String> getTheDoctorSDepartment(String deptCode);
|
|
|
-
|
|
|
- /**
|
|
|
- * @param orderNo 医嘱号
|
|
|
- * @return 获取已经确认收费的医嘱
|
|
|
- */
|
|
|
- @Select("select count(*) " +
|
|
|
- "from yz_zy_patient_fee with (NOLOCK) " +
|
|
|
- "where " +
|
|
|
- "inpatient_no = #{patNo} and " +
|
|
|
- "admiss_times = #{times} and " +
|
|
|
- "act_order_no = #{orderNo} and " +
|
|
|
- "charge_status = '3'")
|
|
|
- Integer getADoctorSOrderWithADefiniteFee(String patNo,
|
|
|
- Integer times,
|
|
|
- String orderNo);
|
|
|
-
|
|
|
- @Select("select count(*) " +
|
|
|
- "from zy_detail_charge with (NOLOCK) " +
|
|
|
- "where inpatient_no = #{patNo} " +
|
|
|
- " and admiss_times = #{times} " +
|
|
|
- " and order_no = #{orderNo} " +
|
|
|
- " and ori_detail_sn is null" +
|
|
|
- " and charge_fee > 0 ")
|
|
|
- Integer getDetailChargeFee(String patNo,
|
|
|
- Integer times,
|
|
|
- String orderNo);
|
|
|
-
|
|
|
- @Update("UPDATE " +
|
|
|
- " yz_zy_patient_fee " +
|
|
|
- "SET charge_status = '2', " +
|
|
|
- " op_id = #{userid}, " +
|
|
|
- " op_date = GETDATE() " +
|
|
|
- "WHERE act_order_no = #{orderNo} " +
|
|
|
- " AND inpatient_no = #{patNo} " +
|
|
|
- " AND admiss_times = #{times} ")
|
|
|
- void cancelMedicalTechnologyAssuranceFee(String userid,
|
|
|
- String orderNo,
|
|
|
- String patNo,
|
|
|
- Integer times);
|
|
|
-
|
|
|
/**
|
|
|
* 获取,有未确认和未执行的医嘱
|
|
|
*
|