修改小区统计sql

This commit is contained in:
yangjun 2025-07-03 14:25:44 +08:00
parent d3e2a17019
commit bb5deff3d8
1 changed files with 5 additions and 5 deletions

View File

@ -9,29 +9,29 @@
where a.housingestate_id = b.housingestate_id where a.housingestate_id = b.housingestate_id
and a.add_time >= #{beginTime} and a.add_time >= #{beginTime}
and a.add_time <= #{endTime} and a.add_time <= #{endTime}
GROUP BY a.housingestate_id GROUP BY b.`NAME`
ORDER BY sum(a.weight) desc limit 10 ORDER BY sum(a.weight) desc limit 10
</select> </select>
<select id="queryXqHyXzList" parameterType="org.jeecg.modules.zh.view.hy.entity.Hy" resultType="org.jeecg.modules.zh.view.hy.entity.Hy"> <select id="queryXqHyXzList" parameterType="org.jeecg.modules.zh.view.hy.entity.Hy" resultType="org.jeecg.modules.zh.view.hy.entity.Hy">
select b.name as shortDay,count(*) as cn select b.`NAME` as shortDay,count(*) as cn
from bl_user_info a , bl_housingestate_info b from bl_user_info a , bl_housingestate_info b
where a.housingestate_id = b.housingestate_id where a.housingestate_id = b.housingestate_id
and a.register_date >= #{beginTime} and a.register_date >= #{beginTime}
and a.register_date &lt;= #{endTime} and a.register_date &lt;= #{endTime}
group by a.housingestate_id group by b.`NAME`
ORDER BY count(*) desc limit 10 ORDER BY count(*) desc limit 10
</select> </select>
<select id="queryXqHyTdcsList" parameterType="org.jeecg.modules.zh.view.hy.entity.Hy" resultType="org.jeecg.modules.zh.view.hy.entity.Hy"> <select id="queryXqHyTdcsList" parameterType="org.jeecg.modules.zh.view.hy.entity.Hy" resultType="org.jeecg.modules.zh.view.hy.entity.Hy">
select select
b.name as phone, b.`NAME` as phone,
count(*) as cn count(*) as cn
from bl_order_info a , bl_housingestate_info b from bl_order_info a , bl_housingestate_info b
where a.housingestate_id = b.housingestate_id where a.housingestate_id = b.housingestate_id
and a.add_time >= #{beginTime} and a.add_time >= #{beginTime}
and a.add_time &lt;= #{endTime} and a.add_time &lt;= #{endTime}
group by a.housingestate_id group by b.`NAME`
order by count(*) desc limit 10 order by count(*) desc limit 10
</select> </select>
</mapper> </mapper>