浏览代码

FIX: statis

xdd 1 天之前
父节点
当前提交
e76cdee751
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      fs-service/src/main/resources/mapper/company/CompanyRoleMapper.xml

+ 4 - 4
fs-service/src/main/resources/mapper/company/CompanyRoleMapper.xml

@@ -139,10 +139,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <include refid="selectRoleVo"/>
         <include refid="selectRoleVo"/>
         <where>
         <where>
             <if test="roleName != null">
             <if test="roleName != null">
-                r.role_name=#{roleName}
+                AND r.role_name=#{roleName}
             </if>
             </if>
             <if test="companyId != null">
             <if test="companyId != null">
-                r.company_id = #{companyId}
+                AND r.company_id = #{companyId}
             </if>
             </if>
         </where>
         </where>
         limit 1
         limit 1
@@ -152,10 +152,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <include refid="selectRoleVo"/>
         <include refid="selectRoleVo"/>
         <where>
         <where>
             <if test="roleKey != null">
             <if test="roleKey != null">
-                r.role_key=#{roleKey}
+                AND r.role_key=#{roleKey}
             </if>
             </if>
             <if test="companyId != null">
             <if test="companyId != null">
-                r.company_id = #{companyId}
+                AND r.company_id = #{companyId}
             </if>
             </if>
         </where>
         </where>
         limit 1
         limit 1