From d387556ceec7094696b172a9ac79c7c697228499 Mon Sep 17 00:00:00 2001 From: du <1725534722@qq.com> Date: Thu, 9 Jan 2025 14:43:51 +0800 Subject: [PATCH] bugfix --- .../java/com/ruoyi/tc/controller/AssetCurrentController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/controller/AssetCurrentController.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/controller/AssetCurrentController.java index de3159b..981096e 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/controller/AssetCurrentController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/controller/AssetCurrentController.java @@ -507,7 +507,7 @@ public class AssetCurrentController extends BaseController { @PutMapping public AjaxResult update(@RequestBody @Valid AssetCurrent assetCurrent) { //保存未修改之前的单位名称 - AssetCurrent byId = assetCurrentService.getById(assetCurrent.getId()); +// AssetCurrent byId = assetCurrentService.getById(assetCurrent.getId()); StringBuilder a = new StringBuilder(); if (assetCurrent.getGlymList() != null) { assetCurrent.getGlymList().forEach(x -> { @@ -656,6 +656,8 @@ public class AssetCurrentController extends BaseController { if (dwmcList.isEmpty()) { delete(assetCurrent); }else{ + + delete(assetCurrent); for (AssetTask s:dwmcList){