From a60d5d839e6f686990a92801b470a9aeaad31b4a Mon Sep 17 00:00:00 2001
From: wuyouming666 <2265557248@qq.com>
Date: 星期三, 06 九月 2023 08:26:45 +0800
Subject: [PATCH] Merge branch 'master' of ssh://10.153.19.150:29418/CanadaMes
---
springboot-vue3/src/main/java/com/example/springboot/service/UserService.java | 28 +++++++++++++---------------
1 files changed, 13 insertions(+), 15 deletions(-)
diff --git a/springboot-vue3/src/main/java/com/example/springboot/service/UserService.java b/springboot-vue3/src/main/java/com/example/springboot/service/UserService.java
index 9185ca8..84cba24 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/service/UserService.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/service/UserService.java
@@ -1,21 +1,19 @@
package com.example.springboot.service;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.IService;
import com.example.springboot.entity.User;
-import com.example.springboot.mapper.UserMapper;
+import com.example.springboot.entity.vo.UserVo;
-@Service
-public class UserService {
- @Autowired
- private UserMapper userMapper;
+import java.util.List;
- public void Save(User user) {
- if (user.getId() == null) {
- userMapper.insert(user);
- } else {
- userMapper.update(user);
- }
- }
+public interface UserService extends IService<User> {
+ IPage<User> selectPage(UserVo userVO);
+
+ User selectByUsername(String username);
+
+ Integer countByUsername(String username);
+
+
+ List<Long> selectChild(Long id, Boolean bool);
}
--
Gitblit v1.8.0