From 81fb75377f591711187110d4640d9d204a17c0ae Mon Sep 17 00:00:00 2001 From: wangning <164851225@qq.com> Date: Fri, 9 Mar 2018 17:31:39 +0800 Subject: [PATCH] update --- .../manage/system/core/impl/ClientContractServiceImpl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/system/core/impl/ClientContractServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/system/core/impl/ClientContractServiceImpl.java index 5d6fb081a..502d87bc2 100644 --- a/src/main/java/au/com/royalpay/payment/manage/system/core/impl/ClientContractServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/system/core/impl/ClientContractServiceImpl.java @@ -117,8 +117,9 @@ public class ClientContractServiceImpl implements ClientContractService { p.put("create_time",now); p.put("active_time",now); p.put("update_time",now); + p.put("manager_id","0"); p.put("expiry_time",DateUtils.addYears(now,1)); - p.put("manager_name","merchant"+account_id+account.getString("display_name")); + p.put("manager_name","merchant_"+account_id+"_"+account.getString("display_name")); clientRateMapper.saveRate(p); }); } @@ -126,8 +127,9 @@ public class ClientContractServiceImpl implements ClientContractService { rateInfo.forEach((p)->{ p.remove("client_rate_id"); p.put("create_time",now); + p.put("manager_id","0"); p.put("update_time",now); - p.put("manager_name","merchant"+account_id+account.getString("display_name")); + p.put("manager_name","merchant_"+account_id+"_"+account.getString("display_name")); p.put("active_time",DateUtils.addDays(p.getDate("expiry_time"),1)); p.put("expiry_time",DateUtils.addYears(p.getDate("active_time"),1)); clientRateMapper.saveRate(p);