浏览代码

fengji fix bug 2068

yanite 3 年之前
父节点
当前提交
12ee7a9717
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      mec-biz/src/main/resources/config/mybatis/SysSuggestionMapper.xml

+ 3 - 2
mec-biz/src/main/resources/config/mybatis/SysSuggestionMapper.xml

@@ -21,12 +21,12 @@
 
     <!-- 根据主键查询一条记录 -->
     <select id="get" resultMap="SysSuggestion">
-		SELECT * FROM sys_suggestion WHERE id_ = #{id} 
+		SELECT * FROM sys_suggestion WHERE id_ = #{id} and tenant_id_ = #{tenantId}
 	</select>
 
     <!-- 全查询 -->
     <select id="findAll" resultMap="SysSuggestion">
-		SELECT * FROM sys_suggestion ORDER BY id_
+		SELECT * FROM sys_suggestion where tenant_id_ = #{tenantId} ORDER BY id_
 	</select>
 
     <!-- 向数据库增加一条记录 -->
@@ -72,6 +72,7 @@
 
     <sql id="queryCondition">
         <where>
+            tenant_id_ = #{tenantId}
             <if test="type!=null">
                 AND ss.type_ = #{type, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
             </if>