Commit 98a73b2a by zhouhaibao

fix(store): 修复货架类型比较逻辑错误

- 修改shelfType比较方式,使用byteValue()方法替代直接比较
- 确保货架类型为SINGLE时的条件判断逻辑正确执行
- 避免因类型转换问题导致的条件判断失效
1 parent d9053095
...@@ -1246,7 +1246,7 @@ public class StoreApproveServiceImpl implements StoreApproveService { ...@@ -1246,7 +1246,7 @@ public class StoreApproveServiceImpl implements StoreApproveService {
.updatedDate(new Date()) .updatedDate(new Date())
.settleTime((byte) 0) .settleTime((byte) 0)
.build()).collect(Collectors.toList()); .build()).collect(Collectors.toList());
if (Objects.equals(shelfType, GoodsListingEnum.ShelfType.SINGLE.getValue()) if (Objects.equals(shelfType.byteValue(), GoodsListingEnum.ShelfType.SINGLE.getValue())
&& merchantRefs != null && !merchantRefs.isEmpty()) { && merchantRefs != null && !merchantRefs.isEmpty()) {
Integer merchantId = merchantRefs.get(0).getMerchantId(); Integer merchantId = merchantRefs.get(0).getMerchantId();
MerchantSettleDistributeRuleDTO effectedRule = merchantSettleDistributeRuleRemote.getEffectRule( MerchantSettleDistributeRuleDTO effectedRule = merchantSettleDistributeRuleRemote.getEffectRule(
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!