feat(statistics): 优化统计查询逻辑并调整SQL结构
- 修改 CommonBaseMapper.xml,增加 company_code 非空条件过滤脏数据
- 在 JGDPStatisticsServiceImpl.java 中引入 ConcurrentHashMap 缓存区域机构代码列表
- 新增 getOrgCodeListByRegionCode 方法用于获取缓存或查询机构代码列表
- 替换原有的 regionCode 查询参数为 orgCode 参数传递方式
- 更新各类统计方法实现,统一使用 orgCode 查询替代 cityCode
- 调整 mapper 接口定义,删除按年/月拆分的查询接口,合并为时间段查询接口
- 重写 JGStatisticsMapper.xml 中 SQL 查询逻辑,使用 supervision_info 表关联
- 引入公用 SQL 片段 maintenanceCountSql 提高复用性
- 删除冗余 vehicleEquCount 相关查询方法及实现
- 使用 audit_pass_date 字段代替 rec_date 提高准确性
- 统一时间筛选条件格式并支持动态起止时间范围查询
- 添加 FieldMapping 注解支持 cityCode 到 companyCodes 的字段映射转换
Showing
This diff is collapsed.
This diff is collapsed.
Please
register
or
sign in
to comment