master
wangning 7 years ago
parent b5f2f1ed29
commit e5ee89eb15

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

@ -10,6 +10,9 @@
<if test="#{end_time}!=null">
and create_time &lt; #{end_time}
</if>
<if test="agree">
and agree = #{agree}
</if>
</where>
</select>
</mapper>
Loading…
Cancel
Save