master
wangning 7 years ago
parent 55bad532b4
commit f79085be54

@ -118,6 +118,7 @@ public class ClientContractServiceImpl implements ClientContractService {
p.put("active_time",now); p.put("active_time",now);
p.put("update_time",now); p.put("update_time",now);
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"));
clientRateMapper.saveRate(p); clientRateMapper.saveRate(p);
}); });
} }
@ -126,6 +127,7 @@ public class ClientContractServiceImpl implements ClientContractService {
p.remove("client_rate_id"); p.remove("client_rate_id");
p.put("create_time",now); p.put("create_time",now);
p.put("update_time",now); p.put("update_time",now);
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