|
|
@@ -122,11 +122,11 @@ public interface TriageDao {
|
|
|
"triage_staff=#{triageStaff},dept_code=#{deptCode},dept_name=#{deptName}," +
|
|
|
"room_code=#{roomCode},doctor_code=#{doctorCode},doctor_name=#{doctorName}, " +
|
|
|
"doctor_title=#{doctorTitle},room_no=#{roomNo},fz_no=#{patientNum} " +
|
|
|
- "where serial_no=#{serialNo}")
|
|
|
+ "where serial_no=${serialNo}")
|
|
|
void fenZhen(MzfzZdDeptRoom room);
|
|
|
|
|
|
// 复诊
|
|
|
- @Update("update mzfz_patient_order set fz_flag=1 where serial_no=#{serialNo}")
|
|
|
+ @Update("update mzfz_patient_order set fz_flag=1 where serial_no=${serialNo}")
|
|
|
int fuZhen(@Param("serialNo") Integer serialNo);
|
|
|
|
|
|
// 获取当前patient_num
|
|
|
@@ -139,7 +139,7 @@ public interface TriageDao {
|
|
|
|
|
|
// 重置病人分诊信息为空
|
|
|
@Update("update mzfz_patient_order set status_flag=0,room_code=null,call_time=null," +
|
|
|
- "room_no=null,slow_flag=null where serial_no=#{serialNo}")
|
|
|
+ "room_no=null,slow_flag=null where serial_no=${serialNo}")
|
|
|
int cancelTriage(@Param("serialNo") Integer serialNo);
|
|
|
|
|
|
// 获取所有挂号病人
|
|
|
@@ -182,26 +182,26 @@ public interface TriageDao {
|
|
|
|
|
|
@Select("select dept_code,rtrim(room_code) as room_code,serial_no,rtrim(name) as name,fz_no, " +
|
|
|
"dept_name,doctor_name,doctor_title,room_no " +
|
|
|
- "from mzfz_patient_order with(nolock) where serial_no=#{serialNo}")
|
|
|
+ "from mzfz_patient_order with(nolock) where serial_no=${serialNo}")
|
|
|
MessageForPush selectMessageForPush(@Param("serialNo") int serialNo);
|
|
|
|
|
|
@Update("update t_triage_notify_relation set notify_datetime=getdate() " +
|
|
|
- "where serial_no=#{serialNo}; " +
|
|
|
+ "where serial_no=${serialNo}; " +
|
|
|
"update mzfz_patient_order set status_flag=(case when status_flag<3 then 3 else status_flag end) " +
|
|
|
- "where serial_no=#{serialNo}")
|
|
|
+ "where serial_no=${serialNo}")
|
|
|
void updateNotifyDatetime(@Param("serialNo") int serialNo);
|
|
|
|
|
|
- @Delete("delete from t_triage_notify_relation where serial_no=#{serialNo}")
|
|
|
+ @Delete("delete from t_triage_notify_relation where serial_no=${serialNo}")
|
|
|
void deleteNotifyRelation(@Param("serialNo") int serialNo);
|
|
|
|
|
|
- @Insert("insert into t_triage_notify_relation(serial_no, socket_sid, room_code) values (#{serialNo}, #{sid}, #{roomCode})")
|
|
|
+ @Insert("insert into t_triage_notify_relation(serial_no, socket_sid, room_code) values (${serialNo}, #{sid}, #{roomCode})")
|
|
|
void insertNotifyRelation(@Param("serialNo") int serialNo, @Param("sid") String sid, @Param("roomCode") String roomCode);
|
|
|
|
|
|
- @Select("select * from t_triage_notify_relation where serial_no=#{serialNo}")
|
|
|
+ @Select("select * from t_triage_notify_relation where serial_no=${serialNo}")
|
|
|
TriageNotifyRelation selectTriageNotifyRelation(@Param("serialNo") int serialNo);
|
|
|
|
|
|
@Select("select rtrim(name) as name,visit_date,dept_name " +
|
|
|
- "from mzfz_patient_order with(nolock) where serial_no=#{serialNo}")
|
|
|
+ "from mzfz_patient_order with(nolock) where serial_no=${serialNo}")
|
|
|
MessageForPush selectVipRegMessage(@Param("serialNo") int serialNo);
|
|
|
|
|
|
@Select("select code from t_triage_user_depts where isnull(del_flag,0)=0 " +
|