From 4a3404efc438b16044fd9170814e6545a3f86fae Mon Sep 17 00:00:00 2001 From: hjg <hjg@123.com> Date: 星期六, 20 一月 2024 18:32:22 +0800 Subject: [PATCH] 提交时无提单无法删除的问题 --- JavaSource/com/mandi/fendan/service/impl/ErpService.java | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/JavaSource/com/mandi/fendan/service/impl/ErpService.java b/JavaSource/com/mandi/fendan/service/impl/ErpService.java index faaed06..8331c99 100644 --- a/JavaSource/com/mandi/fendan/service/impl/ErpService.java +++ b/JavaSource/com/mandi/fendan/service/impl/ErpService.java @@ -89,6 +89,9 @@ @Resource private SqlSessionFactory sqlSessionFactory; + @Resource + private FdVehicleRemarkMapper fdVehicleRemarkMapper; + @Override public ObjectResult<String> tzPrint(Login lg, String bssNo, String ipadd) { ObjectResult<String> orr = new ObjectResult<String>(); @@ -796,7 +799,7 @@ } @Override - @Transactional + @Transactional(rollbackFor = Exception.class) public ObjectResult<Boolean> delFdsheet(Login lg, String bsNo) throws Exception{ ObjectResult<Boolean> or = new ObjectResult<Boolean>(); if (lg == null) { @@ -878,6 +881,7 @@ String xstdNo = VX.getXstdNo(); List<Fd_XSTDMX> mxl = new ArrayList<Fd_XSTDMX>(); Fd_XSTD xstd = this.tdper.getbyTDBH(xstdNo); + if(xstd==null) continue; List<Fd_XSTDMX> MXL = this.tdmxper.getbyBsNoandcmNo(xstd.getTd_tdls(), bsNo, lg.getDepartno()); double ZZL = 0; int ZZS = 0; @@ -981,7 +985,8 @@ } } - + // 鍒犻櫎杞﹁締鍒嗗崟鐨勫娉╮emark + fdVehicleRemarkMapper.deleteByBusinessNo(bsNo); or.setCode(0); or.setItem(true); return or; -- Gitblit v1.9.3