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);