|
|
|
@ -250,6 +250,7 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService {
|
|
|
|
|
JSONObject param = new JSONObject();
|
|
|
|
|
param.put("begin_time",DateFormatUtils.format(now,"YYYYMMdd"));
|
|
|
|
|
param.put("end_time",DateFormatUtils.format(DateUtils.addDays(now,1),"YYYYMMdd"));
|
|
|
|
|
param.put("agree",true);
|
|
|
|
|
List<JSONObject> existCount = sysClientPreMapperMapper.query(param);
|
|
|
|
|
if(existCount.size()>30){
|
|
|
|
|
throw new BadRequestException("New merchant over limit,Please contact us");
|
|
|
|
@ -297,6 +298,7 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService {
|
|
|
|
|
sysAccount.put("client_id",clientId);
|
|
|
|
|
sysAccount.put("create_time",new Date());
|
|
|
|
|
sysAccount.put("is_password_expired",0);
|
|
|
|
|
sysAccount.put("nation_code","+61");
|
|
|
|
|
clientAccountMapper.save(sysAccount);
|
|
|
|
|
|
|
|
|
|
JSONObject sysBank = new JSONObject();
|
|
|
|
|