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