Commit 9c98febb by zhiwj

导购bug

parent 9f296994
......@@ -93,6 +93,9 @@ 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) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "门店下导购角色不存在");
}
try {
......@@ -184,6 +187,10 @@ public class ClerkApiServiceImpl implements ClerkApiService {
if (clerkService.isRepeatByPhoneNumber(clerkDTO.getStoreInfoId(), clerkDTO.getPhoneNumber(), clerkDTO.getClerkId(), clerkDTO.getNationcode())) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "门店下导购手机号重复");
}
if (clerkPositionService.getByClerkPositionId(clerkDTO.getPositionId()) == null) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "门店下导购角色不存在");
}
return ServiceResponse.success();
}
......
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