|
@@ -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("当前记录信息不是草稿数据,无法删除");
|
|
|
}
|