处理空字符串的问题
This commit is contained in:
@@ -18,6 +18,12 @@ public class StockQueryDto {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setCategoryId(String categoryId) {
|
||||||
|
if (StringUtils.isNotBlank(categoryId)) {
|
||||||
|
this.categoryId = categoryId;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void setShopId(String shopId) {
|
public void setShopId(String shopId) {
|
||||||
if (StringUtils.isNotBlank(shopId) && !shopId.equals("1")) {
|
if (StringUtils.isNotBlank(shopId) && !shopId.equals("1")) {
|
||||||
this.shopId = shopId;
|
this.shopId = shopId;
|
||||||
|
|||||||
Reference in New Issue
Block a user