From bc56870059cca013649077af0e53891cba8dbfd1 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期日, 04 八月 2024 09:43:41 +0800 Subject: [PATCH] 代理新功能完善 --- 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