Commit db798764 by guojuxing

微盟店铺pid和storeId必须为数字

parent b7aaa396
......@@ -301,6 +301,9 @@ public class WmStoreApiServiceImpl implements WmStoreApiService {
if (StringUtils.isBlank(wmStoreDTO.getWmPid())) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "PID不能为空");
}
if (!StringUtils.isNumeric(wmStoreDTO.getWmPid())) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "PID必须为数字");
}
if (isCanEdit && !record.getWmPid().equals(wmStoreDTO.getWmPid())) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "已授权,PID不能修改");
}
......@@ -310,6 +313,9 @@ public class WmStoreApiServiceImpl implements WmStoreApiService {
if (StringUtils.isBlank(wmStoreDTO.getWmStoreId())) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "storeID不能为空");
}
if (!StringUtils.isNumeric(wmStoreDTO.getWmStoreId())) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "storeID必须为数字");
}
if (isCanEdit && !record.getWmStoreId().equals(wmStoreDTO.getWmStoreId())) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "已授权,storeID不能修改");
}
......
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