增加配置属性

This commit is contained in:
sxu 2024-12-10 11:13:35 +08:00
parent 9dc5902df3
commit 16e25da984
1 changed files with 3 additions and 1 deletions

View File

@ -133,7 +133,9 @@ public class MaTypeServiceImpl implements ITypeService {
//保存配置属性
if (!CollectionUtils.isEmpty(maType.getPropertyNames())) {
maTypeMapper.deleteMaTypePropertyNames(maType.getTypeId());
maTypeMapper.insertMaTypePropertyNames(maType.getTypeId(), maType.getPropertyNames());
List<String> maTypeProperties = maType.getPropertyNames();
maTypeProperties.removeIf(String::isEmpty);
maTypeMapper.insertMaTypePropertyNames(maType.getTypeId(), maTypeProperties);
}
// 图片路径保存
if (StringUtils.isNotEmpty(maType.getPhotoName()) && StringUtils.isNotEmpty(maType.getPhotoUrl())) {