|
@@ -121,7 +121,7 @@ public interface YiZhuLuRuDao {
|
|
|
default List<XinZhenYzActOrder> selectOrderNo(@Param(Constants.WRAPPER) QueryWrapper<?> wq) {
|
|
|
String fullSql = WrapperUtils.getFullSql(wq);
|
|
|
List<XinZhenYzActOrder> xinZhenYzActOrders = this.selectOrderNoByOld(fullSql);
|
|
|
- List<XinZhenYzActOrder> xinZhenYzActOrders1 = this.selectOrderNoByNew(fullSql);
|
|
|
+ List<XinZhenYzActOrder> xinZhenYzActOrders1 = this.selectOrderNoByNew("status_flag = '1' and " + fullSql);
|
|
|
List<XinZhenYzActOrder> result = new ArrayList<>();
|
|
|
result.addAll(xinZhenYzActOrders1);
|
|
|
result.addAll(xinZhenYzActOrders);
|
|
@@ -242,7 +242,7 @@ public interface YiZhuLuRuDao {
|
|
|
"from view_xc_all_yz a with (NOLOCK) left join " +
|
|
|
"zy_order_zk b with (NOLOCK) on (a.act_order_no = b.act_order_no) left join " +
|
|
|
"yz_act_record_kss kss on (a.act_order_no = kss.act_order_no) " +
|
|
|
- "where status_flag = '1' and ${sql} ")
|
|
|
+ "where ${sql} ")
|
|
|
List<XinZhenYzActOrder> selectOrderNoByNew(String sql);
|
|
|
|
|
|
|
|
@@ -1651,4 +1651,123 @@ public interface YiZhuLuRuDao {
|
|
|
"where a.serial <> '00' " +
|
|
|
" and b.drug_flag in ('1', '2', '3', '4','6') and ${ew.sqlSegment} ")
|
|
|
List<PrintOrderVo.DrugData> selectPoisonousHempByConfirm(@Param(Constants.WRAPPER) Wrapper<?> qw);
|
|
|
+
|
|
|
+
|
|
|
+ @Insert("insert into yz_act_order (act_order_no, status_flag, frequ_code, parent_no, inpatient_no, admiss_times, order_code,\n" +
|
|
|
+ " order_time,\n" +
|
|
|
+ " enter_time,\n" +
|
|
|
+ " enter_oper, start_time, end_time, infant_flag, drug_flag, supply_code, performance_time,\n" +
|
|
|
+ " physician, confirm_time, signer, modifier, status_time, drug_quan, instruction,\n" +
|
|
|
+ " drug_specification, mini_unit, drug_weight, drug_weight_unit, print_order_change,\n" +
|
|
|
+ " self_buy, eat_card_flag, drug_volume, drug_vol_unit, dose, dose_unit, drug_occ, print_order,\n" +
|
|
|
+ " print_order_once, print_order_anew, print_infusion, exclu_back_time, exclu_act_order_no,\n" +
|
|
|
+ " order_name, discription, del_flag, pay_self, serial, group_no, ward_code, yb_self_flag,\n" +
|
|
|
+ " doctor_flag, dept_code, exec_unit, cl_code, zy_serial_no, executer1, executer2, reg_flag,\n" +
|
|
|
+ " msg_flag, exec_time, exec_id, ps_status, ps_oper, ps_time, exec_id2, act_order_no2,\n" +
|
|
|
+ " print_page, print_page_once, print_order_change_end, emergency_flag, req_receive_flag,\n" +
|
|
|
+ " inspect_stuff, charge_status, ps_result_time, kf_flag, modifier_oper, pass_flag, pass_id,\n" +
|
|
|
+ " pass_date, pass_comment, refer_physician, consult_physician, req_no)\n" +
|
|
|
+ "select ${pa.actOrderNo},\n" +
|
|
|
+ " '2',\n" +
|
|
|
+ " 'ONCE',\n" +
|
|
|
+ " #{pa.parentNo,jdbcType=DECIMAL},\n" +
|
|
|
+ " inpatient_no,\n" +
|
|
|
+ " admiss_times,\n" +
|
|
|
+ " order_code,\n" +
|
|
|
+ " order_time,\n" +
|
|
|
+ " enter_time,\n" +
|
|
|
+ " enter_oper,\n" +
|
|
|
+ " start_time,\n" +
|
|
|
+ " end_time,\n" +
|
|
|
+ " infant_flag,\n" +
|
|
|
+ " drug_flag,\n" +
|
|
|
+ " supply_code,\n" +
|
|
|
+ " performance_time,\n" +
|
|
|
+ " physician,\n" +
|
|
|
+ " confirm_time,\n" +
|
|
|
+ " signer,\n" +
|
|
|
+ " modifier,\n" +
|
|
|
+ " status_time,\n" +
|
|
|
+ " drug_quan,\n" +
|
|
|
+ " instruction,\n" +
|
|
|
+ " drug_specification,\n" +
|
|
|
+ " mini_unit,\n" +
|
|
|
+ " drug_weight,\n" +
|
|
|
+ " drug_weight_unit,\n" +
|
|
|
+ " print_order_change,\n" +
|
|
|
+ " self_buy,\n" +
|
|
|
+ " eat_card_flag,\n" +
|
|
|
+ " drug_volume,\n" +
|
|
|
+ " drug_vol_unit,\n" +
|
|
|
+ " dose,\n" +
|
|
|
+ " dose_unit,\n" +
|
|
|
+ " drug_occ,\n" +
|
|
|
+ " print_order,\n" +
|
|
|
+ " print_order_once,\n" +
|
|
|
+ " print_order_anew,\n" +
|
|
|
+ " print_infusion,\n" +
|
|
|
+ " exclu_back_time,\n" +
|
|
|
+ " exclu_act_order_no,\n" +
|
|
|
+ " order_name,\n" +
|
|
|
+ " discription,\n" +
|
|
|
+ " del_flag,\n" +
|
|
|
+ " pay_self,\n" +
|
|
|
+ " serial,\n" +
|
|
|
+ " group_no,\n" +
|
|
|
+ " ward_code,\n" +
|
|
|
+ " yb_self_flag,\n" +
|
|
|
+ " doctor_flag,\n" +
|
|
|
+ " dept_code,\n" +
|
|
|
+ " exec_unit,\n" +
|
|
|
+ " cl_code,\n" +
|
|
|
+ " zy_serial_no,\n" +
|
|
|
+ " executer1,\n" +
|
|
|
+ " executer2,\n" +
|
|
|
+ " reg_flag,\n" +
|
|
|
+ " msg_flag,\n" +
|
|
|
+ " exec_time,\n" +
|
|
|
+ " exec_id,\n" +
|
|
|
+ " ps_status,\n" +
|
|
|
+ " ps_oper,\n" +
|
|
|
+ " ps_time,\n" +
|
|
|
+ " exec_id2,\n" +
|
|
|
+ " act_order_no2,\n" +
|
|
|
+ " print_page,\n" +
|
|
|
+ " print_page_once,\n" +
|
|
|
+ " print_order_change_end,\n" +
|
|
|
+ " emergency_flag,\n" +
|
|
|
+ " req_receive_flag,\n" +
|
|
|
+ " inspect_stuff,\n" +
|
|
|
+ " charge_status,\n" +
|
|
|
+ " ps_result_time,\n" +
|
|
|
+ " kf_flag,\n" +
|
|
|
+ " modifier_oper,\n" +
|
|
|
+ " pass_flag,\n" +
|
|
|
+ " pass_id,\n" +
|
|
|
+ " pass_date,\n" +
|
|
|
+ " pass_comment,\n" +
|
|
|
+ " refer_physician,\n" +
|
|
|
+ " consult_physician,\n" +
|
|
|
+ " req_no\n" +
|
|
|
+ "from yz_act_order\n" +
|
|
|
+ "where act_order_no = ${oldOrderNo};" +
|
|
|
+ "insert into yz_act_record_kss (act_order_no, charge_code, yyfs, ssqk, yysj, input_id, input_date, inpatient_no,\n" +
|
|
|
+ " admiss_times)\n" +
|
|
|
+ "SELECT ${pa.actOrderNo},\n" +
|
|
|
+ " charge_code,\n" +
|
|
|
+ " yyfs,\n" +
|
|
|
+ " ssqk,\n" +
|
|
|
+ " yysj,\n" +
|
|
|
+ " input_id,\n" +
|
|
|
+ " input_date,\n" +
|
|
|
+ " inpatient_no,\n" +
|
|
|
+ " admiss_times\n" +
|
|
|
+ "from yz_act_record_kss\n" +
|
|
|
+ "where act_order_no = ${oldOrderNo};" +
|
|
|
+ "update new_act_order_recording\n" +
|
|
|
+ "set authorized_doctor = (select authorized_doctor\n" +
|
|
|
+ " from new_act_order_recording a\n" +
|
|
|
+ " where a.act_order_no = ${oldOrderNo})\n" +
|
|
|
+ "where act_order_no = ${pa.actOrderNo};")
|
|
|
+ void copyOrderToOnce(XinZhenYzActOrder pa, BigDecimal oldOrderNo);
|
|
|
}
|