From 595b7935a30e84fba1bc3561d05f9d19d3e32e1f Mon Sep 17 00:00:00 2001 From: Administrator <1101184511@qq.com> Date: 星期三, 23 四月 2025 00:45:48 +0800 Subject: [PATCH] 后台管理页面完成 --- src/main/java/com/taoke/autopay/service/impl/credit/CreditSettingServiceImpl.java | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/taoke/autopay/service/impl/credit/CreditSettingServiceImpl.java b/src/main/java/com/taoke/autopay/service/impl/credit/CreditSettingServiceImpl.java index b0e26c6..3238425 100644 --- a/src/main/java/com/taoke/autopay/service/impl/credit/CreditSettingServiceImpl.java +++ b/src/main/java/com/taoke/autopay/service/impl/credit/CreditSettingServiceImpl.java @@ -17,6 +17,9 @@ @Override public int addSetting(CreditSetting creditSetting) { + if(creditSetting.getCreateTime()==null){ + creditSetting.setCreateTime(new Date()); + } return creditSettingMapper.insertSelective(creditSetting); } @@ -51,4 +54,9 @@ } return settings.get(0); } + + @Override + public CreditSetting selectByPrimaryKey(Long id) { + return creditSettingMapper.selectByPrimaryKey(id); + } } \ No newline at end of file -- Gitblit v1.8.0