| | |
| | | if (r1.getCode() == 1) { |
| | | return R.failed("流程启动失败"); |
| | | } |
| | | contract.setContractStatus(2); |
| | | contract.setContractStatus(1); |
| | | baseMapper.updateById(contract); |
| | | return R.ok(); |
| | | } |
| | | |
| | | public void takeEffect(Long id) { |
| | | Contract contract = baseMapper.selectById(id); |
| | | contract.setContractStatus(1); |
| | | contract.setContractStatus(2); |
| | | baseMapper.updateById(contract); |
| | | ContractPaymentSchedule fitstSchedule = contractPaymentScheduleMapper.selectOne(Wrappers.<ContractPaymentSchedule>lambdaQuery().eq(ContractPaymentSchedule::getContractId,contract.getId()) |
| | | .orderByAsc(ContractPaymentSchedule::getCreateTime).last("limit 1")); |
| | |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | @Override |
| | | public R refuseApproval(Long id) { |
| | | Contract contract = baseMapper.selectById(id); |
| | | contract.setContractStatus(0); |
| | | baseMapper.updateById(contract); |
| | | return R.ok(); |
| | | } |
| | | } |