| | |
| | | |
| | | |
| | | <!-- 导办人员统计数 --> |
| | | <select id="staffNum" resultType="integer"> |
| | | <select id="staffNum" resultType="int"> |
| | | SELECT count(id) |
| | | FROM automessage_sys_user WHERE user_type=2 |
| | | </select> |
| | |
| | | |
| | | |
| | | <!-- 组织排行榜 按评价 --> |
| | | <select id="organizationScore" resultType="integer"> |
| | | <select id="organizationScore" resultType="int"> |
| | | SELECT sum(IF(evaluate_state='1',10,IF(evaluate_state='2',5,0))) |
| | | FROM automessage_guide_repair_order |
| | | WHERE department_id in |
| | |
| | | |
| | | |
| | | <!-- 组织排行榜 按办结量 --> |
| | | <select id="organizationNum" resultType="integer"> |
| | | <select id="organizationNum" resultType="int"> |
| | | SELECT count(id) FROM automessage_guide_repair_order WHERE department_id in |
| | | <foreach collection="ids" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | |
| | | |
| | | |
| | | <!-- 办事指南 统计数量 --> |
| | | <select id="countWork" resultType="integer"> |
| | | <select id="countWork" resultType="int"> |
| | | SELECT count(id) from automessage_transaction_event |
| | | </select> |
| | | |
| | | |
| | | |
| | | <!-- 首页统计 勿动 --> |
| | | <select id="countStatisticsNum" resultType="integer"> |
| | | <select id="countStatisticsNum" resultType="int"> |
| | | select count(id) from automessage_transaction_event |
| | | <where> |
| | | <if test="classifyIds != null"> |
| | |
| | | |
| | | |
| | | <!-- 首页统计使用 勿动 --> |
| | | <select id="reversionRate" resultType="integer"> |
| | | select SUM(m.num) from ( |
| | | <select id="reversionRate" resultType="string"> |
| | | select nullif(SUM(m.num),0) from ( |
| | | select count(id) as num from automessage_guide_evolve |
| | | <where> |
| | | <if test="state != null and state != ''"> |
| | |
| | | |
| | | |
| | | <!-- 首页统计 区域统计 勿动 --> |
| | | <select id="rangeStatistics" parameterType="string" resultType="integer"> |
| | | <select id="rangeStatistics" parameterType="string" resultType="int"> |
| | | select count(id) from automessage_guide_repair_order |
| | | <where> |
| | | <if test="ids != null"> |