合并解决冲突

This commit is contained in:
taozi
2022-10-04 14:25:28 +08:00
parent 1cb99eb1dd
commit ba4414e7c0
2 changed files with 1 additions and 10 deletions

View File

@ -112,15 +112,6 @@ public class YxStoreProductAttrServiceImpl extends BaseServiceImpl<StoreProductA
unique = oldAttrValue.getUnique();
}
YxStoreProductAttrValue oldAttrValue = storeProductAttrValueService.getOne(new LambdaQueryWrapper<YxStoreProductAttrValue>()
.eq(YxStoreProductAttrValue::getSku, productFormatDto.getSku())
.eq(YxStoreProductAttrValue::getProductId, productId));
String unique = IdUtil.simpleUUID();
if (Objects.nonNull(oldAttrValue)) {
unique = oldAttrValue.getUnique();
}
YxStoreProductAttrValue yxStoreProductAttrValue = YxStoreProductAttrValue.builder()
.id(Objects.isNull(oldAttrValue) ? null : oldAttrValue.getId())
.productId(productId)