This commit is contained in:
parent
1746d6b664
commit
09b2fe2a74
|
|
@ -41,7 +41,7 @@ public class LimitRateDTO {
|
||||||
private Set<Long> foodIds;
|
private Set<Long> foodIds;
|
||||||
|
|
||||||
public Set<Long> getFoodIds() {
|
public Set<Long> getFoodIds() {
|
||||||
if (CollUtil.isEmpty(foodIds)) {
|
if (CollUtil.isEmpty(foodIds) && StrUtil.isNotBlank(foods)) {
|
||||||
foodIds = CollUtil.newHashSet(StrUtil.split(foods, ","))
|
foodIds = CollUtil.newHashSet(StrUtil.split(foods, ","))
|
||||||
.stream()
|
.stream()
|
||||||
.map(Long::parseLong)
|
.map(Long::parseLong)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue