master
wangning 7 years ago
parent 81ecb15c05
commit 1e380cc65a

@ -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();

Loading…
Cancel
Save