Commit da344275 by guojuxing

判断是否是数字类型

parent 2a2c93cb
......@@ -75,7 +75,7 @@ public class StoreFieldApiServiceImpl implements StoreFieldApiService {
if (StringUtils.isBlank(region)) {
continue;
}
if (!NumberUtils.isNumber(region)) {
if (!StringUtils.isNumeric(region)) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "门店域有误");
}
if (storeRegionService.getById(storeFieldDTO.getEnterpriseId(), Integer.parseInt(region)) == null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment