master
wangning 7 years ago
parent c1518c0d78
commit 3650e2f7be

@ -281,6 +281,11 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService {
throw new BadRequestException("New merchant over limit,Please contact us");
}
JSONObject apply = sysClientPreMapperMapper.findByUserName(username);
JSONObject account = clientAccountMapper.findByPhone(apply.getString("contact_phone"), "+61");
if (account != null) {
throw new ForbiddenException("The user name has been registered");
}
String clientMoniker = generateClientMoniker();
JSONObject sysClient = new JSONObject();
sysClient.put("company_name", apply.getString("company_name"));

Loading…
Cancel
Save