|
|
@@ -183,18 +183,18 @@ public interface TriageDao {
|
|
|
"</script>")
|
|
|
List<MzfzPatientOrder> getAllPatients(@Param("deptCodes") String[] deptCodes, @Param("content") String content);
|
|
|
|
|
|
- @Select("select * from mz_ysh_tzxx where patient_id=#{patientId} and datediff(day, visit_date, getdate())=0")
|
|
|
- MzYshTzxx getMzVitalSigns(@Param("patientId") String patientId);
|
|
|
+ @Select("select * from mz_ysh_tzxx where patient_id=#{patientId} and times=#{times}")
|
|
|
+ MzYshTzxx getMzVitalSigns(String patientId, Integer times);
|
|
|
|
|
|
@Update("update mz_ysh_tzxx set value_sg=#{valueSg}, value_tz=#{valueTz}, value_tw=#{valueTw}, " +
|
|
|
"value_mb=#{valueMb}, value_hx=#{valueHx},value_ssy=#{valueSsy},value_szy=#{valueSzy}, " +
|
|
|
- "visit_remark=#{visitRemark} where patient_id=#{patientId} and datediff(day, visit_date, getdate())=0")
|
|
|
+ "visit_remark=#{visitRemark} where patient_id=#{patientId} and times=#{times}")
|
|
|
void updateMzVitalSigns(MzYshTzxx param);
|
|
|
|
|
|
- @Insert("insert into mz_ysh_tzxx (patient_id, visit_date, value_sg, value_tz, value_tw, value_mb, " +
|
|
|
- "value_hx, value_ssy, value_szy, visit_remark) values " +
|
|
|
+ @Insert("insert into mz_ysh_tzxx (patient_id,visit_date,value_sg,value_tz,value_tw,value_mb, " +
|
|
|
+ "value_hx,value_ssy,value_szy,visit_remark,times) values " +
|
|
|
"(#{patientId},#{visitDate},#{valueSg},#{valueTz},#{valueTw},#{valueMb}, " +
|
|
|
- "#{valueHx},#{valueSsy},#{valueSzy},#{visitRemark})")
|
|
|
+ "#{valueHx},#{valueSsy},#{valueSzy},#{visitRemark},#{times})")
|
|
|
void insertMzVitalSigns(MzYshTzxx param);
|
|
|
|
|
|
@Select("select dept_code,rtrim(room_code) as room_code,serial_no,rtrim(name) as name,fz_no, " +
|