Commit 9745a661 by 徐高华

朋友圈

parent 8c8ef8c4
......@@ -203,14 +203,15 @@
<select id="getTaskNum" resultType="java.lang.Integer"
parameterType="com.gic.haoban.manage.api.qdto.moment.TaskNumQDTO">
select count(1)
select count(1) from (
select a.plan_id
from tab_haoban_qw_moment_plan a left join tab_haoban_qw_moment_plan_attend b on a.plan_id = b.plan_id
where a.wx_enterprise_id=#{wxEnterpriseId} and a.enterprise_id=#{enterpriseId} and b.store_id=#{storeId}
and b.status_flag = 1 and a.end_date > now()
<if test="null != clerkId">
and b.clerk_id = #{clerkId}
</if>
group by a.plan_id
group by a.plan_id ) t
</select>
<select id="list" resultMap="result-map-tabHaobanQwMomentPlan"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment