Commit 46aedfba by 陶光胜

经纬度校验

parent 54362f20
...@@ -90,9 +90,10 @@ public class ClerkApiServiceImpl implements ClerkApiService { ...@@ -90,9 +90,10 @@ public class ClerkApiServiceImpl implements ClerkApiService {
if (com.gic.store.constant.Constants.NULL.equals(clerkDTO.getClerkCode().toLowerCase())) { if (com.gic.store.constant.Constants.NULL.equals(clerkDTO.getClerkCode().toLowerCase())) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "导购代码不可为null"); return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "导购代码不可为null");
} }
if (!clerkDTO.getClerkCode().matches(com.gic.store.constant.Constants.CLERK_CODE_REGEX)) { /***code暂时不限制***/
/**if (!clerkDTO.getClerkCode().matches(com.gic.store.constant.Constants.CLERK_CODE_REGEX)) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "导购代码仅支持数字和英文字符"); return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "导购代码仅支持数字和英文字符");
} }*/
if (clerkDTO.getPositionId() != null && clerkPositionService.getByClerkPositionId(clerkDTO.getPositionId()) == null) { if (clerkDTO.getPositionId() != null && clerkPositionService.getByClerkPositionId(clerkDTO.getPositionId()) == null) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "门店下导购角色不存在"); return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "门店下导购角色不存在");
} }
......
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