You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
818 B
25 lines
818 B
|
5 days ago
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||
|
|
<mapper namespace="apelet.association.dao.MemberClueMapper">
|
||
|
|
|
||
|
|
<!-- 按线索来源统计每种来源的线索总数 -->
|
||
|
|
<select id="selectClueTotalBySource"
|
||
|
|
resultType="apelet.association.vo.ClueSourceCountVo">
|
||
|
|
SELECT
|
||
|
|
source AS source,
|
||
|
|
COUNT(*) AS clueTotalCount
|
||
|
|
FROM member_clue
|
||
|
|
WHERE deleted_flag = 1
|
||
|
|
GROUP BY source
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<!-- 统计线索总数(不分来源,全量一行) -->
|
||
|
|
<select id="selectClueTotalCount" resultType="java.lang.Long">
|
||
|
|
SELECT COUNT(*)
|
||
|
|
FROM member_clue
|
||
|
|
WHERE deleted_flag = 1
|
||
|
|
</select>
|
||
|
|
|
||
|
|
</mapper>
|