| | |
| | | query.count = 1; |
| | | List<ClientInfo> list = list(query); |
| | | long maxId = 0; |
| | | if (list.size() > 0) { |
| | | maxId = list.get(0).getId(); |
| | | if (!list.isEmpty()) { |
| | | maxId =Long.parseLong(StringUtil.getNumberFromString(list.get(0).getAccount()).split(",")[0]) + 1; |
| | | } |
| | | if(info.getClientType()==ClientInfo.CLIENT_TYPE_AGENT_PAYMENT) { |
| | | info.setAccount("c" + maxId); |
| | | info.setAccount(ClientInfo.ClientType.AGENT_PAYMENT.getAccountPrefix() + maxId); |
| | | }else if(info.getClientType()==ClientInfo.CLIENT_TYPE_ORDER){ |
| | | info.setAccount("s" + maxId); |
| | | info.setAccount(ClientInfo.ClientType.ORDER.getAccountPrefix() + maxId); |
| | | } |
| | | } |
| | | clientInfoMapper.insertSelective(info); |
| | |
| | | i--; |
| | | continue; |
| | | } |
| | | if(StringUtil.isNullOrEmpty(info.getMobile())||StringUtil.isNullOrEmpty(info.getAlipayAccount())||StringUtil.isNullOrEmpty(info.getAlipayPassword())){ |
| | | if(StringUtil.isNullOrEmpty(info.getMobile())){ |
| | | clientInfoList.remove(i); |
| | | i--; |
| | | continue; |