|
@@ -79,15 +79,15 @@ public interface ForceInAndOutDao {
|
|
|
void transferToYzActOrder(SimplePatient patient);
|
|
|
|
|
|
@Insert("insert into yz_act_order select *from yz_inact_order " +
|
|
|
- "where inpatient_no=#{babyNoBegin} and inpatient_no<=#{babyNoEnd} and admiss_times=#{times}")
|
|
|
+ "where inpatient_no>=#{babyNoBegin} and inpatient_no<=#{babyNoEnd} and admiss_times=#{times}")
|
|
|
void transferToYzActOrderBaby(SimplePatient patient);
|
|
|
|
|
|
@Delete("delete from yz_inact_order where inpatient_no=#{patNo} and admiss_times=#{times}")
|
|
|
- void deleteYzActOrder(SimplePatient patient);
|
|
|
+ void deleteYzInactOrder(SimplePatient patient);
|
|
|
|
|
|
- @Delete("delete from yz_inact_order where inpatient_no=#{babyNoBegin} " +
|
|
|
+ @Delete("delete from yz_inact_order where inpatient_no>=#{babyNoBegin} " +
|
|
|
"and inpatient_no<=#{babyNoEnd} and admiss_times=#{times}")
|
|
|
- void deleteYzActOrderBaby(SimplePatient patient);
|
|
|
+ void deleteYzInactOrderBaby(SimplePatient patient);
|
|
|
|
|
|
@Select("select count(1) from yz_act_order where inpatient_no=#{patNo} and admiss_times=#{times} " +
|
|
|
"and status_flag>'2' and isnull(group_no,'00')='00' and order_code in " +
|
|
@@ -116,6 +116,21 @@ public interface ForceInAndOutDao {
|
|
|
"where inpatient_no>=#{babyNoBegin} and inpatient_no<=#{babyNoEnd} and admiss_times=#{times}")
|
|
|
void transferToZyInactpatientBaby(SimplePatient patient);
|
|
|
|
|
|
+ @Insert("insert into yz_inact_order select * from yz_act_order " +
|
|
|
+ "where inpatient_no=#{patNo} and admiss_times=#{times}")
|
|
|
+ void transferToYzInactOrder(SimplePatient patient);
|
|
|
+
|
|
|
+ @Insert("insert into yz_inact_order select *from yz_act_order " +
|
|
|
+ "where inpatient_no>=#{babyNoBegin} and inpatient_no<=#{babyNoEnd} and admiss_times=#{times}")
|
|
|
+ void transferToYzInactOrderBaby(SimplePatient patient);
|
|
|
+
|
|
|
+ @Delete("delete from yz_act_order where inpatient_no=#{patNo} and admiss_times=#{times}")
|
|
|
+ void deleteYzActOrder(SimplePatient patient);
|
|
|
+
|
|
|
+ @Delete("delete from yz_act_order where inpatient_no>=#{babyNoBegin} " +
|
|
|
+ "and inpatient_no<=#{babyNoEnd} and admiss_times=#{times}")
|
|
|
+ void deleteYzActOrderBaby(SimplePatient patient);
|
|
|
+
|
|
|
@Update("update zy_adt set dis_date=#{disDate},orig_ward=#{dept},orig_dept=#{ward},orig_bed=#{bedNo} " +
|
|
|
"where inpatient_no=#{patNo} and admiss_times=#{times} and trans_times=0")
|
|
|
void updateZyAdt(SimplePatient patient);
|