zxz 1 gadu atpakaļ
vecāks
revīzija
67b8926927

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

@@ -600,9 +600,9 @@ public class ExpenseInfoServiceImpl extends ServiceImpl<ExpenseInfoMapper, Expen
             for(int i = 0;i<noticeTaskInfoList.size();i++){
                 noticeTaskInfoList.get(i).setDeleteFlag("1");
             }
+            noticeTaskService.updateBatchById(noticeTaskInfoList);
+            expenseInfo.setNoticeTaskInfoList(noticeTaskInfoList);
         }
-        noticeTaskService.updateBatchById(noticeTaskInfoList);
-        expenseInfo.setNoticeTaskInfoList(noticeTaskInfoList);
         return "OK";
     }
 
@@ -1142,9 +1142,9 @@ public class ExpenseInfoServiceImpl extends ServiceImpl<ExpenseInfoMapper, Expen
             for(int i = 0;i<noticeTaskInfoList.size();i++){
                 noticeTaskInfoList.get(i).setDeleteFlag("1");
             }
+            noticeTaskService.updateBatchById(noticeTaskInfoList);
+            expenseInfo.setNoticeTaskInfoList(noticeTaskInfoList);
         }
-        noticeTaskService.updateBatchById(noticeTaskInfoList);
-        expenseInfo.setNoticeTaskInfoList(noticeTaskInfoList);
         this.updateById(expenseInfo);
         ExpenseInfo expenseInfo1 = this.selectById(expenseInfo.getId());
         //合同费用