From e8f0b3422d307c686b3a81269f9e9e4fb34a846e Mon Sep 17 00:00:00 2001
From: wjli <591616088@qq.com>
Date: 星期五, 12 四月 2024 10:49:46 +0800
Subject: [PATCH] 指纹登陆返回客户端加密信息
---
xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/serviceimpl/ICustomerServiceImpl.java | 31 ++++++++++++++++++++++++++++++-
1 files changed, 30 insertions(+), 1 deletions(-)
diff --git a/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/serviceimpl/ICustomerServiceImpl.java b/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/serviceimpl/ICustomerServiceImpl.java
index cd24a8e..9371ced 100644
--- a/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/serviceimpl/ICustomerServiceImpl.java
+++ b/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/serviceimpl/ICustomerServiceImpl.java
@@ -1,15 +1,16 @@
package cn.exrick.xboot.your.serviceimpl;
+import cn.exrick.xboot.your.vo.Month;
import cn.exrick.xboot.your.mapper.CustomerMapper;
import cn.exrick.xboot.your.entity.Customer;
import cn.exrick.xboot.your.service.ICustomerService;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
-import java.util.ArrayList;
import java.util.List;
/**
@@ -23,4 +24,32 @@
@Autowired
private CustomerMapper customerMapper;
+
+ @Override
+ public int countOpenId() {
+ QueryWrapper<Customer> wrapper = new QueryWrapper<>();
+ wrapper.isNotNull("open_id");
+ int i = customerMapper.selectCount(wrapper);
+ int i2 = customerMapper.count();
+ if(i2==0){
+ return 0;
+ }else{
+ return (i*100)/i2;
+ }
+ }
+
+ @Override
+ public Month getCustomerCount(Integer year) {
+ return customerMapper.getCustomerCount(year);
+ }
+
+ @Override
+ public int sumLogin() {
+ return customerMapper.sumLogin();
+ }
+
+ @Override
+ public List<Customer> getYiHuDuoZheng() {
+ return customerMapper.getYiHuDuoZheng();
+ }
}
\ No newline at end of file
--
Gitblit v1.9.1