|
|
|
@@ -3,8 +3,6 @@ |
|
|
|
<mapper namespace="com.iformall.mapper.WxAuthorizerInfoMapper"> |
|
|
|
<resultMap id="BaseResultMap" type="com.iformall.domain.po.WxAuthorizerInfo"> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> |
|
|
|
<result column="official_account_id" jdbcType="BIGINT" property="officialAccountId" /> |
|
|
|
<result column="authorizer_appid" jdbcType="VARCHAR" property="authorizerAppid" /> |
|
|
|
<result column="head_img" jdbcType="VARCHAR" property="headImg" /> |
|
|
|
<result column="alias" jdbcType="VARCHAR" property="alias" /> |
|
|
|
@@ -14,20 +12,14 @@ |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`tenant_id`,`official_account_id`,`authorizer_appid`,`head_img`,`alias`,`qrcode_url`,`create_time`,`authorization_status` |
|
|
|
`id`,`authorizer_appid`,`head_img`,`alias`,`qrcode_url`,`create_time`,`authorization_status` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
where 1 = 1 |
|
|
|
<if test=" null != id "> |
|
|
|
and `id` = #{id} |
|
|
|
</if> |
|
|
|
<if test=" null != tenantId "> |
|
|
|
and `tenant_id` like concat('%', #{tenantId},'%') |
|
|
|
</if> |
|
|
|
<if test=" null != officialAccountId "> |
|
|
|
and `official_account_id` = #{officialAccountId} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test=" null != authorizerAppid "> |
|
|
|
and `authorizer_appid` like concat('%', #{authorizerAppid},'%') |
|
|
|
</if> |
|
|
|
|