TASK:模块化;
This commit is contained in:
@@ -1267,10 +1267,10 @@ public class DesignServiceImpl extends ServiceImpl<DesignMapper, Design> impleme
|
||||
if (Objects.isNull(design)) {
|
||||
throw new BusinessException("design.detail.not.found");
|
||||
}
|
||||
if (!userLike.getDesignId().equals(disDesignLikeDTO.getDesignId())) {
|
||||
//不是相同的design不会合并
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
// if (!userLike.getDesignId().equals(disDesignLikeDTO.getDesignId())) {
|
||||
// //不是相同的design不会合并
|
||||
// return Boolean.TRUE;
|
||||
// }
|
||||
//修改designItem为dislike状态
|
||||
designItemService.updateLikeStatus(userLike.getDesignItemId(), (byte) 0);
|
||||
//删除关联的collection,先不做
|
||||
|
||||
@@ -728,6 +728,7 @@ public class LibraryServiceImpl extends ServiceImpl<LibraryMapper, Library> impl
|
||||
library.setCreateDate(DateUtil.getByTimeZone(uploadDTO.getTimeZone()));
|
||||
if (uploadDTO.getModelType().equals(ModelType.LIBRARY.getValue())) {
|
||||
library.setLevel2Type(uploadDTO.getModelSex());
|
||||
library.setLevel3Type(uploadDTO.getAgeGroup());
|
||||
} else {
|
||||
library.setLevel3Type(uploadDTO.getModelSex());
|
||||
}
|
||||
@@ -749,6 +750,7 @@ public class LibraryServiceImpl extends ServiceImpl<LibraryMapper, Library> impl
|
||||
}
|
||||
sysFile.setLevel1Type("Models");
|
||||
sysFile.setLevel2Type(uploadDTO.getModelSex());
|
||||
sysFile.setLevel3Type(uploadDTO.getAgeGroup());
|
||||
sysFile.setUrl(filePath);
|
||||
sysFile.setMd5(uploadDTO.getMd5());
|
||||
sysFile.setCreateDate(new Date());
|
||||
|
||||
Reference in New Issue
Block a user