|
|
|
@ -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)->{
|
|
|
|
|