共享库存修改
This commit is contained in:
@@ -33,6 +33,9 @@ import java.util.stream.Collectors;
|
||||
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
|
||||
public interface TbProductMapper extends BaseMapper<TbProductDto, TbProduct> {
|
||||
default List<Integer> map(String value) {
|
||||
if (value == null || value.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
return ListUtil.stringChangeIntegerList(value);
|
||||
}
|
||||
|
||||
@@ -46,4 +49,4 @@ public interface TbProductMapper extends BaseMapper<TbProductDto, TbProduct> {
|
||||
.map(String::valueOf)
|
||||
.collect(Collectors.joining(","));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user