Przeglądaj źródła

fix bug

release_toaliyun_real
lin 3 lat temu
rodzic
commit
53ac3a2043
1 zmienionych plików z 14 dodań i 0 usunięć
  1. +14
    -0
      mallinkService/src/main/java/com/iformall/service/impl/TtCouponGoodsServiceImpl.java

+ 14
- 0
mallinkService/src/main/java/com/iformall/service/impl/TtCouponGoodsServiceImpl.java Wyświetl plik

@@ -192,7 +192,21 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService {
} }
merchantIds.addAll(mchids); merchantIds.addAll(mchids);
} }
//添加商管商户poi
TenantEntity mallTenantEntity = new TenantEntity();
mallTenantEntity.setTenantId(cm.getMallTenantId());
mallTenantEntity.setParentTenantId(coupon.getTenantId());
WxMerchant adminMerchant = wxMerchantService.findAdmin(mallTenantEntity);
if (null == adminMerchant) {
return new ResultData(ErrorCode.MERCHANT_INFO_NOT_FOUND.getCode(),"商场"+cm.getMallTenantId()+"未设置商管商户");
}
if (!merchantIds.contains(adminMerchant.getId())){
merchantIds.add(adminMerchant.getId());
}
} }
}else { }else {
merchantIds = wxCouponMerchantMapper.findMerchantIdListByProduct(coupon.getId(), coupon.getTenantId()); merchantIds = wxCouponMerchantMapper.findMerchantIdListByProduct(coupon.getId(), coupon.getTenantId());
} }


Ładowanie…
Anuluj
Zapisz