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