Commit eb341f34 by zhiwj

导购bug

parent f30b49cc
......@@ -93,7 +93,7 @@ public class ClerkApiServiceImpl implements ClerkApiService {
if (!clerkDTO.getClerkCode().matches(com.gic.store.constant.Constants.CLERK_CODE_REGEX)) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "导购代码仅支持数字和英文字符");
}
if (clerkPositionService.getByClerkPositionId(clerkDTO.getPositionId()) == null) {
if (clerkDTO.getPositionId() != null && clerkPositionService.getByClerkPositionId(clerkDTO.getPositionId()) == null) {
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