丽知:仅退款修改

This commit is contained in:
zhengyf 2024-10-28 14:16:09 +08:00
parent c48968af55
commit 329e9f01ea
1 changed files with 19 additions and 0 deletions

View File

@ -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()));