BUGFIX:1、userLikeService中业务划分不清晰导致与generateService出现循环依赖问题。解决:将CollectionSort单独划分为一个Service
2、新建t_api_generate表用于补偿查询生成结果
This commit is contained in:
@@ -106,7 +106,7 @@ public class MyTaskScheduler {
|
||||
List<ToProductImageResult> toProductImageResultList1 = toProductImageResultMapper.selectList(toProductImageResultQueryWrapper1);
|
||||
if (!CollectionUtils.isEmpty(toProductImageResultList1)) {
|
||||
for (ToProductImageResult toProductImageResult : toProductImageResultList1) {
|
||||
designService.addCollectionSort(toProductImageResult.getId(), CollectionType.TO_PRODUCT_IMAGE.getValue(), collectionSort.getProjectId(), collectionSort.getId());
|
||||
collectionSortService.addCollectionSort(toProductImageResult.getId(), CollectionType.TO_PRODUCT_IMAGE.getValue(), collectionSort.getProjectId(), collectionSort.getId());
|
||||
|
||||
QueryWrapper<ToProductImageResult> relightResultQueryWrapper = new QueryWrapper<>();
|
||||
relightResultQueryWrapper.lambda().eq(ToProductImageResult::getElementId, toProductImageResult.getId());
|
||||
@@ -115,7 +115,7 @@ public class MyTaskScheduler {
|
||||
|
||||
if (!CollectionUtils.isEmpty(toProductImageResultList2)) {
|
||||
for (ToProductImageResult relight : toProductImageResultList2) {
|
||||
designService.addCollectionSort(relight.getId(), CollectionType.RELIGHT.getValue(), collectionSort.getProjectId(), collectionSort.getId());
|
||||
collectionSortService.addCollectionSort(relight.getId(), CollectionType.RELIGHT.getValue(), collectionSort.getProjectId(), collectionSort.getId());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -153,6 +153,8 @@ public class MyTaskScheduler {
|
||||
private ExportFileMapper exportFileMapper;
|
||||
@Resource
|
||||
private PortfolioMapper portfolioMapper;
|
||||
@Resource
|
||||
private CollectionSortService collectionSortService;
|
||||
|
||||
// 定时任务,每十五天执行一次
|
||||
// @Scheduled(cron = "0 0 0 ? * MON")
|
||||
|
||||
Reference in New Issue
Block a user