Procházet zdrojové kódy

/。ing

release_toaliyun_real
xhxu před 4 roky
rodič
revize
7d1c56d78a
1 změnil soubory, kde provedl 9 přidání a 1 odebrání
  1. +9
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java

+ 9
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java Zobrazit soubor

@@ -60,6 +60,9 @@ public class WxCouponServiceImpl implements WxCouponService {
@Autowired @Autowired
WxMerchantMapper wxMerchantMapper; WxMerchantMapper wxMerchantMapper;


@Autowired
WxMerchantService wxMerchantService;

@Lazy @Lazy
@Autowired @Autowired
WxCouponChannelService wxCouponChannelService; WxCouponChannelService wxCouponChannelService;
@@ -229,10 +232,15 @@ public class WxCouponServiceImpl implements WxCouponService {
@Override @Override
public WxCouponCVo getVoById(Long id,String tenantId) { public WxCouponCVo getVoById(Long id,String tenantId) {
WxCouponCVo wxCouponCVo = wxCouponMapper.findVoDetail(id,tenantId); WxCouponCVo wxCouponCVo = wxCouponMapper.findVoDetail(id,tenantId);

if(wxCouponCVo == null){ if(wxCouponCVo == null){
return null; return null;
} }
List<WxMerchantVo> merchantList = wxCouponCVo.getMerchantVoList();
List<Long> couponIdList = new ArrayList<Long>();
couponIdList.add(wxCouponCVo.getId());
Map<Long, List<WxMerchantVo>> couponMerchantVoMap = wxMerchantService.findCouponMerchantVoList(couponIdList, wxCouponCVo,true);

List<WxMerchantVo> merchantList = couponMerchantVoMap.get(wxCouponCVo.getId());
if (merchantList != null) { if (merchantList != null) {
merchantList = merchantList.stream().filter( merchantList = merchantList.stream().filter(
m->m.getMerchantStatus().equals(EnumMerchantStatus.VALID.getCode())) m->m.getMerchantStatus().equals(EnumMerchantStatus.VALID.getCode()))


Načítá se…
Zrušit
Uložit