350小程序-物业/政府:停车数量错误
重现步骤

账号

三轮测试小区

登录名:GEhQuccmadmin

密码:QRG43ls@

账号:

18878383588

[问题描述]

1-统计数量未去掉逻辑删除数据!

file-read-651.png

##登记长期车辆数

select count(distinct plate_no) from b_car where community_id=140

and deleted_flag=0

and type in (0,1,4); ## 0-私家车 1-月卡车 4-白名单车

##登记的临时车辆数

select count(distinct plate_no) from b_car where community_id=140

and deleted_flag=0

and type in (2) ## 2-临时车

2-在停车辆分类有误

进出场记录未做逻辑删除,若做了逻辑删除,请剔除逻辑删除数据!

file-read-655.png

##在停车辆总数

select count(distinct plate_no) from b_car_inout where out_type=0;

##在停长期车辆数

select count(distinct plate_no) from b_car_inout where out_type=0

and plate_no in (

select plate_no from b_car where community_id=140

and deleted_flag=0

and type in (0,1,2,4)) ## 0-私家车 1-月卡车 2-临时车 4-白名单车

【需求】

file-read-652.png

激活
所属产品
所属模块
来源用例
Bug类型
代码错误
严重程度
优先级
2
Bug状态
已关闭
激活次数
1
激活时间
2025-09-11 17:25:48
是否确认
已确认
指派给
Closed 于 2025-09-18 09:32:08
截止日期
反馈者
通知邮箱
操作系统
浏览器
关键词
抄送给
由谁创建
lanjy 于 2025-09-03 18:16:39
影响版本
主干
由谁解决
huangmy 于 2025-09-12
解决版本
主干
解决方案
已解决
由谁关闭
lanjy 于 2025-09-18 09:32:08
最后修改
lanjy 于 2025-09-18 09:32:08