master
wangning 7 years ago
parent b10606486b
commit 81fb75377f

@ -117,8 +117,9 @@ public class ClientContractServiceImpl implements ClientContractService {
p.put("create_time",now); p.put("create_time",now);
p.put("active_time",now); p.put("active_time",now);
p.put("update_time",now); p.put("update_time",now);
p.put("manager_id","0");
p.put("expiry_time",DateUtils.addYears(now,1)); 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); clientRateMapper.saveRate(p);
}); });
} }
@ -126,8 +127,9 @@ public class ClientContractServiceImpl implements ClientContractService {
rateInfo.forEach((p)->{ rateInfo.forEach((p)->{
p.remove("client_rate_id"); p.remove("client_rate_id");
p.put("create_time",now); p.put("create_time",now);
p.put("manager_id","0");
p.put("update_time",now); 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("active_time",DateUtils.addDays(p.getDate("expiry_time"),1));
p.put("expiry_time",DateUtils.addYears(p.getDate("active_time"),1)); p.put("expiry_time",DateUtils.addYears(p.getDate("active_time"),1));
clientRateMapper.saveRate(p); clientRateMapper.saveRate(p);

Loading…
Cancel
Save