|
|
|
@ -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"));
|
|
|
|
|