Showing
1 changed file
with
14 additions
and
0 deletions
| @@ -309,6 +309,20 @@ public class BusinessDataHandlerServiceImpl implements BusinessDataHandlerServic | @@ -309,6 +309,20 @@ public class BusinessDataHandlerServiceImpl implements BusinessDataHandlerServic | ||
| 309 | || FlowInstanceStatus.REFUSE.getCode().equals(flowStatus) | 309 | || FlowInstanceStatus.REFUSE.getCode().equals(flowStatus) |
| 310 | || FlowInstanceStatus.TERMINATION.getCode().equals(flowStatus)) { | 310 | || FlowInstanceStatus.TERMINATION.getCode().equals(flowStatus)) { |
| 311 | purchaseOrderInfoService.updateStatus(businessId, "REFUSE"); | 311 | purchaseOrderInfoService.updateStatus(businessId, "REFUSE"); |
| 312 | + PurchaseOrderInfo orderInfo = purchaseOrderInfoService.findById(businessId); | ||
| 313 | + //todo 消息通知(站内信) | ||
| 314 | + List<String> userIdList = new ArrayList<>(); | ||
| 315 | + //发起人 | ||
| 316 | + String createById = orderInfo.getCreateById(); | ||
| 317 | + userIdList.add(createById); | ||
| 318 | + SysSiteMessageDto messageDto = new SysSiteMessageDto(); | ||
| 319 | + messageDto.setUserIdList(userIdList); | ||
| 320 | + messageDto.setTitle("订货单审核驳回通知"); | ||
| 321 | + messageDto.setContent("订货单编码:" + orderInfo.getOrderNo() + " 的审核流程被驳回,请尽快查看!"); | ||
| 322 | + messageDto.setBizKey(IdUtil.getId()); | ||
| 323 | + //如果是空表示由系统自动发起 | ||
| 324 | + messageDto.setCreateUserId(null); | ||
| 325 | + mqProducerService.createSysSiteMessage(messageDto); | ||
| 312 | } | 326 | } |
| 313 | receiptLedgerInfoService.autoFreeze(customerId); | 327 | receiptLedgerInfoService.autoFreeze(customerId); |
| 314 | } | 328 | } |