增加日志打印

This commit is contained in:
2025-07-02 17:03:40 +08:00
parent 77fc3e967a
commit 333c11f81e

View File

@@ -592,11 +592,13 @@ public class CollectionElementServiceImpl extends ServiceImpl<CollectionElementM
//校验控制生成类型
SingleOverallEnum singleOverall = SingleOverallEnum.of(designDTO.getSingleOverall());
if (Objects.isNull(singleOverall)) {
log.error("未知singleOverall param{}", designDTO.getSingleOverall());
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());
throw new BusinessException("unknown.parameter.switchCategory");
}
}