修改小区统计sql
This commit is contained in:
parent
d3e2a17019
commit
bb5deff3d8
|
@ -9,29 +9,29 @@
|
|||
where a.housingestate_id = b.housingestate_id
|
||||
and a.add_time >= #{beginTime}
|
||||
and a.add_time <= #{endTime}
|
||||
GROUP BY a.housingestate_id
|
||||
GROUP BY b.`NAME`
|
||||
ORDER BY sum(a.weight) desc limit 10
|
||||
</select>
|
||||
|
||||
<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
|
||||
where a.housingestate_id = b.housingestate_id
|
||||
and a.register_date >= #{beginTime}
|
||||
and a.register_date <= #{endTime}
|
||||
group by a.housingestate_id
|
||||
group by b.`NAME`
|
||||
ORDER BY count(*) desc limit 10
|
||||
</select>
|
||||
|
||||
<select id="queryXqHyTdcsList" parameterType="org.jeecg.modules.zh.view.hy.entity.Hy" resultType="org.jeecg.modules.zh.view.hy.entity.Hy">
|
||||
select
|
||||
b.name as phone,
|
||||
b.`NAME` as phone,
|
||||
count(*) as cn
|
||||
from bl_order_info a , bl_housingestate_info b
|
||||
where a.housingestate_id = b.housingestate_id
|
||||
and a.add_time >= #{beginTime}
|
||||
and a.add_time <= #{endTime}
|
||||
group by a.housingestate_id
|
||||
group by b.`NAME`
|
||||
order by count(*) desc limit 10
|
||||
</select>
|
||||
</mapper>
|
Loading…
Reference in New Issue