xie.kaifeng 8 mesiacov pred
rodič
commit
d46356b6b4

+ 3 - 1
mtp3-century/src/main/resources/mapper/SystemmanagerroleMapper.xml

@@ -47,9 +47,11 @@
             <choose>
                 <when test="systemRoleVo.type != null and systemRoleVo.type == 1 ">
                     and smr.autoid &lt; 100
+                    and smr.systemtype = 1
                 </when>
                 <otherwise>
                     and smr.autoid >= 100
+                    and smr.systemtype = 2
                 </otherwise>
             </choose>
             <if test="systemRoleVo.rolename != null and systemRoleVo.rolename != '' ">
@@ -68,7 +70,7 @@
             <if test="systemRoleVo.modifierid != null  ">
                 and smr.modifierid = #{systemRoleVo.modifierid,jdbcType=INTEGER}
             </if>
-            and smr.systemtype = 2
+
         </where>
         order by smr.rolestatus,smr.autoid,smr.rolename
     </select>