From e928bc6c4911e87ad89fb9cb155de4a7bc35435e Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 12 二月 2025 23:00:48 +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