From b322c74b887877ef0e8f272ea673d882e038f161 Mon Sep 17 00:00:00 2001 From: liuyiliang Date: Wed, 26 Feb 2025 15:23:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=94=A8=E5=B1=9E=E6=80=A7=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ccic/safeliab/support/BaseServiceImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ccic-exam/src/main/java/com/ccic/safeliab/support/BaseServiceImpl.java b/ccic-exam/src/main/java/com/ccic/safeliab/support/BaseServiceImpl.java index ad021a5..0bc3bd3 100644 --- a/ccic-exam/src/main/java/com/ccic/safeliab/support/BaseServiceImpl.java +++ b/ccic-exam/src/main/java/com/ccic/safeliab/support/BaseServiceImpl.java @@ -20,12 +20,12 @@ public class BaseServiceImpl, T extends BaseEntity> exte user.setCustomerId(Long.parseLong("3009473735814009")); if (user != null) { entity.setCreatedBy(user.getCustomerId()); - entity.setUpdateBy(user.getCustomerId()); + entity.setUpdatedBy(user.getCustomerId()); } Date now = new Date(); - entity.setCreateAt(now); - entity.setUpdateAt(now); + entity.setCreatedAt(now); + entity.setUpdatedAt(now); if (entity.getStatus() == null) { entity.setStatus(1); } @@ -37,10 +37,10 @@ public class BaseServiceImpl, T extends BaseEntity> exte public boolean updateById(T entity) { Customer user = new Customer(); if (user != null) { - entity.setUpdateBy(user.getCustomerId()); + entity.setUpdatedBy(user.getCustomerId()); } - entity.setUpdateAt(new Date()); + entity.setUpdatedAt(new Date()); return super.updateById(entity); }