Commit 97b95ab5 by 林永健

feat(service): 优化门店状态处理和查询条件逻辑

- 补充门店状态为空时默认设置状态为 "1"
- 在SQL查询中增加对 merchantIds 列表的过滤条件支持
1 parent 9c6113d8
......@@ -1193,6 +1193,9 @@ public class BusinessSceneAnalysisService {
res.stream()
.filter(item -> ecosystemWarningStoreIds.contains(item.getStoreId()))
.forEach(item -> item.appendStoreStatus("3"));
res.stream()
.filter(item -> CollectionUtils.isEmpty(item.getStoreStatus()))
.forEach(item -> item.setStoreStatus(Lists.newArrayList("1")));
// 事项查询 todo
// merchantBiMatterMapper.selectMyBiMatterCount();
......
......@@ -607,6 +607,7 @@
smdc.deleted_flag = 'N'
and a.scene = #{scene}
<if test="merchantIds != null and merchantIds.size() > 0">
and smdc.merchant_id in
<foreach item="item" index="index" collection="merchantIds" open="(" separator="," close=")">
#{item}
</foreach>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!