|
@@ -76,17 +76,17 @@ public interface YiZhuLuRuDao {
|
|
|
@Param("admissTimes") Integer admissTimes,
|
|
|
@Param("ledgerSn") Integer ledgerSn);
|
|
|
|
|
|
- @Select("select rtrim(order_name) code, rtrim(order_name) name " +
|
|
|
+ @Select("select distinct rtrim(order_name) code, rtrim(order_name) name " +
|
|
|
"from yz_act_order with (NOLOCK) " +
|
|
|
"where inpatient_no = #{inpatientNo} " +
|
|
|
" and admiss_times = #{admissTimes} " +
|
|
|
- " and order_name like #{orderName}")
|
|
|
+ " and (order_name like #{orderName} or order_code like #{orderName})")
|
|
|
List<GetDropdownBox> huoQuYiZhuMingZi(@Param("inpatientNo") String inpatientNo,
|
|
|
@Param("admissTimes") Integer admissTimes,
|
|
|
@Param("orderName") String orderName);
|
|
|
|
|
|
@Select("select rtrim(frequ_code) code, " +
|
|
|
- " name = (select comm from yz_order_frequency where frequ_code = code) " +
|
|
|
+ " name = (select rtrim(comm) from yz_order_frequency where frequ_code = code) " +
|
|
|
"from yz_act_order with (NOLOCK) " +
|
|
|
"where inpatient_no = #{patNo} " +
|
|
|
" and admiss_times = #{times} " +
|
|
@@ -110,10 +110,10 @@ public interface YiZhuLuRuDao {
|
|
|
" end_time, " +
|
|
|
" drug_specification, " +
|
|
|
" drug_quan, " +
|
|
|
- " drug_quan_name = (select name from yp_zd_unit where code = mini_unit)," +
|
|
|
+ " drug_quan_name = (select name from yp_zd_unit with (NOLOCK) where code = mini_unit)," +
|
|
|
" supply_code, " +
|
|
|
" supply_code_name = (select supply_name " +
|
|
|
- " from yz_supply_type " +
|
|
|
+ " from yz_supply_type with (NOLOCK) " +
|
|
|
" where yz_supply_type.supply_code = temp.supply_code)," +
|
|
|
" inpatient_no, " +
|
|
|
" admiss_times, " +
|
|
@@ -129,7 +129,7 @@ public interface YiZhuLuRuDao {
|
|
|
" self_buy, " +
|
|
|
" dose, " +
|
|
|
" dose_unit, " +
|
|
|
- " dose_unit_name = (select name from yp_zd_unit where dose_unit = code)," +
|
|
|
+ " dose_unit_name = (select name from yp_zd_unit with (NOLOCK) where dose_unit = code)," +
|
|
|
" drug_occ, " +
|
|
|
" drug_volume, " +
|
|
|
" drug_vol_unit, " +
|
|
@@ -161,18 +161,17 @@ public interface YiZhuLuRuDao {
|
|
|
" refer_physician, " +
|
|
|
" consult_physician, " +
|
|
|
" /* 开这个医嘱的医生 */ " +
|
|
|
- " physician_name = (select top(1) rtrim(name) from a_employee_mi where code = physician), " +
|
|
|
- " exec_unit_name = (select top(1) rtrim(name) from zd_unit_code where code = exec_unit), " +
|
|
|
+ " physician_name = (select top(1) rtrim(name) from a_employee_mi with (NOLOCK) where code = physician), " +
|
|
|
+ " exec_unit_name = (select top(1) rtrim(name) from zd_unit_code with (NOLOCK) where code = exec_unit), " +
|
|
|
" /*管床医生*/ " +
|
|
|
- " refer_physician_name = (select rtrim(name) from a_employee_mi where code = refer_physician), " +
|
|
|
- " group_no_name = (select rtrim(group_name) from yp_zd_group_name where temp.group_no = group_no) " +
|
|
|
+ " refer_physician_name = (select rtrim(name) from a_employee_mi with (NOLOCK) where code = refer_physician), " +
|
|
|
+ " group_no_name = (select rtrim(group_name) from yp_zd_group_name with (NOLOCK) where temp.group_no = group_no) " +
|
|
|
"from ( " +
|
|
|
" select top ${pageSize} * " +
|
|
|
" from (select row_number() over (order by act_order_no) rowIndex, * " +
|
|
|
" from yz_act_order a with (NOLOCK) " +
|
|
|
" where inpatient_no = #{patNo} " +
|
|
|
" and admiss_times = #{times} " +
|
|
|
- " and isnull(parent_no, '') = '' " +
|
|
|
"<if test=\"orderName != null and orderName != '' \">" +
|
|
|
" and order_name = #{orderName}" +
|
|
|
"</if>" +
|
|
@@ -196,86 +195,10 @@ public interface YiZhuLuRuDao {
|
|
|
@Param("orderName") String orderName);
|
|
|
|
|
|
|
|
|
- @Select("select act_order_no, " +
|
|
|
- " order_code, " +
|
|
|
- " order_name, " +
|
|
|
- " rtrim(frequ_code) frequ_code, " +
|
|
|
- " instruction, " +
|
|
|
- " discription, " +
|
|
|
- " infant_flag, " +
|
|
|
- " order_time, " +
|
|
|
- " physician, " +
|
|
|
- " start_time, " +
|
|
|
- " end_time, " +
|
|
|
- " drug_specification, " +
|
|
|
- " drug_quan, " +
|
|
|
- " drug_quan_name = (select name from yp_zd_unit where code = a.mini_unit), " +
|
|
|
- " supply_code, " +
|
|
|
- " supply_code_name = (select supply_name " +
|
|
|
- " from yz_supply_type " +
|
|
|
- " where yz_supply_type.supply_code = a.supply_code), " +
|
|
|
- " inpatient_no, " +
|
|
|
- " admiss_times, " +
|
|
|
- " drug_flag, " +
|
|
|
- " enter_oper, " +
|
|
|
- " enter_time, " +
|
|
|
- " mini_unit, " +
|
|
|
- " drug_weight, " +
|
|
|
- " drug_weight_unit, " +
|
|
|
- " status_flag, " +
|
|
|
- " status_time, " +
|
|
|
- " parent_no, " +
|
|
|
- " self_buy, " +
|
|
|
- " dose, " +
|
|
|
- " dose_unit, " +
|
|
|
- " dose_unit_name = (select top (1) name from yp_zd_unit where dose_unit = yp_zd_unit.code), " +
|
|
|
- " drug_occ, " +
|
|
|
- " drug_volume, " +
|
|
|
- " drug_vol_unit, " +
|
|
|
- " exclu_back_time, " +
|
|
|
- " exclu_act_order_no, " +
|
|
|
- " pay_self, " +
|
|
|
- " serial, " +
|
|
|
- " group_no, " +
|
|
|
- " signer, " +
|
|
|
- " modifier, " +
|
|
|
- " cl_code, " +
|
|
|
- " doctor_flag, " +
|
|
|
- " emergency_flag, " +
|
|
|
- " exclu_type='', " +
|
|
|
- " end_time_b=end_time, " +
|
|
|
- " exec_unit, " +
|
|
|
- " dept_code, " +
|
|
|
- " ward_code, " +
|
|
|
- " new_flag='0', " +
|
|
|
- " order_no_pattern=0, " +
|
|
|
- " suprice_flag='', " +
|
|
|
- " self_flag ='', " +
|
|
|
- " pack_size=0.0, " +
|
|
|
- " parent_no_c= -1000, " +
|
|
|
- " reg_flag, " +
|
|
|
- " parent_flag='', " +
|
|
|
- " yb_self_flag, " +
|
|
|
- " kf_flag, " +
|
|
|
- " refer_physician, " +
|
|
|
- " consult_physician, " +
|
|
|
- " /* 开这个医嘱的医生 */ " +
|
|
|
- " physician_name = (select top (1) rtrim(name) from a_employee_mi where code = a.physician), " +
|
|
|
- " exec_unit_name = (select top (1) rtrim(name) from zd_unit_code where code = a.exec_unit), " +
|
|
|
- " /*管床医生*/ " +
|
|
|
- " refer_physician_name = (select top (1) rtrim(name) from a_employee_mi where code = a.refer_physician), " +
|
|
|
- " group_no_name = (select top (1) rtrim(group_name) from yp_zd_group_name where yp_zd_group_name.group_no = a.group_no) " +
|
|
|
- "from yz_act_order a with (NOLOCK) " +
|
|
|
- "where inpatient_no = #{patNo} " +
|
|
|
- " and admiss_times = #{times} " +
|
|
|
- " and isnull(parent_no, '') <> ''")
|
|
|
- List<YzActOrder> ziYiZhu(@Param("patNo") String patNo,
|
|
|
- @Param("times") Integer times);
|
|
|
-
|
|
|
@Select("<script>" +
|
|
|
"select count(1) " +
|
|
|
"from yz_act_order a with (NOLOCK) " +
|
|
|
- "where inpatient_no = #{patNo} " +
|
|
|
+ "where inpatient_no = #{patNo} " +
|
|
|
" and admiss_times = #{times} " +
|
|
|
" and isnull(parent_no, '') = '' " +
|
|
|
"<if test=\"startTime != null and startTime != '' \"> " +
|
|
@@ -332,7 +255,7 @@ public interface YiZhuLuRuDao {
|
|
|
" yb_type, " +
|
|
|
" yb_flag_new," +
|
|
|
" father_flag, " +
|
|
|
- " manu_name=(select name from yp_zd_manufactory where code *= a.manu_code), " +
|
|
|
+ " manu_name=(select name from yp_zd_manufactory with (NOLOCK) where code *= a.manu_code), " +
|
|
|
" stock_amount=a.stock_amount " +
|
|
|
"FROM view_yp_zd_dict_base_yf a with (NOLOCK) " +
|
|
|
"WHERE isnull(a.visible_flag_zy, '') <> '1' " +
|
|
@@ -377,15 +300,15 @@ public interface YiZhuLuRuDao {
|
|
|
|
|
|
@Select("SELECT cast(rtrim(isnull(nullif(del_flag, ''), 0)) as int) del_flag, " +
|
|
|
" national_code national_code " +
|
|
|
- "FROM yz_order_occurence a, " +
|
|
|
- " zd_charge_item b " +
|
|
|
+ "FROM yz_order_occurence a with (NOLOCK), " +
|
|
|
+ " zd_charge_item b with (NOLOCK) " +
|
|
|
"where a.order_code = #{code} " +
|
|
|
" and a.occ_code = b.code")
|
|
|
XinZhenYzActOrder huoQuXiangMu(String code);
|
|
|
|
|
|
|
|
|
@Select("select isnull(exclu_group_type, 0) " +
|
|
|
- "from yz_order_item where order_code = #{code}")
|
|
|
+ "from yz_order_item with (NOLOCK) where order_code = #{code}")
|
|
|
Integer shiFouPaiChiYiZhu(String code);
|
|
|
|
|
|
|
|
@@ -398,20 +321,20 @@ public interface YiZhuLuRuDao {
|
|
|
" weight, " +
|
|
|
" /* 重量单位 */ " +
|
|
|
" weigh_unit, " +
|
|
|
- " weigh_unit_name = (select name from yp_zd_unit where code = weigh_unit), " +
|
|
|
+ " weigh_unit_name = (select name from yp_zd_unit with (NOLOCK) where code = weigh_unit), " +
|
|
|
" /*体积*/ " +
|
|
|
" volum, " +
|
|
|
" /*体积单位*/ " +
|
|
|
" vol_unit, " +
|
|
|
- " vol_unit_name = (select name from yp_zd_unit where code = vol_unit), " +
|
|
|
+ " vol_unit_name = (select name from yp_zd_unit with (NOLOCK) where code = vol_unit), " +
|
|
|
" /*包装体积*/ " +
|
|
|
" pack_size, " +
|
|
|
" /*包装单位*/ " +
|
|
|
" pack_unit, " +
|
|
|
- " pack_unit_name = (select name from yp_zd_unit where code = pack_unit), " +
|
|
|
+ " pack_unit_name = (select name from yp_zd_unit with (NOLOCK) where code = pack_unit), " +
|
|
|
" /*最小单位*/ " +
|
|
|
" mini_unit, " +
|
|
|
- " mini_unit_name = (select name from yp_zd_unit where code = mini_unit), " +
|
|
|
+ " mini_unit_name = (select name from yp_zd_unit with (NOLOCK) where code = mini_unit), " +
|
|
|
" /* 需要判断医生的权限 在 select doctor_xz_yp from a_employee_mi */ " +
|
|
|
" cast(isnull(NULLIF(yp_level, ''), 0) as int) as yp_level, " +
|
|
|
" /*需要皮试*/ " +
|
|
@@ -421,46 +344,35 @@ public interface YiZhuLuRuDao {
|
|
|
" code as order_code,name as order_name ," +
|
|
|
" frequency as frequCode," +
|
|
|
" supply_type as supply_code " +
|
|
|
- "from yp_zd_dict " +
|
|
|
+ "from yp_zd_dict with (NOLOCK) " +
|
|
|
"where rtrim(code) + rtrim(serial) = #{code} " +
|
|
|
" and cast(isnull(NULLIF(del_flag, ''), 0) as int) = 0 ")
|
|
|
YaoPinXinXi huoQuYaoPin(@Param("code") String code);
|
|
|
|
|
|
- @Select("select cast(isnull(NULLIF(doctor_xz_yp, ''), 0) as int) from a_employee_mi where code = #{code}")
|
|
|
+ @Select("select cast(isnull(NULLIF(doctor_xz_yp, ''), 0) as int) from a_employee_mi with (NOLOCK) where code = #{code}")
|
|
|
Integer huoQuYiShenDengJi(String code);
|
|
|
|
|
|
@Select("select rtrim(supply_code) code,rtrim(supply_name) name " +
|
|
|
- "from yz_supply_type " +
|
|
|
+ "from yz_supply_type with (NOLOCK) " +
|
|
|
"where ps_flag in ('1', '0')")
|
|
|
List<GetDropdownBox> piShiGeiYaoFangShi();
|
|
|
|
|
|
@Select("select rtrim(code) code, rtrim(comm) name " +
|
|
|
- "from yz_order_frequency " +
|
|
|
+ "from yz_order_frequency with (NOLOCK) " +
|
|
|
"where (code like #{code} or comm like #{code})")
|
|
|
List<GetDropdownBox> huoQuZhuYuanPinLv(String code);
|
|
|
|
|
|
|
|
|
@Select("select rtrim(supply_code) code, rtrim(supply_name) name " +
|
|
|
- "from yz_supply_type " +
|
|
|
+ "from yz_supply_type with (NOLOCK) " +
|
|
|
"where (supply_code like #{code} or supply_name like #{code} or py_code like #{code} )")
|
|
|
List<GetDropdownBox> huoQuGeiYaoFangShi(String code);
|
|
|
|
|
|
|
|
|
- @Select("SELECT CONVERT(nvarchar(100), CAST(act_order_no AS decimal(11,0))) as code," +
|
|
|
- " rtrim(order_name) as name " +
|
|
|
- "FROM yz_act_order " +
|
|
|
- "WHERE (inpatient_no = #{patNo}) " +
|
|
|
- " AND (admiss_times = #{times}) " +
|
|
|
- " AND (isnull(parent_no, 0) = 0) " +
|
|
|
- " and status_flag <> '5' " +
|
|
|
- " and drug_flag = 'i'")
|
|
|
- List<GetDropdownBox> huoQuFuYiZhu(@Param("patNo") String patNo,
|
|
|
- @Param("times") Integer times);
|
|
|
-
|
|
|
@Select("SELECT a.code code, " +
|
|
|
" a.name name " +
|
|
|
- "FROM zd_unit_code a, " +
|
|
|
- " zd_dept_all b " +
|
|
|
+ "FROM zd_unit_code a with (NOLOCK), " +
|
|
|
+ " zd_dept_all b with (NOLOCK) " +
|
|
|
"where isnull(a.del_flag, '0') <> '1' " +
|
|
|
" and a.code = b.small_dept " +
|
|
|
" and (a.code like #{code} or a.name like #{code} or py_code like #{code}) " +
|
|
@@ -489,7 +401,7 @@ public interface YiZhuLuRuDao {
|
|
|
" cast(isnull(NULLIF(kjyw_flag, ''), 0) as int) as kjyw_flag," +
|
|
|
" cast(isnull(NULLIF(yp_level, ''), 0) as int) as yp_level," +
|
|
|
" cast(isnull(NULLIF(del_flag, ''), 0) as int) as del_flag " +
|
|
|
- "from yp_zd_dict " +
|
|
|
+ "from yp_zd_dict with (NOLOCK) " +
|
|
|
"where rtrim(code) + rtrim(serial) in " +
|
|
|
"<foreach collection='code' item='item' index='index' open='(' close=')' separator=','>" +
|
|
|
"#{item}" +
|
|
@@ -504,9 +416,9 @@ public interface YiZhuLuRuDao {
|
|
|
" national_code, " +
|
|
|
" kjyw_flag = 0," +
|
|
|
" cast(rtrim(isnull(nullif(c.del_flag, ''), 0)) as int) del_flag " +
|
|
|
- "from yz_order_item a, " +
|
|
|
- " yz_order_occurence b, " +
|
|
|
- " zd_charge_item c " +
|
|
|
+ "from yz_order_item a with (NOLOCK) , " +
|
|
|
+ " yz_order_occurence b with (NOLOCK) , " +
|
|
|
+ " zd_charge_item c with (NOLOCK)" +
|
|
|
"where a.order_code in " +
|
|
|
"<foreach collection='code' item='item' index='index' open='(' close=')' separator=','>" +
|
|
|
"#{item}" +
|
|
@@ -522,7 +434,7 @@ public interface YiZhuLuRuDao {
|
|
|
" dept dept_code, " +
|
|
|
" zk_ward ward_code, " +
|
|
|
" refer_physician " +
|
|
|
- "from zy_actpatient " +
|
|
|
+ "from zy_actpatient with (NOLOCK) " +
|
|
|
"where inpatient_no = #{patNo} " +
|
|
|
" and admiss_times = #{times} ")
|
|
|
XinZhenYiZhu huoQuHuanZheXinXi(@Param("patNo") String patNo,
|
|
@@ -563,7 +475,7 @@ public interface YiZhuLuRuDao {
|
|
|
" ward_code /* 在院病人表中的 zk_ward*/, " +
|
|
|
" reg_flag/* 0 */, " +
|
|
|
" yb_self_flag/*医保自费标志*/,emergency_flag, " +
|
|
|
- " kf_flag /*饭前饭后*/,parent_no, refer_physician/*患者的管床医生*/, confirm_time/*确认时间*/, signer/*确认人*/) " +
|
|
|
+ " kf_flag /*饭前饭后*/,parent_no, refer_physician/*患者的管床医生*/, confirm_time/*确认时间*/, signer/*确认人*/,end_time,modifier) " +
|
|
|
"VALUES " +
|
|
|
"<foreach collection='list' item='item' separator=','>" +
|
|
|
"(#{item.orderCode}, #{item.orderName}, #{item.frequCode}, #{item.instruction}, #{item.discription}, #{infantFlag}, #{item.orderTime}, " +
|
|
@@ -625,7 +537,14 @@ public interface YiZhuLuRuDao {
|
|
|
"<if test=\"item.parentNo == null \">" +
|
|
|
"null," +
|
|
|
"</if>" +
|
|
|
- " #{referPhysician}, getdate(), #{inputCode})" +
|
|
|
+ " #{referPhysician}, getdate(), #{inputCode}," +
|
|
|
+ "<if test=\"item.endTime != null \">" +
|
|
|
+ "#{item.endTime},#{inputCode} " +
|
|
|
+ "</if>" +
|
|
|
+ "<if test=\"item.endTime == null\">" +
|
|
|
+ "null,null " +
|
|
|
+ "</if>" +
|
|
|
+ ")" +
|
|
|
"</foreach>" +
|
|
|
"</script>")
|
|
|
void chaRuYiZhu(@Param("patNo") String patNo,
|
|
@@ -648,10 +567,10 @@ public interface YiZhuLuRuDao {
|
|
|
" input_date," +
|
|
|
" rtrim(input_type) input_type, " +
|
|
|
" sort_no," +
|
|
|
- " yiBeiShouCang = (select count(1) from yz_OrderPattern b where b.collect_code = a.pattern_code " +
|
|
|
+ " yiBeiShouCang = (select count(1) from yz_OrderPattern b with (NOLOCK) where b.collect_code = a.pattern_code " +
|
|
|
" and b.input_id = #{inputId})," +
|
|
|
" collect_code " +
|
|
|
- "FROM yz_OrderPattern a " +
|
|
|
+ "FROM yz_OrderPattern a with (NOLOCK) " +
|
|
|
"where 1=1 " +
|
|
|
"<if test=\"code != null and code != '' \">" +
|
|
|
"and (py_code like #{code} " +
|
|
@@ -683,7 +602,7 @@ public interface YiZhuLuRuDao {
|
|
|
|
|
|
@Select("<script>" +
|
|
|
"SELECT count(*) " +
|
|
|
- "FROM yz_OrderPattern " +
|
|
|
+ "FROM yz_OrderPattern with (NOLOCK) " +
|
|
|
"where 1=1 " +
|
|
|
"<if test=\"code != null and code != '' \">" +
|
|
|
"and (py_code like #{code} " +
|
|
@@ -717,17 +636,17 @@ public interface YiZhuLuRuDao {
|
|
|
" rtrim(a.order_code) order_code, " +
|
|
|
" a.frequ_code, " +
|
|
|
" frequ_code_name = (select rtrim(comm) " +
|
|
|
- " from yz_order_frequency " +
|
|
|
+ " from yz_order_frequency with (NOLOCK) " +
|
|
|
" where yz_order_frequency.code = a.frequ_code), " +
|
|
|
" a.drug_specification, " +
|
|
|
" a.supply_code, " +
|
|
|
" supply_code_name = (select rtrim(supply_name) " +
|
|
|
- " from yz_supply_type " +
|
|
|
+ " from yz_supply_type with (NOLOCK) " +
|
|
|
" where yz_supply_type.supply_code = a.supply_code), " +
|
|
|
" a.drug_quan, " +
|
|
|
" a.instruction, " +
|
|
|
" a.mini_unit, " +
|
|
|
- " mini_unit_name = (select rtrim(name) from yp_zd_unit where code = mini_unit), " +
|
|
|
+ " mini_unit_name = (select rtrim(name) from yp_zd_unit with (NOLOCK) where code = mini_unit), " +
|
|
|
" a.drug_weight, " +
|
|
|
" a.drug_weight_unit, " +
|
|
|
" a.parent_no, " +
|
|
@@ -735,7 +654,7 @@ public interface YiZhuLuRuDao {
|
|
|
" a.drug_vol_unit, " +
|
|
|
" a.dose, " +
|
|
|
" a.dose_unit, " +
|
|
|
- " dose_unit_name = (select rtrim(name) from yp_zd_unit where code = dose_unit), " +
|
|
|
+ " dose_unit_name = (select rtrim(name) from yp_zd_unit with (NOLOCK) where code = dose_unit), " +
|
|
|
" a.exclu_act_order_no, " +
|
|
|
" a.discription, " +
|
|
|
" a.pattern_code, " +
|
|
@@ -748,9 +667,9 @@ public interface YiZhuLuRuDao {
|
|
|
" self_flag ='', " +
|
|
|
" parent_flag='', " +
|
|
|
" a.exec_unit, " +
|
|
|
- " exec_unit_name = (select rtrim(name) from zd_unit_code where code = exec_unit) " +
|
|
|
- "FROM yz_pattern_order a, " +
|
|
|
- " yz_order_item b " +
|
|
|
+ " exec_unit_name = (select rtrim(name) from zd_unit_code with (NOLOCK) where code = exec_unit) " +
|
|
|
+ "FROM yz_pattern_order a with (NOLOCK), " +
|
|
|
+ " yz_order_item b with (NOLOCK) " +
|
|
|
"WHERE a.pattern_code = #{code} " +
|
|
|
" and isnull(a.group_no, '00') = '00' " +
|
|
|
" and a.order_code = b.order_code " +
|
|
@@ -760,17 +679,17 @@ public interface YiZhuLuRuDao {
|
|
|
" a.order_code, " +
|
|
|
" a.frequ_code, " +
|
|
|
" frequ_code_name = (select rtrim(comm) " +
|
|
|
- " from yz_order_frequency " +
|
|
|
+ " from yz_order_frequency with (NOLOCK) " +
|
|
|
" where yz_order_frequency.code = a.frequ_code), " +
|
|
|
" a.drug_specification, " +
|
|
|
" a.supply_code, " +
|
|
|
" supply_code_name = (select rtrim(supply_name) " +
|
|
|
- " from yz_supply_type " +
|
|
|
+ " from yz_supply_type with (NOLOCK) " +
|
|
|
" where yz_supply_type.supply_code = a.supply_code), " +
|
|
|
" a.drug_quan, " +
|
|
|
" a.instruction, " +
|
|
|
" a.mini_unit, " +
|
|
|
- " mini_unit_name = (select rtrim(name) from yp_zd_unit where code = mini_unit), " +
|
|
|
+ " mini_unit_name = (select rtrim(name) from yp_zd_unit with (NOLOCK) where code = mini_unit), " +
|
|
|
" a.drug_weight, " +
|
|
|
" a.drug_weight_unit, " +
|
|
|
" a.parent_no, " +
|
|
@@ -778,7 +697,7 @@ public interface YiZhuLuRuDao {
|
|
|
" a.drug_vol_unit, " +
|
|
|
" a.dose, " +
|
|
|
" a.dose_unit, " +
|
|
|
- " dose_unit_name = (select rtrim(name) from yp_zd_unit where code = dose_unit), " +
|
|
|
+ " dose_unit_name = (select rtrim(name) from yp_zd_unit with (NOLOCK) where code = dose_unit), " +
|
|
|
" a.exclu_act_order_no, " +
|
|
|
" a.discription, " +
|
|
|
" a.pattern_code, " +
|
|
@@ -791,9 +710,9 @@ public interface YiZhuLuRuDao {
|
|
|
" self_flag =b.self_flag, " +
|
|
|
" parent_flag='', " +
|
|
|
" a.exec_unit, " +
|
|
|
- " exec_unit_name = (select rtrim(name) from zd_unit_code where code = exec_unit) " +
|
|
|
- "FROM yz_pattern_order a, " +
|
|
|
- " view_yp_zd_dict_base_yf b " +
|
|
|
+ " exec_unit_name = (select rtrim(name) from zd_unit_code with (NOLOCK) where code = exec_unit) " +
|
|
|
+ "FROM yz_pattern_order a with (NOLOCK), " +
|
|
|
+ " view_yp_zd_dict_base_yf b with (NOLOCK) " +
|
|
|
"WHERE a.pattern_code = #{code} " +
|
|
|
" and a.group_no = b.group_no " +
|
|
|
" and a.order_code = b.code " +
|
|
@@ -804,7 +723,7 @@ public interface YiZhuLuRuDao {
|
|
|
|
|
|
@Select("select pattern_code," +
|
|
|
" rtrim(input_type) input_type " +
|
|
|
- "from yz_OrderPattern " +
|
|
|
+ "from yz_OrderPattern with (NOLOCK) " +
|
|
|
"where pattern_name = #{patternName} " +
|
|
|
" and input_id = #{inputId}" +
|
|
|
" and input_type <> 4 ")
|
|
@@ -813,7 +732,7 @@ public interface YiZhuLuRuDao {
|
|
|
|
|
|
@Select("select pattern_code," +
|
|
|
" rtrim(input_type) input_type " +
|
|
|
- "from yz_OrderPattern " +
|
|
|
+ "from yz_OrderPattern with (NOLOCK) " +
|
|
|
"where pattern_name = #{patternName} " +
|
|
|
"and input_type not in ('3','4') ")
|
|
|
yzOrderPattern gongGongMuBan(@Param("patternName") String patternName);
|
|
@@ -897,7 +816,7 @@ public interface YiZhuLuRuDao {
|
|
|
|
|
|
|
|
|
@Select("select * " +
|
|
|
- "from yz_OrderPattern " +
|
|
|
+ "from yz_OrderPattern with (NOLOCK) " +
|
|
|
"where pattern_code = #{code}")
|
|
|
yzOrderPattern huoQuMuBanXinXi(@Param("code") String code);
|
|
|
|
|
@@ -923,7 +842,7 @@ public interface YiZhuLuRuDao {
|
|
|
void shanChuMuBan(@Param("patternCode") String patternCode);
|
|
|
|
|
|
@Select("select collect_code " +
|
|
|
- "from yz_OrderPattern " +
|
|
|
+ "from yz_OrderPattern with (NOLOCK) " +
|
|
|
"where input_id = #{inputId} " +
|
|
|
" and collect_code = #{collectCode} ")
|
|
|
String chongFuShouCang(@Param("inputId") String inputId,
|