소스 검색

优化代码

wuxw 4 년 전
부모
커밋
7d4c11af9d
1개의 변경된 파일과 2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      java110-db/src/main/resources/mapper/community/InspectionServiceDaoImplMapper.xml

+ 2 - 1
java110-db/src/main/resources/mapper/community/InspectionServiceDaoImplMapper.xml

@@ -112,7 +112,8 @@
         <if test="bId !=null and bId != ''">
         <if test="bId !=null and bId != ''">
             and t.b_id= #{bId}
             and t.b_id= #{bId}
         </if>
         </if>
-        group by t.inspection_id
+        <!--这里注释 因为 MySQL 8.0  这个写法不合适,如果引起其他bug 请考虑MySQL 8.0 的写法-->
+        <!--group by t.inspection_id-->
         order by t.create_time desc
         order by t.create_time desc
         <if test="page != -1 and page != null ">
         <if test="page != -1 and page != null ">
             limit #{page}, #{row}
             limit #{page}, #{row}