丽知:仅退款修改
This commit is contained in:
parent
c48968af55
commit
329e9f01ea
|
@ -453,6 +453,25 @@ public class RefundOnlyPluginInitializer extends PluginBaseEntity {
|
||||||
|
|
||||||
List<ArapDjzbVO.Childrenn> children = new ArrayList<>();
|
List<ArapDjzbVO.Childrenn> children = new ArrayList<>();
|
||||||
|
|
||||||
|
Iterator<RerturnGoodsOrderSearchDetails> iterator = logDetails.iterator();
|
||||||
|
while (iterator.hasNext()) {
|
||||||
|
RerturnGoodsOrderSearchDetails logDetail = iterator.next();
|
||||||
|
if(logDetail.getSkuCode()==null||"".equals(logDetail.getSkuCode())){
|
||||||
|
IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity = new IntegrationTaskLivingDetailsEntity();
|
||||||
|
integrationTaskLivingDetailsEntity.setNewState(ProfilesActiveConstant.LOG_STATUS_N);
|
||||||
|
integrationTaskLivingDetailsEntity.setRootAppNewData(null);
|
||||||
|
integrationTaskLivingDetailsEntity.setNewTransmitInfo(logDetail.getReturnOrderCode()+",没有SKU编码,请检查OFS系统订单");
|
||||||
|
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
||||||
|
integrationTaskLivingDetailsEntity.setBusinessDate(format);
|
||||||
|
integrationTaskLivingDetailsEntity.setRootAppPk(logDetail.getReturnOrderCode() + "_" + logDetail.getSkuCode());
|
||||||
|
integrationTaskLivingDetailsEntity.setRootAppBill(logDetail.getReturnOrderCode());
|
||||||
|
integrationTaskLivingDetailsEntity.setPluginId(getPluginId());
|
||||||
|
saveOrUpdateBusinessLogUtil.saveOrUpdate(integrationTaskLivingDetailsEntity);
|
||||||
|
// 删除当前的 logDetail 对象
|
||||||
|
iterator.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//按sku分组
|
//按sku分组
|
||||||
Map<String, List<RerturnGoodsOrderSearchDetails>> collectSKU = ofsDetails.stream().collect(Collectors.groupingBy(index -> index.getSkuCode()));
|
Map<String, List<RerturnGoodsOrderSearchDetails>> collectSKU = ofsDetails.stream().collect(Collectors.groupingBy(index -> index.getSkuCode()));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue