|
@@ -14,8 +14,8 @@ public interface MzfzPatientOrderMapper {
|
|
|
* @param mzfzPatientOrder
|
|
|
* @return
|
|
|
*/
|
|
|
- @Insert("insert into mzfz_patient_order (patient_id,times,name,dept_code,room_code,doctor_code,gh_no,visit_date,slow_flag,serial_no,req_type,req_order,ampm,fz_no)" +
|
|
|
- " values(#{patientId},#{times},#{name},#{deptCode},#{roomCode},#{doctorCode},#{ghNo},#{visitDate,jdbcType=TIMESTAMP},#{slowFlag},#{serialNo},#{reqType},#{reqOrder},#{ampm},9999) ")
|
|
|
+ @Insert("insert into mzfz_patient_order (patient_id,times,name,dept_code,room_code,doctor_code,gh_no,visit_date,slow_flag,serial_no,req_type,req_order,ampm,fz_no,fz_flag)" +
|
|
|
+ " values(#{patientId},#{times},#{name},#{deptCode},#{roomCode},#{doctorCode},#{ghNo},#{visitDate,jdbcType=TIMESTAMP},#{slowFlag},#{serialNo},#{reqType},#{reqOrder},#{ampm},9999,'0') ")
|
|
|
int insertMzfzPatientOrder(MzfzPatientOrder mzfzPatientOrder);
|
|
|
|
|
|
|
|
@@ -63,7 +63,7 @@ public interface MzfzPatientOrderMapper {
|
|
|
* @return
|
|
|
*/
|
|
|
@Select({"<script>",
|
|
|
- "select top ${pageSize} rtrim(patient_id) patient_id,times,name,dept_code,room_code,doctor_code,gh_no,visit_date,slow_flag,serial_no,req_type,req_order,ampm,fz_no,status_flag,call_time FROM (SELECT ROW_NUMBER() OVER (ORDER BY mzfz_patient_order_page.fz_no asc) AS RowNumber,",
|
|
|
+ "select top ${pageSize} rtrim(patient_id) patient_id,times,name,dept_code,room_code,doctor_code,gh_no,visit_date,slow_flag,serial_no,req_type,req_order,ampm,fz_no,status_flag,call_time,fz_flag FROM (SELECT ROW_NUMBER() OVER (ORDER BY mzfz_patient_order_page.fz_no asc) AS RowNumber,",
|
|
|
"* from ${tableName} mzfz_patient_order_page WITH(NOLOCK) where 1=1 ",
|
|
|
"<when test='statusFlagList!=null'>",
|
|
|
" and status_flag in ",
|
|
@@ -132,7 +132,7 @@ public interface MzfzPatientOrderMapper {
|
|
|
* @return
|
|
|
*/
|
|
|
@Select({"<script>",
|
|
|
- "select top ${pageSize} rtrim(patient_id) patient_id,times,name,dept_code,room_code,doctor_code,gh_no,visit_date,slow_flag,serial_no,req_type,req_order,ampm,fz_no,status_flag,call_time FROM (SELECT ROW_NUMBER() OVER (ORDER BY mzfz_patient_order_page.fz_no asc) AS RowNumber,",
|
|
|
+ "select top ${pageSize} rtrim(patient_id) patient_id,times,name,dept_code,room_code,doctor_code,gh_no,visit_date,slow_flag,serial_no,req_type,req_order,ampm,fz_no,status_flag,call_time,fz_flag FROM (SELECT ROW_NUMBER() OVER (ORDER BY mzfz_patient_order_page.fz_no asc) AS RowNumber,",
|
|
|
"* from ${tableName} mzfz_patient_order_page WITH(NOLOCK) where 1=1 ",
|
|
|
"<when test='statusFlagList!=null'>",
|
|
|
" and status_flag in ",
|
|
@@ -171,7 +171,7 @@ public interface MzfzPatientOrderMapper {
|
|
|
* @param serialNo
|
|
|
* @return
|
|
|
*/
|
|
|
- @Select("select rtrim(patient_id) patient_id,times,name,dept_code,room_code,doctor_code,gh_no,visit_date,slow_flag,serial_no,req_type,req_order,ampm,fz_no,status_flag,call_time FROM mzfz_patient_order WITH(NOLOCK) where serial_no=#{serialNo}")
|
|
|
+ @Select("select rtrim(patient_id) patient_id,times,name,dept_code,room_code,doctor_code,gh_no,visit_date,slow_flag,serial_no,req_type,req_order,ampm,fz_no,status_flag,call_time,fz_flag FROM mzfz_patient_order WITH(NOLOCK) where serial_no=#{serialNo}")
|
|
|
MzfzPatientOrder selectBySerialNo(@Param("serialNo") String serialNo);
|
|
|
|
|
|
/**
|