From 05e4df38f0a8efc23650af9ca35598f37d1f10d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=93=B2=E5=A5=87?= <13840175730@139.com> Date: Fri, 6 Sep 2024 09:44:37 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=AE=8C=E5=96=84=E6=8A=9B=E4=B8=B8=E6=B4=BE?= =?UTF-8?q?=E5=B7=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/dsic/gj_erp/controller/zyjh/ZyjhController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/dsic/gj_erp/controller/zyjh/ZyjhController.java b/src/main/java/com/dsic/gj_erp/controller/zyjh/ZyjhController.java index 0acfe82..9797e0e 100644 --- a/src/main/java/com/dsic/gj_erp/controller/zyjh/ZyjhController.java +++ b/src/main/java/com/dsic/gj_erp/controller/zyjh/ZyjhController.java @@ -44,7 +44,7 @@ public class ZyjhController { } List list=dto.getList(); try { - Field field=DmYdjh.class.getField(dto.getField()); + Field field=DmYdjh.class.getDeclaredField(dto.getField()); if (ObjUtil.isNotEmpty(field)){ field.setAccessible(true); String date=DateUtil.date().toString("yyyy/MM/dd"); @@ -56,6 +56,7 @@ public class ZyjhController { zyjhService.updateBatchById(list); return new ResultBean<>(); } catch (NoSuchFieldException | IllegalAccessException e) { + e.printStackTrace(); throw new ServiceException(10001,"属性字段不存在"); } }