From 2fed0b52d9c8e98d46c1eb8bd3876dafa60fc0b6 Mon Sep 17 00:00:00 2001 From: fengjin <1435304038@qq.com> Date: 星期五, 25 十一月 2022 10:14:16 +0800 Subject: [PATCH] 1.修改导办数量可能是负数的问题 --- flower_city/src/main/java/com/dg/core/service/impl/SysUserRecordServiceImpl.java | 22 +++++++++++++++++++++- 1 files changed, 21 insertions(+), 1 deletions(-) diff --git a/flower_city/src/main/java/com/dg/core/service/impl/SysUserRecordServiceImpl.java b/flower_city/src/main/java/com/dg/core/service/impl/SysUserRecordServiceImpl.java index 1df2211..c69de5f 100644 --- a/flower_city/src/main/java/com/dg/core/service/impl/SysUserRecordServiceImpl.java +++ b/flower_city/src/main/java/com/dg/core/service/impl/SysUserRecordServiceImpl.java @@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.dg.core.ResultData; import com.dg.core.db.gen.entity.AutomessageSysUserRecord; -import com.dg.core.db.gen.entity.AutomessageTransactionEventInterview; import com.dg.core.db.gen.entity.SysUser; import com.dg.core.db.gen.mapper.AutomessageSysUserRecordMapper; import com.dg.core.db.gen.mapper.SysUserMapper; @@ -43,4 +42,25 @@ return null; } + @Override + public ResultData selectUserRecordCount() { + return ResultData.success(baseMapper.selectUserRecordCount()); + } + + @Override + public ResultData selectByDateType(Integer dateType) { + if (dateType.equals(1)) + return ResultData.success(baseMapper.selectByDay()); + if (dateType.equals(2)) + return ResultData.success(baseMapper.selectByMonth()); + if (dateType.equals(3)) + return ResultData.success(baseMapper.selectByYear()); + return null; + } + + @Override + public Integer deleteDistinct() { + return baseMapper.deleteDistinct(); + } + } -- Gitblit v1.7.1