Browse Source

更改bug

xie.kaifeng 8 months ago
parent
commit
d46356b6b4

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

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