增加配置属性
This commit is contained in:
parent
9dc5902df3
commit
16e25da984
|
|
@ -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())) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue