| | |
| | | TContract contract = this.baseMapper.selectById(dto.getId()); |
| | | contract.setTerminateRemark(dto.getTerminateRemark()); |
| | | this.baseMapper.updateById(contract); |
| | | |
| | | // 进入合同提前终止审批流程 |
| | | ProcessStartBO processStartBO = new ProcessStartBO(); |
| | | processStartBO.setCategory(ProcessCategoryEnum.CATEGORY3.getValue().toString()); |
| | |
| | | processStartBO.setVariable(variable); |
| | | //开启工作流程 |
| | | stateProcessTemplateService.start(processStartBO); |
| | | |
| | | |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | |
| | | if (contract.getStatus().equals("4"))return R.fail("该合同已签订"); |
| | | contract.setSignature(dto.getSignature()); |
| | | contract.setFirstPayTime(contract.getStartTime().plusDays(10)); |
| | | contract.setStatus("9"); |
| | | contractMapper.updateById(contract); |
| | | |
| | | // 进入签订审批流程 |
| | |
| | | @Override |
| | | public Boolean updateContractAuditStatus(String projectId, Integer status) { |
| | | LambdaUpdateWrapper<TContract> contractLambdaUpdateWrapper = new LambdaUpdateWrapper<>(); |
| | | contractLambdaUpdateWrapper.eq(TContract::getId, projectId).set(TContract::getStatus, status); |
| | | contractLambdaUpdateWrapper |
| | | .eq(TContract::getId, projectId) |
| | | .set(TContract::getStatus, status) |
| | | .set(TContract::getSignTime, LocalDateTime.now()); |
| | | return this.update(contractLambdaUpdateWrapper); |
| | | } |
| | | } |