| | |
| | | log.error("SalesQuotationServiceImpl approve error for quotationNo: {}", e); |
| | | throw new RuntimeException("审批失败: " + e.getMessage(), e); |
| | | } |
| | | // 报价审批 |
| | | ApprovalInstanceDto approvalInstanceDto = new ApprovalInstanceDto(); |
| | | approvalInstanceDto.setTemplateId(salesQuotationDto.getTemplateId()); |
| | | approvalInstanceDto.setBusinessId(salesQuotationDto.getId()); |
| | | approvalInstanceDto.setBusinessType(7L); |
| | | approvalInstanceDto.setTitle("报价编号:" + quotationNo); |
| | | approvalInstanceDto.setApplicantId(SecurityUtils.getUserId()); |
| | | approvalInstanceDto.setTemplateName(approvalTemplateMapper.selectById(salesQuotationDto.getTemplateId()).getTemplateName()); |
| | | approvalInstanceDto.setApplicantName(SecurityUtils.getLoginUser().getNickName()); |
| | | approvalInstanceDto.setApplyTime(LocalDateTime.now()); |
| | | approvalInstanceService.add(approvalInstanceDto); |
| | | // // 报价审批 |
| | | // ApprovalInstanceDto approvalInstanceDto = new ApprovalInstanceDto(); |
| | | // approvalInstanceDto.setTemplateId(salesQuotationDto.getTemplateId()); |
| | | // approvalInstanceDto.setBusinessId(salesQuotationDto.getId()); |
| | | // approvalInstanceDto.setBusinessType(7L); |
| | | // approvalInstanceDto.setTitle("报价编号:" + quotationNo); |
| | | // approvalInstanceDto.setApplicantId(SecurityUtils.getUserId()); |
| | | // approvalInstanceDto.setTemplateName(approvalTemplateMapper.selectById(salesQuotationDto.getTemplateId()).getTemplateName()); |
| | | // approvalInstanceDto.setApplicantName(SecurityUtils.getLoginUser().getNickName()); |
| | | // approvalInstanceDto.setApplyTime(LocalDateTime.now()); |
| | | // approvalInstanceService.add(approvalInstanceDto); |
| | | return true; |
| | | } |
| | | @Override |