1、添加日志打印

2、batch获取结果报错
This commit is contained in:
2025-07-03 19:03:45 +08:00
parent 373a360e76
commit e67acc4319
2 changed files with 4 additions and 0 deletions

View File

@@ -593,12 +593,14 @@ public class CollectionElementServiceImpl extends ServiceImpl<CollectionElementM
SingleOverallEnum singleOverall = SingleOverallEnum.of(designDTO.getSingleOverall());
if (Objects.isNull(singleOverall)) {
log.error("未知singleOverall param{}", designDTO.getSingleOverall());
log.info("入参 designDTO => {}", designDTO);
throw new BusinessException("unknown.parameter.singleOverall");
}
if (SingleOverallEnum.SINGLE.equals(singleOverall)) {
SwitchCategoryEnum switchCategory = SwitchCategoryEnum.of(designDTO.getSwitchCategory());
if (Objects.isNull(switchCategory)) {
log.error("未知switchCategory{}", designDTO.getSwitchCategory());
log.info("入参 designDTO => {}", designDTO);
throw new BusinessException("unknown.parameter.switchCategory");
}
}

View File

@@ -2831,6 +2831,7 @@ public class DesignServiceImpl extends ServiceImpl<DesignMapper, Design> impleme
toProductImageResultQueryWrapper.lambda().eq(ToProductImageResult::getTaskIdBatch, query.getTaskId());
List<ToProductImageResult> toProductImageResultList = toProductImageResultMapper.selectList(toProductImageResultQueryWrapper);
for (ToProductImageResult toProductImageResult : toProductImageResultList) {
if (StringUtil.isNullOrEmpty(toProductImageResult.getUrl())) continue;
MagicToolResultVO magicToolResultVO = new MagicToolResultVO();
magicToolResultVO.setId(toProductImageResult.getId());
magicToolResultVO.setTaskId(toProductImageResult.getTaskId());
@@ -2856,6 +2857,7 @@ public class DesignServiceImpl extends ServiceImpl<DesignMapper, Design> impleme
toProductImageResultQueryWrapper.lambda().eq(ToProductImageResult::getTaskIdBatch, query.getTaskId());
List<ToProductImageResult> toProductImageResultList = toProductImageResultMapper.selectList(toProductImageResultQueryWrapper);
for (ToProductImageResult toProductImageResult : toProductImageResultList) {
if (StringUtil.isNullOrEmpty(toProductImageResult.getUrl())) continue;
MagicToolResultVO magicToolResultVO = new MagicToolResultVO();
magicToolResultVO.setId(toProductImageResult.getId());
magicToolResultVO.setTaskId(toProductImageResult.getTaskId());