|
|
@@ -11,6 +11,7 @@ import thyyxxk.webserver.entity.inpatient.patient.Overview;
|
|
|
import thyyxxk.webserver.entity.inpatient.patient.Patient;
|
|
|
import thyyxxk.webserver.entity.login.UserInfo;
|
|
|
import thyyxxk.webserver.entity.zhuyuanyisheng.DoctorSOrderFee;
|
|
|
+import thyyxxk.webserver.entity.zhuyuanyisheng.OneClickOrder;
|
|
|
import thyyxxk.webserver.entity.zhuyuanyisheng.ZyOrderZk;
|
|
|
import thyyxxk.webserver.entity.zhuyuanyisheng.yizhuluru.*;
|
|
|
|
|
|
@@ -470,16 +471,16 @@ public interface YiZhuLuRuDao {
|
|
|
* @param orderNo 医嘱号
|
|
|
* @return 数据
|
|
|
*/
|
|
|
- @Select("select count(1) " +
|
|
|
+ @Select("select rtrim(status_flag) status_flag, order_name, act_order_no,frequ_code " +
|
|
|
"from yz_act_order with (NOLOCK) " +
|
|
|
"where inpatient_no = #{patNo} " +
|
|
|
" and admiss_times = #{times} " +
|
|
|
" and status_flag in (1, 2)" +
|
|
|
" and frequ_code <> 'ONCE' " +
|
|
|
" and act_order_no <> #{orderNo}")
|
|
|
- Integer thereAreUnexecutedOrders(String patNo,
|
|
|
- Integer times,
|
|
|
- BigDecimal orderNo);
|
|
|
+ List<XinZhenYzActOrder> thereAreUnexecutedOrders(String patNo,
|
|
|
+ Integer times,
|
|
|
+ BigDecimal orderNo);
|
|
|
|
|
|
@Select("select count(1) " +
|
|
|
"from yz_act_order " +
|
|
|
@@ -956,7 +957,8 @@ public interface YiZhuLuRuDao {
|
|
|
" ledger_sn = (select max(ledger_sn) " +
|
|
|
" from zy_ledger_file with (NOLOCK) " +
|
|
|
" where zy_actpatient.inpatient_no = zy_ledger_file.inpatient_no " +
|
|
|
- " and zy_actpatient.admiss_times = zy_ledger_file.admiss_times) " +
|
|
|
+ " and zy_actpatient.admiss_times = zy_ledger_file.admiss_times)," +
|
|
|
+ "consult_physician,zy_serial_no " +
|
|
|
" from zy_actpatient with (NOLOCK) " +
|
|
|
"where inpatient_no = #{patNo} " +
|
|
|
" and admiss_times = #{times} ")
|
|
|
@@ -1419,5 +1421,27 @@ public interface YiZhuLuRuDao {
|
|
|
" and admiss_times = #{yz.admissTimes} order by charge_date desc ")
|
|
|
List<ZyDetailCharge> selectOrderFee(@Param("yz") XinZhenYzActOrder yz);
|
|
|
|
|
|
-
|
|
|
+ @Update("update yz_act_order " +
|
|
|
+ "set modifier = #{userCode}, " +
|
|
|
+ " end_time = '', " +
|
|
|
+ " exclu_act_order_no = '' " +
|
|
|
+ "where inpatient_no = #{param.patNo} " +
|
|
|
+ " and admiss_times = #{param.times} " +
|
|
|
+ " and status_flag in ('3', '4') " +
|
|
|
+ " and frequ_code <> 'ONCE' " +
|
|
|
+ " and end_time is null")
|
|
|
+ int oneClickStopOrder(@Param("param") OneClickOrder param,
|
|
|
+ @Param("userCode") String userCode);
|
|
|
+
|
|
|
+ @Insert("insert into yz_act_order (act_order_no, inpatient_no, admiss_times, order_code, order_time, frequ_code, enter_time, " +
|
|
|
+ " enter_oper, start_time, end_time, infant_flag, drug_flag, " +
|
|
|
+ " physician, confirm_time, signer, modifier, status_flag, status_time, " +
|
|
|
+ " instruction, order_name, pay_self, serial, group_no, ward_code, " +
|
|
|
+ " doctor_flag, dept_code, exec_unit, zy_serial_no, refer_physician, consult_physician) " +
|
|
|
+ "values (#{one.orderNo}, #{one.patNo}, #{one.times}, '10507', #{one.nowDate}, 'ONCE', #{one.nowDate}," +
|
|
|
+ " #{one.userCode},#{one.nowDate}, null, #{p.infantFlag}, 'o'," +
|
|
|
+ " #{one.userCode}, #{one.nowDate}, #{one.userCode}, #{one.userCode}, '5', #{one.nowDate}," +
|
|
|
+ " '一键停止医嘱' + N'${one.dateStr}' , #{one.name}, '0','00', '00', #{p.deptCode}, '1', #{p.deptCode}, #{p.zkWard}, '', #{p.referPhysician}, #{p.consultPhysician})")
|
|
|
+ void insertOneClickStopOrder(@Param("one") OneClickOrder one,
|
|
|
+ @Param("p") XinZhenYiZhu p);
|
|
|
}
|