Commit 78e3e195 by zhouhaibao

[+]任务查询sql调整

1 parent cf5a04a2
......@@ -20,7 +20,7 @@
<select id="findTodayCusList"
resultType="cn.com.glsx.execute.modules.model.task.SopNodeTaskStaticModel">
select inst_id as instId,node_id as nodeId,COUNT(DISTINCT external_userId, customer_phone) as
select inst_id as instId,node_id as nodeId,COUNT(DISTINCT if(external_userId is null,"",external_userId),if(customer_phone is null,"",customer_phone)) as
todayCusCount from
sop_node_task_info
where inst_id=#{sopNodeTaskSearch.instId}
......@@ -34,7 +34,7 @@
<select id="findCusList"
resultType="cn.com.glsx.execute.modules.model.task.SopNodeTaskStaticModel">
select inst_id as instId,node_id as nodeId,COUNT(DISTINCT external_userId, customer_phone) as
select inst_id as instId,node_id as nodeId,COUNT(DISTINCT if(external_userId is null,"",external_userId),if(customer_phone is null,"",customer_phone)) as
totalCusCount from
sop_node_task_info
where inst_id=#{sopNodeTaskSearch.instId}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!