Commit 007fc0a3 by 林永健

refactor(business-analysis): 优化业务分析相关功能和数据处理逻辑

- 优化总产值累加逻辑,避免重复调用getter影响性能
- 在商户查询中增加merchantNo和provinceName字段支持
- 调整商户区域查询,避免空数据影响后续处理
- 修正环比计算逻辑,增强对零值的处理稳定性
- 优化指标数据处理逻辑,统一过滤空值和异常情况
- 改进展业目标达成率计算,加入新门店数为0时的安全判断
- 重构门店列表查询,优化并行调用与结果映射逻辑
- 移除无用代码,简化条件判断并改进日志提示
- 新增员工分析相关接口框架预留及相关测试用例覆盖
- 更新单元测试,补充业务场景分析服务测试用例丰富度
1 parent 40002366
......@@ -320,7 +320,7 @@
and t1.id = #{id}
</select>
<select id="findAllMerchant" resultMap="resultMap">
select id,merchant_name from platform_merchant where 1=1 and status in (2)
select id,merchant_name,merchantNo from platform_merchant where 1=1 and status in (2)
<if test="merchantRequest.dataPermission !=null and merchantRequest.dataPermission.size>0">
and id in
<foreach collection="merchantRequest.dataPermission" item="item" index="index" open="(" close=")"
......@@ -1246,6 +1246,7 @@
<select id="findMerchantProvinceListByIds" resultType="cn.com.glsx.merchants.model.response.MerchantProvinceDTO">
SELECT distinct merchantNo merchantId,
province_code provinceCode,
province_name provinceName,
merchant_name merchantName
FROM platform_merchant
WHERE del_flag = 0
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!