czh 2 yıl önce
ebeveyn
işleme
33ed54d478

+ 8 - 3
sckw-modules/sckw-system/src/main/resources/mapper/KwsMenuDao.xml

@@ -273,9 +273,14 @@
       <if test="systemType != 1 and clientType != 3">
         and smr.del_flag = 0
       </if>
-    <if test="clientType != null">
-      and sm.client_type = #{clientType}
-    </if>
+      <choose>
+        <when test="clientType == 3">
+          and sm.client_type = 2
+        </when>
+        <otherwise>
+          and sm.client_type = #{clientType}
+        </otherwise>
+      </choose>
     <if test="name != null and name != ''">
       and sm.name = #{name, jdbcType=VARCHAR}
     </if>