|
|
|
@@ -7,10 +7,11 @@ |
|
|
|
<result column="group_id" jdbcType="BIGINT" property="groupId"/> |
|
|
|
<result column="group_name" jdbcType="VARCHAR" property="groupName"/> |
|
|
|
<result column="flag" jdbcType="INTEGER" property="flag"/> |
|
|
|
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId"/> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`name`,`group_id`,`group_name`,`flag` |
|
|
|
`id`,`name`,`group_id`,`group_name`,`flag`,`tenant_id` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
@@ -35,6 +36,10 @@ |
|
|
|
<if test=" null != flag "> |
|
|
|
and `flag` = #{flag} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != tenantId "> |
|
|
|
and (`tenant_id` = #{tenantId} or tenant_id is null or tenant_id = '') |
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
<if test=" null != ids "> |
|
|
|
|