|
|
|
@@ -95,7 +95,8 @@ public abstract class BaseBatchOrderAdapterService implements OrderAdapterServic |
|
|
|
if(EnumPayWay.PAY_WAY_TT.equals(payWay) && isTtPoiOrder(tenantEntity,couponChannelMap)){ |
|
|
|
isTtPoiOrder = EnumYesOrNo.YES.getCode(); |
|
|
|
} |
|
|
|
}catch(Exception e){} |
|
|
|
}catch(Exception e){ |
|
|
|
} |
|
|
|
|
|
|
|
WxBatchOrder order =new WxBatchOrder(); |
|
|
|
final IdWorker idWorker = IdWorker.get(); |
|
|
|
@@ -120,7 +121,7 @@ public abstract class BaseBatchOrderAdapterService implements OrderAdapterServic |
|
|
|
private boolean isTtPoiOrder(TenantEntity tenantEntity,Map<Long,WxCouponChannel> couponChannelMap){ |
|
|
|
boolean isTtPoiOrder = false; |
|
|
|
if(null != couponChannelMap){ |
|
|
|
List<Long> couponChannelIds = (List<Long>) couponChannelMap.keySet(); |
|
|
|
List<Long> couponChannelIds = new ArrayList<>(couponChannelMap.keySet()); |
|
|
|
Integer poiCount = ttCouponChannelPoiMapper.getPoiPutOnCount(tenantEntity.getTenantId(),couponChannelIds); |
|
|
|
if(couponChannelIds.size() == poiCount.intValue()){ |
|
|
|
isTtPoiOrder = true; |
|
|
|
|