|
|
|
@@ -1021,8 +1021,9 @@ |
|
|
|
|
|
|
|
<select id="findGrowUserCount" resultType="java.lang.Long"> |
|
|
|
SELECT count(distinct cubi.id) FROM wx_c_user_basic_info cubi |
|
|
|
left join wx_c_user cu on cubi.id=cu.user_id |
|
|
|
where cu.id is not null |
|
|
|
<!-- left join wx_c_user cu on cubi.id=cu.user_id |
|
|
|
where cu.id is not null --> |
|
|
|
where 1 =1 |
|
|
|
<if test=" null != finalTenantId and '' != finalTenantId"> |
|
|
|
and cubi.`final_tenant_id` = #{finalTenantId} |
|
|
|
</if> |
|
|
|
@@ -1030,15 +1031,16 @@ |
|
|
|
|
|
|
|
<select id="findGrowUserCount1" resultType="java.lang.Long"> |
|
|
|
SELECT count(distinct cubi.id) FROM wx_c_user_basic_info cubi |
|
|
|
left join wx_c_user cu on cubi.id=cu.user_id |
|
|
|
where cu.id is not null |
|
|
|
<!-- left join wx_c_user cu on cubi.id=cu.user_id |
|
|
|
where cu.id is not null --> |
|
|
|
where final_tenant_id = #{finalTenantId} |
|
|
|
<if test=" null != tenantId and '' != tenantId"> |
|
|
|
and cubi.`tenant_id` like concat('%,', #{tenantId},',%') |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
|
|
|
|
<update id="incActRecordById" parameterType="java.lang.Long"> |
|
|
|
UPDATE wx_c_user_basic_info set act_record = act_record +1 where id = #{id} |
|
|
|
UPDATE wx_c_user_basic_info set act_record = act_record +1 where id = #{id} and final_tenant_id = #{finalTenantId} |
|
|
|
</update> |
|
|
|
|
|
|
|
<!--<select id="selectNotCUserList" resultMap="BaseResultMap"> |
|
|
|
|