فهرست منبع

部门和角色

guarantee-lsq 1 سال پیش
والد
کامیت
c07b929eb4
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      platform-dao/src/main/resources/mapper/sb/SbInfoMapper.xml

+ 4 - 1
platform-dao/src/main/resources/mapper/sb/SbInfoMapper.xml

@@ -894,6 +894,9 @@ sb.check_type
     </update>
 
     <select id="countNum" parameterType="com.platform.dao.dto.sb.SbInfoDTO" resultType="java.lang.Integer">
+        <if test="typeFlag != null">
+            select count(1) from (
+        </if>
         select count(1) from t_sb_info
         <where>
             <if test="positionId != null and positionId != ''">
@@ -926,7 +929,7 @@ sb.check_type
             </choose>
         </where>
         <if test="typeFlag != null">
-            group by type_id
+            group by type_id ) t
         </if>
     </select>