浏览代码

BUG修复

wangliang 1 年之前
父节点
当前提交
8001e5a09a
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      sop-business/src/main/resources/mapper/SysUserMapper.xml

+ 6 - 0
sop-business/src/main/resources/mapper/SysUserMapper.xml

@@ -59,6 +59,9 @@
                     </otherwise>
                     </otherwise>
                 </choose>
                 </choose>
             </if>
             </if>
+            <if test="serviceId != null and serviceId != ''">
+                and tbs.id = #{serviceId}
+            </if>
             <if test="customName != null and customName != ''">
             <if test="customName != null and customName != ''">
                 and sc.name like concat('%', #{customName}, '%')
                 and sc.name like concat('%', #{customName}, '%')
             </if>
             </if>
@@ -122,6 +125,9 @@
                     </otherwise>
                     </otherwise>
                 </choose>
                 </choose>
             </if>
             </if>
+            <if test="serviceId != null and serviceId != ''">
+                and tbs.id = #{serviceId}
+            </if>
             <if test="customName != null and customName != ''">
             <if test="customName != null and customName != ''">
                 and sc.name like concat('%', #{customName}, '%')
                 and sc.name like concat('%', #{customName}, '%')
             </if>
             </if>