From 907641e56c2085aaa81f267946dc3e3e9fca73e7 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期三, 18 九月 2024 09:39:02 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/java/com/smartor/service/impl/SvyLibScriptCategoryServiceImpl.java | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/smartor/src/main/java/com/smartor/service/impl/SvyLibScriptCategoryServiceImpl.java b/smartor/src/main/java/com/smartor/service/impl/SvyLibScriptCategoryServiceImpl.java index 849a931..c598b25 100644 --- a/smartor/src/main/java/com/smartor/service/impl/SvyLibScriptCategoryServiceImpl.java +++ b/smartor/src/main/java/com/smartor/service/impl/SvyLibScriptCategoryServiceImpl.java @@ -14,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; +import java.util.Date; import java.util.List; import java.util.stream.Collectors; @@ -138,6 +139,9 @@ if (seqMax != null) { svyLibScriptCategory.setSeqno(seqMax + 1); } + svyLibScriptCategory.setUpdateTime(new Date()); + svyLibScriptCategory.setCreateTime(new Date()); + if (svyLibScriptCategory.getPid() == null) svyLibScriptCategory.setPid((long) -1); i = svyLibScriptCategoryMapper.insertSvyLibScriptCategory(svyLibScriptCategory); log.info("闂璇濇湳鍒嗙被搴撲竴绾ф爲鐨勪富閿�:{}", svyLibScriptCategory.getId()); -- Gitblit v1.9.3