| | |
| | | import cn.afterturn.easypoi.excel.ExcelExportUtil; |
| | | import cn.afterturn.easypoi.excel.entity.ExportParams; |
| | | import cn.hutool.core.util.ObjectUtil; |
| | | import com.aizuda.bpm.engine.core.FlowCreator; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | |
| | | @Log(title = "合同管理-撤销审批", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "撤销审批") |
| | | @PreAuthorize("@ss.hasPermi('system:contract:revoke')") |
| | | |
| | | @GetMapping(value = "/updateContractStatus") |
| | | public R<Boolean> updateContractStatus(String id) { |
| | | TContract contract = contractService.getById(id); |
| | | @PostMapping(value = "/updateContractStatus") |
| | | public R<Boolean> updateContractStatus(@RequestBody RevokeDTO dto) { |
| | | TContract contract = contractService.getById(dto.getContractId()); |
| | | contract.setStatus("1"); |
| | | contractService.updateById(contract); |
| | | // 撤销审批实例 |
| | | stateProcessTemplateService.revoke(dto.getInstanceId()); |
| | | |
| | | return R.ok(); |
| | | } |
| | | @PreAuthorize("@ss.hasPermi('system:contract:confirm')") |
| | | |
| | | @Log(title = "合同管理-确认结算", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "确认结算") |
| | | @PostMapping(value = "/confirmSettlement") |