From 035edfa382d349ba66240fbfef68c14c7cfc95d1 Mon Sep 17 00:00:00 2001
From: admin <1101184511@qq.com>
Date: 星期五, 08 八月 2025 01:20:21 +0800
Subject: [PATCH] 功能完善

---
 src/main/java/com/taoke/autopay/service/impl/ClientInfoServiceImpl.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/taoke/autopay/service/impl/ClientInfoServiceImpl.java b/src/main/java/com/taoke/autopay/service/impl/ClientInfoServiceImpl.java
index a383ed7..3c841fc 100644
--- a/src/main/java/com/taoke/autopay/service/impl/ClientInfoServiceImpl.java
+++ b/src/main/java/com/taoke/autopay/service/impl/ClientInfoServiceImpl.java
@@ -101,13 +101,13 @@
             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);

--
Gitblit v1.8.0