From fa677dec1c55db004a31beefb1e346e18c7858c2 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 20 二月 2025 18:41:29 +0800
Subject: [PATCH] bug修改

---
 src/main/java/com/taoke/autopay/service/impl/agent/ChannelAgentSharingRatioServiceImpl.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/taoke/autopay/service/impl/agent/ChannelAgentSharingRatioServiceImpl.java b/src/main/java/com/taoke/autopay/service/impl/agent/ChannelAgentSharingRatioServiceImpl.java
index c08d683..33b3638 100644
--- a/src/main/java/com/taoke/autopay/service/impl/agent/ChannelAgentSharingRatioServiceImpl.java
+++ b/src/main/java/com/taoke/autopay/service/impl/agent/ChannelAgentSharingRatioServiceImpl.java
@@ -36,6 +36,7 @@
             if (shareRatio.getUpdateTime() != null) {
                 shareRatio.setUpdateTime(new Date());
             }
+            shareRatio.setId(old.getId());
             channelAgentSharingRatioMapper.updateByPrimaryKeySelective(shareRatio);
         } else {
             if (shareRatio.getCreateTime() == null) {
@@ -52,7 +53,7 @@
         ChannelAgentSharingRatioMapper.DaoQuery daoQuery = new ChannelAgentSharingRatioMapper.DaoQuery();
         daoQuery.agengId = agengId;
         daoQuery.orderChannel = orderChannel;
-        daoQuery.count = 0;
+        daoQuery.count = 1;
         List<ChannelAgentSharingRatio> list = channelAgentSharingRatioMapper.list(daoQuery);
         if (list.isEmpty()) {
             return null;

--
Gitblit v1.8.0