共享库存修改

This commit is contained in:
GYJ
2024-06-24 11:42:41 +08:00
parent 1675e5d45b
commit b9b35849c3
15 changed files with 520 additions and 73 deletions

View File

@@ -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(","));
}
}
}