|
@@ -4,7 +4,6 @@
|
|
|
|
|
|
|
|
|
|
<select id="selectCountByAccountIdAndDate" resultType="java.lang.Integer">
|
|
<select id="selectCountByAccountIdAndDate" resultType="java.lang.Integer">
|
|
-
|
|
|
|
select
|
|
select
|
|
count(1)
|
|
count(1)
|
|
from
|
|
from
|
|
@@ -23,6 +22,7 @@
|
|
left join sys_user t2
|
|
left join sys_user t2
|
|
on t1.user_id = t2.id
|
|
on t1.user_id = t2.id
|
|
where t1.project_id = #{projectId}
|
|
where t1.project_id = #{projectId}
|
|
|
|
+ and t2.`status` = 1
|
|
and t2.email != ''
|
|
and t2.email != ''
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -34,14 +34,20 @@
|
|
ctop_project_member t1
|
|
ctop_project_member t1
|
|
left join ctop_corp_wexin_user t2
|
|
left join ctop_corp_wexin_user t2
|
|
on t1.user_id = t2.user_id
|
|
on t1.user_id = t2.user_id
|
|
|
|
+ LEFT JOIN sys_user t3
|
|
|
|
+ on t1.user_id = t3.id
|
|
where t1.project_id = #{projectId}
|
|
where t1.project_id = #{projectId}
|
|
|
|
+ and t3.`status` = 1
|
|
and t2.wexin_id != ''
|
|
and t2.wexin_id != ''
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getWChatIdByUserId" resultType="java.lang.String">
|
|
<select id="getWChatIdByUserId" resultType="java.lang.String">
|
|
- select wexin_id
|
|
|
|
- from ctop_corp_wexin_user
|
|
|
|
- where user_id = #{userId}
|
|
|
|
|
|
+ select t1.wexin_id
|
|
|
|
+ from ctop_corp_wexin_user t1
|
|
|
|
+ left join sys_user t2
|
|
|
|
+ on t1.user_id = t2.id
|
|
|
|
+ where t1.user_id = #{userId}
|
|
|
|
+ and t2.`status` = 1
|
|
|
|
|
|
</select>
|
|
</select>
|
|
|
|
|