处理空字符串的问题
This commit is contained in:
parent
2d5ca75942
commit
06e65187d2
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue