feat:修改
This commit is contained in:
1 parent
c3fcf6111d
commit
8314f51dc5
1 file changed
+6
-6
+6
-6
@@ -113,10 +113,10 @@ public class HardSpuServiceImpl extends ServiceImpl<HardSpuMapper, HardSpuEntity
|
||||
if (ObjectUtil.equals(entity.getIsDefault(), YesNoEnum.NO.getCode())) {
|
||||
return entity.getId();
|
||||
}
|
||||
if (ObjectUtil.isEmpty(entity.getKsSkuId())) {
|
||||
getSelf().submitKsSpu(spuDetail);
|
||||
}
|
||||
if (ObjectUtil.notEqual(spuDetail.getStatus(), HardKsCheckStatusEnum.CHECK_DONE.getType())) {
|
||||
if (ObjectUtil.notEqual(spuDetail.getKsStatus(), HardKsCheckStatusEnum.CHECK_DONE.getType())) {
|
||||
if (ObjectUtil.isEmpty(entity.getKsSkuId())) {
|
||||
getSelf().submitKsSpu(spuDetail);
|
||||
}
|
||||
getSelf().editKsSpu(spuDetail);
|
||||
}
|
||||
return entity.getId();
|
||||
@@ -473,7 +473,7 @@ public class HardSpuServiceImpl extends ServiceImpl<HardSpuMapper, HardSpuEntity
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void submitKsSpu(HardSpuEntity entity) {
|
||||
String pic = entity.getPic();
|
||||
pic = "https://nasa-voyager.oss-cn-beijing.aliyuncs.com/release/merchant_sku_img/watermark/202412021517-173bee3f2637499cb6b46e9b23d286c5.jpg";
|
||||
// pic = "https://nasa-voyager.oss-cn-beijing.aliyuncs.com/release/merchant_sku_img/watermark/202412021517-173bee3f2637499cb6b46e9b23d286c5.jpg";
|
||||
List<String> picList = Arrays.asList(pic.split(","));
|
||||
String imageBaseUrl = ParamResolver.getStr("IMAGE_BASE_URL");
|
||||
if (ObjectUtil.isEmpty(imageBaseUrl)) throw new RuntimeException("请配置图片基础路径");
|
||||
@@ -509,7 +509,7 @@ public class HardSpuServiceImpl extends ServiceImpl<HardSpuMapper, HardSpuEntity
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void editKsSpu(HardSpuEntity entity) {
|
||||
String pic = entity.getPic();
|
||||
pic = "https://nasa-voyager.oss-cn-beijing.aliyuncs.com/release/merchant_sku_img/watermark/202412021517-173bee3f2637499cb6b46e9b23d286c5.jpg";
|
||||
// pic = "https://nasa-voyager.oss-cn-beijing.aliyuncs.com/release/merchant_sku_img/watermark/202412021517-173bee3f2637499cb6b46e9b23d286c5.jpg";
|
||||
List<String> picList = Arrays.asList(pic.split(","));
|
||||
String imageBaseUrl = ParamResolver.getStr("IMAGE_BASE_URL");
|
||||
if (ObjectUtil.isEmpty(imageBaseUrl)) throw new RuntimeException("请配置图片基础路径");
|
||||
|
||||
Reference in new issue
Block a user