|
|
|
@@ -4,6 +4,7 @@ |
|
|
|
<resultMap id="BaseResultMap" type="com.iformall.domain.po.WxBuser"> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id"/> |
|
|
|
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId"/> |
|
|
|
<result column="parent_tenant_id" jdbcType="VARCHAR" property="parentTenantId"/> |
|
|
|
<result column="open_id" jdbcType="VARCHAR" property="openId"/> |
|
|
|
<result column="union_id" jdbcType="VARCHAR" property="unionId"/> |
|
|
|
<result column="nick_name" jdbcType="VARCHAR" property="nickName"/> |
|
|
|
@@ -50,7 +51,7 @@ |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`tenant_id`,`open_id`,`union_id`,`nick_name`,`gender`,`avatar_url`,`phone`,`pure_phone`, |
|
|
|
`id`,`tenant_id`,`parent_tenant_id`,`open_id`,`union_id`,`nick_name`,`gender`,`avatar_url`,`phone`,`pure_phone`, |
|
|
|
`city`,`province`,`language`,`country_code`,`register_ip`,`verify_code_phone`, |
|
|
|
`qrcode_source`,`scene`,`scene_address`,`session_key`,`score`, |
|
|
|
`update_date`,`create_date`,`app_id`,`token`,`expire_time`,`latitude`, `longitude`, |
|
|
|
@@ -70,6 +71,10 @@ |
|
|
|
and `tenant_id`= #{tenantId} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != parentTenantId "> |
|
|
|
and `parent_tenant_id`= #{parentTenantId} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != openId "> |
|
|
|
and `open_id` = #{openId} |
|
|
|
</if> |
|
|
|
|