|
|
|
@ -93,13 +93,13 @@ public class ClientContractServiceImpl implements ClientContractService {
|
|
|
|
|
JSONObject rateExpire = getClientContractExpire(client_id);
|
|
|
|
|
boolean expire = rateExpire.getBoolean("rate_expire");
|
|
|
|
|
boolean waring = rateExpire.getBoolean("rate_waring");
|
|
|
|
|
if(!(expire && waring)){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
JSONObject contract = clientsContractMapper.findByClientId(client_id);
|
|
|
|
|
if (contract == null) {
|
|
|
|
|
throw new BadRequestException("generate contract first");
|
|
|
|
|
}
|
|
|
|
|
if(contract.getBoolean("has_sign")){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
contract.put("has_sign", 1);
|
|
|
|
|
clientsContractMapper.update(contract);
|
|
|
|
|
Date now = new Date();
|
|
|
|
|