liuyc 2 роки тому
батько
коміт
16c4612a22

+ 2 - 1
blade-service/blade-control/src/main/java/org/springblade/control/service/impl/EMInvoiceServiceImpl.java

@@ -207,7 +207,8 @@ public class EMInvoiceServiceImpl extends BaseServiceImpl<ExMInvoiceMapper, EMIn
     public boolean invoiceRemove(Long id) {
         EMInvoiceInfo emInvoiceInfo = baseMapper.selectById(id);
         if (emInvoiceInfo.getIsTemp().equals(0)) {
-            return this.removeById(id);
+            jdbcTemplate.execute("delete from c_expense_invoice_info where id = " + id);
+            return true;
         } else {
             throw new ServiceException("当前记录信息不是草稿数据,无法删除");
         }

+ 2 - 1
blade-service/blade-control/src/main/java/org/springblade/control/service/impl/EMLoanServiceImpl.java

@@ -202,7 +202,8 @@ public class EMLoanServiceImpl extends BaseServiceImpl<ExMLoanMapper, EMLoanInfo
     public boolean loanRemove(Long id) {
         EMLoanInfo emLoanInfo = baseMapper.selectById(id);
         if (emLoanInfo.getIsTemp().equals(0)) {
-            return this.removeById(id);
+            jdbcTemplate.execute("delete from c_expense_loan_info where id = " + id);
+            return true;
         } else {
             throw new ServiceException("当前记录信息不是草稿数据,无法删除");
         }

+ 2 - 1
blade-service/blade-control/src/main/java/org/springblade/control/service/impl/EMOutsourcingPayServiceImpl.java

@@ -205,7 +205,8 @@ public class EMOutsourcingPayServiceImpl extends BaseServiceImpl<ExMOutsourcingP
     public boolean outsourcingRemove(Long id) {
         EMOutsourcingPayInfo emOutsourcingPayInfo = baseMapper.selectById(id);
         if (emOutsourcingPayInfo.getIsTemp().equals(0)) {
-            return this.removeById(id);
+            jdbcTemplate.execute("delete from c_expense_outsourcing_pay_info where id = " + id);
+            return true;
         } else {
             throw new ServiceException("当前记录信息不是草稿数据,无法删除");
         }

+ 2 - 1
blade-service/blade-control/src/main/java/org/springblade/control/service/impl/EMPayServiceImpl.java

@@ -186,7 +186,8 @@ public class EMPayServiceImpl extends BaseServiceImpl<ExMPayMapper, EMPayInfo> i
     public boolean payRemove(Long id) {
         EMPayInfo emPayInfo = baseMapper.selectById(id);
         if (emPayInfo.getIsTemp().equals(0)) {
-            return this.removeById(id);
+            jdbcTemplate.execute("delete from c_expense_pay_info where id = " + id);
+            return true;
         } else {
             throw new ServiceException("当前记录信息不是草稿数据,无法删除");
         }