Explorar o código

oa报销删除任务

zxz %!s(int64=2) %!d(string=hai) anos
pai
achega
a0f2d799e8

+ 3 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/ExpenseInfoServiceImpl.java

@@ -198,6 +198,9 @@ public class ExpenseInfoServiceImpl extends ServiceImpl<ExpenseInfoMapper, Expen
         ExpenseInfo expenseInfo=this.selectById(id);
         if (expenseInfo != null) {
             this.deleteById(expenseInfo.getId());
+            // 先删除任务
+            noticeService.removeNotice(BaseNotice.NoticeStatus.TASK, "FEIYONGGUANLI-APPROVE",
+                    expenseInfo.getId(), null);
         }
     }