master
wangning 7 years ago
parent f48ccb5325
commit 69104c110c

@ -255,3 +255,5 @@ sign_account_id varchar(50) DEFAULT null,
signatory varchar(20) DEFAULT null,
PRIMARY key (`id`)
);
alter table sys_clients_contract add column confirm_time datetime DEFAULT null comment '合同确认时间';

@ -102,14 +102,15 @@ public class ClientContractServiceImpl implements ClientContractService {
if(contract.getBoolean("has_sign")){
return;
}
Date now = new Date();
JSONObject account = clientAccountMapper.findById(account_id);
contract.put("has_sign", 1);
contract.put("sign_account_id",account_id);
contract.put("sign_channel",channel);
contract.put("confirm_time",now);
contract.put("signatory",account.getString("display_name"));
clientsContractMapper.update(contract);
Date now = new Date();
List<JSONObject> rateInfo = clientRateMapper.minExpiryTime(client_id, null);
if(expire){
rateInfo.forEach((p)->{

Loading…
Cancel
Save