|
@@ -29,7 +29,7 @@ public interface JianYanJianChaDao {
|
|
|
|
|
|
@Select("select order_code code, " +
|
|
|
" rtrim(order_name) value " +
|
|
|
- "from ysh_yj_req " +
|
|
|
+ "from ysh_yj_req with (NOLOCK) " +
|
|
|
"where inpatient_no = #{patNo} " +
|
|
|
" and admiss_times = #{times} " +
|
|
|
" and bed_no = #{bedNo} " +
|
|
@@ -44,7 +44,7 @@ public interface JianYanJianChaDao {
|
|
|
|
|
|
@Select("<script>" +
|
|
|
"select order_name,req_no,act_order_no, start_time,inpatient_no,admiss_times,receive_flag " +
|
|
|
- "from ysh_yj_req " +
|
|
|
+ "from ysh_yj_req with (NOLOCK) " +
|
|
|
"where inpatient_no = #{patNo}" +
|
|
|
" and admiss_times = #{times} " +
|
|
|
" and req_type = '3' " +
|
|
@@ -66,19 +66,19 @@ public interface JianYanJianChaDao {
|
|
|
@Select("select *, " +
|
|
|
" req_dept_name = (select rtrim(name) from zd_unit_code where code = req_dept), " +
|
|
|
" req_doctor_name = (select rtrim(name) from a_employee_mi where code = req_doctor) " +
|
|
|
- "from ysh_yj_req " +
|
|
|
+ "from ysh_yj_req with (NOLOCK) " +
|
|
|
"where req_no = #{reqNo}")
|
|
|
YshYjReq huoQuShengQingXiangQing(@Param("reqNo") Integer reqNo);
|
|
|
|
|
|
@Select("select sex, " +
|
|
|
" home_street," +
|
|
|
" home_tel " +
|
|
|
- "from a_patient_mi " +
|
|
|
+ "from a_patient_mi with (NOLOCK) " +
|
|
|
"where inpatient_no = #{patNo}")
|
|
|
PatientTemp huoQuHuanZheXinXi(@Param("patNo") String patNo);
|
|
|
|
|
|
@Select("select responce_type_name = (select rtrim(name) from zy_zd_responce_type where code = responce_type) " +
|
|
|
- "from zy_actpatient " +
|
|
|
+ "from zy_actpatient with (NOLOCK) " +
|
|
|
"where inpatient_no = #{patNo}")
|
|
|
String huoQuHuanZheShenFen(@Param("patNo") String patNo);
|
|
|
|
|
@@ -91,7 +91,7 @@ public interface JianYanJianChaDao {
|
|
|
" comment6, " +
|
|
|
" comment7, " +
|
|
|
" comment8 " +
|
|
|
- "from jc_zd_class " +
|
|
|
+ "from jc_zd_class with (NOLOCK) " +
|
|
|
"where code = #{code}")
|
|
|
JcZdClass daYingXiangQing(@Param("code") String code);
|
|
|
|
|
@@ -134,7 +134,7 @@ public interface JianYanJianChaDao {
|
|
|
@Select("<script>" +
|
|
|
"SELECT tc_name name, " +
|
|
|
" tc_no code " +
|
|
|
- "FROM zy_tc_yj " +
|
|
|
+ "FROM zy_tc_yj with (NOLOCK) " +
|
|
|
"where isnull(del_flag, '0') <> '1' " +
|
|
|
" and req_type = #{reqType} " +
|
|
|
"<if test=\"leiXing == 2\">" +
|
|
@@ -158,9 +158,9 @@ public interface JianYanJianChaDao {
|
|
|
" a.exec_dept as execDept," +
|
|
|
" (select rtrim(name) from zd_unit_code where code = a.exec_dept) execDeptName," +
|
|
|
" getdate() as startTime " +
|
|
|
- "FROM yz_order_item a, " +
|
|
|
- " jc_zd_item b, " +
|
|
|
- " ysh_zd_part_code c " +
|
|
|
+ "FROM yz_order_item a with (NOLOCK), " +
|
|
|
+ " jc_zd_item b with (NOLOCK), " +
|
|
|
+ " ysh_zd_part_code c with (NOLOCK) " +
|
|
|
"where a.order_type = #{orderType} " +
|
|
|
" and isnull(b.bw_code, 0) = #{bwCode} and " +
|
|
|
" isnull(a.del_flag, '') <> '1' and " +
|
|
@@ -175,12 +175,12 @@ public interface JianYanJianChaDao {
|
|
|
" rtrim(a.yb_comment) ybComment, " +
|
|
|
" checkFlag='0', " +
|
|
|
" a.exec_dept as execDept, " +
|
|
|
- " (select rtrim(name) from zd_unit_code where code = a.exec_dept) execDeptName, " +
|
|
|
+ " (select rtrim(name) from zd_unit_code with (NOLOCK) where code = a.exec_dept) execDeptName, " +
|
|
|
" getdate() as startTime, " +
|
|
|
" b.sample_code as inspectStuff," +
|
|
|
- " (select name from jy_zd_sample where jy_zd_sample.code = b.sample_code) as inspectStuffName " +
|
|
|
- "FROM yz_order_item a, " +
|
|
|
- " jy_zd_item b " +
|
|
|
+ " (select name from jy_zd_sample with (NOLOCK) where jy_zd_sample.code = b.sample_code) as inspectStuffName " +
|
|
|
+ "FROM yz_order_item a with (NOLOCK), " +
|
|
|
+ " jy_zd_item b with (NOLOCK) " +
|
|
|
"where jy_type = #{code} " +
|
|
|
" and isnull(a.del_flag, '') <> '1' " +
|
|
|
" and a.order_code = b.zy_order_code " +
|
|
@@ -188,7 +188,7 @@ public interface JianYanJianChaDao {
|
|
|
List<Map<String, String>> chaKanJianYanXiangQing(@Param("code") String code);
|
|
|
|
|
|
@Select("select op_id,tc_exec " +
|
|
|
- "from zy_tc_yj " +
|
|
|
+ "from zy_tc_yj with (NOLOCK) " +
|
|
|
"where tc_no = #{code}")
|
|
|
ZyTcYj jianChaLuRuRen(String code);
|
|
|
|
|
@@ -205,13 +205,13 @@ public interface JianYanJianChaDao {
|
|
|
" '0' as checkFlag, " +
|
|
|
" a.exec_dept as execDept, " +
|
|
|
" a.order_type as orderType, " +
|
|
|
- " (select rtrim(name) from zd_unit_code where code = a.exec_dept) execDeptName, " +
|
|
|
+ " (select rtrim(name) from zd_unit_code with (NOLOCK) where code = a.exec_dept) execDeptName, " +
|
|
|
" getdate() as startTime," +
|
|
|
" inspect_stuff, " +
|
|
|
- " inspectStuffName = (select rtrim(name) from jy_zd_sample where code = inspect_stuff) " +
|
|
|
- "FROM yz_order_item a, " +
|
|
|
- " zy_tc_detail_yj b, " +
|
|
|
- " zy_tc_yj c " +
|
|
|
+ " inspectStuffName = (select rtrim(name) from jy_zd_sample with (NOLOCK) where code = inspect_stuff) " +
|
|
|
+ "FROM yz_order_item a with (NOLOCK), " +
|
|
|
+ " zy_tc_detail_yj b with (NOLOCK), " +
|
|
|
+ " zy_tc_yj c with (NOLOCK) " +
|
|
|
"where b.tc_no = c.tc_no " +
|
|
|
" and b.tc_no = #{code} " +
|
|
|
" and c.req_type = #{reqType} " +
|
|
@@ -223,7 +223,7 @@ public interface JianYanJianChaDao {
|
|
|
|
|
|
@Select("<script>" +
|
|
|
"SELECT jc_text,name,code,wh_flag,op_id " +
|
|
|
- "FROM ysh_zd_yj_template " +
|
|
|
+ "FROM ysh_zd_yj_template with (NOLOCK) " +
|
|
|
"WHERE (py_code like #{name} or d_code like #{name} or name like #{name}) " +
|
|
|
"<if test=\"leiXing == 1\">" +
|
|
|
" and op_id = #{userCode} " +
|
|
@@ -240,7 +240,7 @@ public interface JianYanJianChaDao {
|
|
|
@Param("leiXing") Integer leiXing,
|
|
|
@Param("userCode") String userCode);
|
|
|
|
|
|
- @Select("select * from ysh_zd_yj_template where code = #{code}")
|
|
|
+ @Select("select * from ysh_zd_yj_template with (NOLOCK) where code = #{code}")
|
|
|
YshZdYjTemplate muBanShuJu(String code);
|
|
|
|
|
|
@Update("update ysh_zd_yj_template " +
|
|
@@ -266,13 +266,13 @@ public interface JianYanJianChaDao {
|
|
|
|
|
|
|
|
|
@Select("select diagnosis_code as code, diagnosis_name as name " +
|
|
|
- "from t_si_dl_dss_dns " +
|
|
|
+ "from t_si_dl_dss_dns with (NOLOCK) " +
|
|
|
"where (diagnosis_code like #{name} or diagnosis_name like #{name} or py_code like #{name})")
|
|
|
List<GetDropdownBox> yiBaoZhenDuan(String name);
|
|
|
|
|
|
@Select("SELECT rtrim(a.code) as code, " +
|
|
|
" rtrim(a.name) as name " +
|
|
|
- "FROM zd_icd_code a " +
|
|
|
+ "FROM zd_icd_code a with (NOLOCK) " +
|
|
|
"where (a.py_code like #{name} " +
|
|
|
" or a.code like #{name} " +
|
|
|
" or a.name like #{name}) " +
|
|
@@ -280,7 +280,7 @@ public interface JianYanJianChaDao {
|
|
|
List<GetDropdownBox> benYuanLinChuangZhenDuan(String name);
|
|
|
|
|
|
@Select("select tc_no " +
|
|
|
- "from zy_tc_yj " +
|
|
|
+ "from zy_tc_yj with (NOLOCK) " +
|
|
|
"where op_id = #{code} " +
|
|
|
" and tc_name = #{name}" +
|
|
|
" and req_type = #{reqType} ")
|
|
@@ -374,17 +374,17 @@ public interface JianYanJianChaDao {
|
|
|
" order_code, " +
|
|
|
" req_comment, " +
|
|
|
" req_doctor, " +
|
|
|
- " req_doctor_name= (select rtrim(name) from a_employee_mi where code = req_doctor), " +
|
|
|
+ " req_doctor_name= (select rtrim(name) from a_employee_mi with (NOLOCK) where code = req_doctor), " +
|
|
|
" req_dept, " +
|
|
|
- " req_dept_name = (select rtrim(name) from zd_unit_code where code = req_dept), " +
|
|
|
+ " req_dept_name = (select rtrim(name) from zd_unit_code with (NOLOCK) where code = req_dept), " +
|
|
|
" exec_dept, " +
|
|
|
- " exec_dept_name = (select rtrim(name) from zd_unit_code where code = exec_dept), " +
|
|
|
+ " exec_dept_name = (select rtrim(name) from zd_unit_code with (NOLOCK) where code = exec_dept), " +
|
|
|
" req_date, " +
|
|
|
" inspect_stuff, " +
|
|
|
- " inspect_stuff_name = (select rtrim(name) from jy_zd_sample where code = inspect_stuff), " +
|
|
|
+ " inspect_stuff_name = (select rtrim(name) from jy_zd_sample with (NOLOCK) where code = inspect_stuff), " +
|
|
|
" jz_flag," +
|
|
|
" receive_flag " +
|
|
|
- "from ysh_yj_req " +
|
|
|
+ "from ysh_yj_req with (NOLOCK) " +
|
|
|
"where inpatient_no = #{patNo} " +
|
|
|
" and admiss_times = #{times} " +
|
|
|
" and req_type = '2'" +
|
|
@@ -405,15 +405,15 @@ public interface JianYanJianChaDao {
|
|
|
|
|
|
@Select("SELECT rtrim(a.code) as code, " +
|
|
|
" rtrim(a.name) as name " +
|
|
|
- "FROM jy_zd_class a, " +
|
|
|
- " yz_order_item b " +
|
|
|
+ "FROM jy_zd_class a with (NOLOCK), " +
|
|
|
+ " yz_order_item b with (NOLOCK) " +
|
|
|
"where a.code = b.jy_type " +
|
|
|
" and isnull(b.del_flag, '') <> '1' " +
|
|
|
"group by a.code, a.name ")
|
|
|
IPage<JcZdClass> jianYanFenLei(IPage<JcZdClass> page);
|
|
|
|
|
|
|
|
|
- @Select("select rtrim(code) as code,name from jy_zd_sample " +
|
|
|
+ @Select("select rtrim(code) as code,name from jy_zd_sample with (NOLOCK) " +
|
|
|
"where (name like #{name} " +
|
|
|
" or py_code like #{name} " +
|
|
|
" or code like #{name} or d_code like #{name} )")
|
|
@@ -421,7 +421,7 @@ public interface JianYanJianChaDao {
|
|
|
|
|
|
|
|
|
@Select("select * " +
|
|
|
- "from ysh_yj_req where req_no = #{reqNo} and inpatient_no = #{patNo} and admiss_times = #{times}")
|
|
|
+ "from ysh_yj_req with (NOLOCK) where req_no = #{reqNo} and inpatient_no = #{patNo} and admiss_times = #{times}")
|
|
|
YshYjReq huoQuJianYanJianCha(@Param("reqNo") Integer reqNo,
|
|
|
@Param("patNo") String patNo,
|
|
|
@Param("times") Integer times);
|