lihong 11 mēneši atpakaļ
vecāks
revīzija
f4ee5b2ec5

+ 2 - 2
src/main/java/cn/hnthyy/thmz/mapper/thmz/ClinicMapper.java

@@ -65,7 +65,7 @@ public interface ClinicMapper {
      */
     @Select({"<script>" +
             "select top ${pageSize} id,patient_id, patient_name, times, receipt_no,dept_code,doctor_code,icd_code,icd_text,op_id,op_day,first_or_not,clinic_status,jz_flag,zgmztczf,exp_content  from ( "+
-            "select  ROW_NUMBER() OVER (ORDER BY a.id desc ) AS RowNumber  a.id,patient_id, patient_name, times, receipt_no,dept_code,doctor_code,icd_code,icd_text,op_id,op_day,first_or_not,clinic_status,jz_flag,zgmztczf,exp_content from t_clinic a join  (" +
+            "select  ROW_NUMBER() OVER (ORDER BY a.id desc ) AS RowNumber , a.id,patient_id, patient_name, times, receipt_no,dept_code,doctor_code,icd_code,icd_text,op_id,op_day,first_or_not,clinic_status,jz_flag,zgmztczf,exp_content from t_clinic a join  (" +
             "select id from t_clinic where 1=1" +
             "<when test='beginDate!=null'>" +
             " and op_day  <![CDATA[>=]]>#{beginDate} " +
@@ -108,7 +108,7 @@ public interface ClinicMapper {
             "<when test='commonParams!=null'>" +
             " and (patient_name like #{commonParams} or patient_id like #{commonParams})" +
             "</when>" +
-            " )b on a.id=b.id ) aa  where RowNumber  &gt;= (#{offset}/#{pageSize})*#{pageSize} "
+            " )b on a.id=b.id ) aa  where RowNumber  &gt; (#{offset}/#{pageSize})*#{pageSize} "
             + "</script>"})
     List<Clinic> selectClinicWithPage(Clinic clinic);