|
@@ -147,13 +147,8 @@ public class ProductMaterialServiceImpl extends ServiceImpl<ProductMaterialMappe
|
|
|
try {
|
|
|
ProductMaterial material = new ProductMaterial();
|
|
|
BeanUtils.copyProperties(entity, material);
|
|
|
+ material.setUploaderId(entity.getUserId());
|
|
|
material.setTradeName(tradeName);
|
|
|
- MaterialInfo info = materialInfoService.getMaterialInfoByCode(md5);
|
|
|
- if (!Check.isNull(info)) {
|
|
|
- material.setUploaderId(uploaderId);
|
|
|
- } else {
|
|
|
- material.setUploaderId(material.getUserId());
|
|
|
- }
|
|
|
material.setSignature(md5);
|
|
|
String cosUrl = getCosUrl(url);
|
|
|
material.setVideoUrl(cosUrl);
|
|
@@ -179,7 +174,7 @@ public class ProductMaterialServiceImpl extends ServiceImpl<ProductMaterialMappe
|
|
|
material.setTradeName(tradeName);
|
|
|
material.setVideoUrl(videoUrl);
|
|
|
material.setSignature(signature);
|
|
|
- material.setUploaderId(uploaderId);
|
|
|
+ material.setUploaderId(entity.getUserId());
|
|
|
if (checkVideo(entity.getProductId(), tradeName, signature)) {
|
|
|
lists.add(material);
|
|
|
}
|