Przeglądaj źródła

fix

release_toaliyun_real
winter 1 rok temu
rodzic
commit
4548f4f8c8
6 zmienionych plików z 15 dodań i 10 usunięć
  1. +1
    -1
      mallinkService/src/main/java/com/iformall/service/WxMerchantService.java
  2. +1
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java
  3. +1
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java
  4. +2
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java
  5. +8
    -3
      mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java
  6. +2
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java

+ 1
- 1
mallinkService/src/main/java/com/iformall/service/WxMerchantService.java Wyświetl plik

@@ -204,7 +204,7 @@ public interface WxMerchantService {
List<Long> getFloorBuildMerchantIds(TenantEntity tenantEntity,String floorRule,Long building,Long floor,String shopTypeForRule,Integer merchantShopDel,Integer shopDel ,String shopNumber) ;
List<WxMerchantVo> findMerchantListByProduct(TenantEntity tenantEntity,Long productId,boolean hasShop);
List<WxMerchantVo> findMerchantListByProduct(TenantEntity tenantEntity,Long productId,boolean hasShop,boolean isValid);

WxMerchantCorp getMerchantCorp(TenantEntity tenantInfo, Long id);



+ 1
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java Wyświetl plik

@@ -802,7 +802,7 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService {
cvo.setQrCode(cc.getQrCode());
cvo.setTtQrCode(cc.getTtQrCode());
if (hasMerchant) {
cvo.setMerchantVoList(wxMerchantService.findMerchantListByProduct(cc,cc.getCouponId(), true));
cvo.setMerchantVoList(wxMerchantService.findMerchantListByProduct(cc,cc.getCouponId(), true,false));
}
return cvo;
} catch (IllegalAccessException e) {


+ 1
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java Wyświetl plik

@@ -2593,7 +2593,7 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {

WxCardCVo cardCVo = findCardDetailOfCUser(Long.valueOf(couponOrderId),tenantinfo.getTenantId());

cardCVo.setMerchantVoList(wxMerchantService.findMerchantListByProduct(tenantinfo,cardCVo.getCouponId(), false));
cardCVo.setMerchantVoList(wxMerchantService.findMerchantListByProduct(tenantinfo,cardCVo.getCouponId(), false, true));

Long couponId = cardCVo.getCouponId();
WxCouponChannel wxCouponChannel = new WxCouponChannel();


+ 2
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java Wyświetl plik

@@ -2059,7 +2059,7 @@ public class WxCouponServiceImpl implements WxCouponService {
TenantEntity mallTenantEntity = new TenantEntity();
mallTenantEntity.setTenantId(wcm.getMallTenantId());
mallTenantEntity.setParentTenantId(couponTenantEntity.getTenantId());
List<WxMerchantVo> merchantVoList = wxMerchantService.findMerchantListByProduct(mallTenantEntity,couponId,false);
List<WxMerchantVo> merchantVoList = wxMerchantService.findMerchantListByProduct(mallTenantEntity,couponId,false,false);
if (null != merchantVoList && merchantVoList.size() > 0 ) {
if (merchantVoList.stream().anyMatch((cm->cm.getMerchantStatus().equals(EnumMerchantStatus.VALID.getCode())))){
return true;
@@ -2069,7 +2069,7 @@ public class WxCouponServiceImpl implements WxCouponService {
return false;
}else {
List<WxMerchantVo> merchantVoList = wxMerchantService.findMerchantListByProduct(couponTenantEntity,couponId,false);
List<WxMerchantVo> merchantVoList = wxMerchantService.findMerchantListByProduct(couponTenantEntity,couponId,false,false);
if (null == merchantVoList || merchantVoList.size() <=0 ) {
return false;
}


+ 8
- 3
mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java Wyświetl plik

@@ -465,7 +465,7 @@ public class WxMerchantServiceImpl implements WxMerchantService {


private boolean isCouponMerchantValid(Long couponId,TenantEntity tenantEntity) {
List<WxMerchantVo> merchantVoList = findMerchantListByProduct(tenantEntity,couponId,false);
List<WxMerchantVo> merchantVoList = findMerchantListByProduct(tenantEntity,couponId,false,false);
if(merchantVoList == null){
return false;
}
@@ -1990,7 +1990,7 @@ public class WxMerchantServiceImpl implements WxMerchantService {
}

@Override
public List<WxMerchantVo> findMerchantListByProduct(TenantEntity tenantEntity,Long productId,boolean hasShop) {
public List<WxMerchantVo> findMerchantListByProduct(TenantEntity tenantEntity,Long productId,boolean hasShop,boolean isValid) {
List<Long> merchantIds = wxCouponMerchantMapper.findMerchantIdListByProduct(productId, tenantEntity.getTenantId());
Map<Long,WxMerchant> merchantMap = new HashMap<Long,WxMerchant>();
Map<Long, List<WxShopVo>> merchantShopVoMap = null;
@@ -2043,7 +2043,12 @@ public class WxMerchantServiceImpl implements WxMerchantService {
WxCouponMerchant cm = couponMerchantList.get(i);
if (null != cm && null != cm.getMerchantId()) {
WxMerchant m = merchantMap.get(cm.getMerchantId());
if (null != m) {
if (null != m ) {
if (isValid) {
if (m.getIsDel() == EnumYesOrNo.YES.getCode() || m.getStatus() == EnumMerchantStatus.NOT_VALID.getCode()) {
continue;
}
}
WxMerchantVo vo = new WxMerchantVo();
vo.setParameter(cm.getParameter());



+ 2
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java Wyświetl plik

@@ -2674,7 +2674,7 @@ public class WxOrderServiceImpl implements WxOrderService {
vo.initByCoupon(c,false);
}
if (hasMerchant) {
vo.setMerchantVoList(wxMerchantService.findMerchantListByProduct(tenantEntity, o.getProductId(), false));
vo.setMerchantVoList(wxMerchantService.findMerchantListByProduct(tenantEntity, o.getProductId(), false,false));
}
}
retList.add(vo);
@@ -2758,7 +2758,7 @@ public class WxOrderServiceImpl implements WxOrderService {
WxCouponOrder couponOrder = wxCouponOrderMapper.findDetailOfCUser(couponOrderList.get(0).getId(), tenantEntity.getTenantId());
vo.initByCouponOrder(couponOrder);
}
vo.setMerchantVoList(wxMerchantService.findMerchantListByProduct(tenantEntity, order.getProductId(), false));
vo.setMerchantVoList(wxMerchantService.findMerchantListByProduct(tenantEntity, order.getProductId(), false,false));
voList.add(vo);
}
return voList;


Ładowanie…
Anuluj
Zapisz