处理空字符串的问题

This commit is contained in:
GYJ 2024-07-08 14:45:53 +08:00
parent 2d5ca75942
commit 06e65187d2
1 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,12 @@ public class StockQueryDto {
}
}
public void setCategoryId(String categoryId) {
if (StringUtils.isNotBlank(categoryId)) {
this.categoryId = categoryId;
}
}
public void setShopId(String shopId) {
if (StringUtils.isNotBlank(shopId) && !shopId.equals("1")) {
this.shopId = shopId;