Browse Source

撤销开票后出入库列表还能看到发表细信息
2022年8月4日17时03分

纪新园 3 years ago
parent
commit
7f080462da

+ 5 - 0
ruoyi-warehouse/src/main/java/com/ruoyi/finance/service/impl/TFeeServiceImpl.java

@@ -1327,6 +1327,9 @@ public class TFeeServiceImpl implements ITFeeService {
         // tFeeDoMapper.deleteByFPid(tFee.getfId());
         //  财务从表
         if (StringUtils.isNotNull(tfeeDo)) {
+            Map<String, Object> map = new HashMap<>();
+            map.put("tFee", tFee);
+            map.put("billType", fBilltype);
             JSONArray jsonDrArray = JSONArray.parseArray(tfeeDo);
             List<TFeeDo> tFeeDoList = JSONObject.parseArray(jsonDrArray.toJSONString(), TFeeDo.class);
             for (TFeeDo tFeeDo : tFeeDoList) {
@@ -1347,6 +1350,8 @@ public class TFeeServiceImpl implements ITFeeService {
                     tfdo.setUpdateTime(new Date());
                     tFeeDoMapper.updateTFeeDo(tfdo);
                 }
+                map.put("tFeeDo", tFeeDo);
+                tWarehousebillsfeesMapper.updateTWarehousebillsfee(map);
             }
         }
         //修改主订单费用信息