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