| | |
| | | package cn.iocoder.yudao.module.mes.service.wm.salesnotice.listener; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import cn.iocoder.yudao.module.bpm.api.event.BpmProcessInstanceStatusEvent; |
| | | import cn.iocoder.yudao.module.mes.dal.dataobject.wm.salesnotice.MesWmSalesNoticeDO; |
| | | import cn.iocoder.yudao.module.mes.dal.mysql.wm.salesnotice.MesWmSalesNoticeMapper; |
| | |
| | | |
| | | @Override |
| | | public void onApplicationEvent(BpmProcessInstanceStatusEvent event) { |
| | | // 只处理发货审批分类/流程 key 的事件,避免其它模块相同 businessKey 误触发 |
| | | if (!StrUtil.equals(event.getProcessDefinitionKey(), "sales_delivery_approve") |
| | | && !StrUtil.equals(event.getProcessDefinitionCategory(), "sales_delivery_approve")) { |
| | | return; |
| | | } |
| | | Long noticeId; |
| | | try { |
| | | noticeId = Long.parseLong(event.getBusinessKey()); |