判空
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user