|
@@ -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>
|