Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
data-server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
licc
data-server
Commits
254eed67
Commit
254eed67
authored
Feb 23, 2021
by
licc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f09d7c0b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
UsersMapper.xml
wisenergy-mapper/src/main/resources/mapper/UsersMapper.xml
+2
-2
UserService.java
.../main/java/cn/wisenergy/service/app/impl/UserService.java
+1
-2
UserSysController.java
.../main/java/cn/wisenergy/controller/UserSysController.java
+1
-2
No files found.
wisenergy-mapper/src/main/resources/mapper/UsersMapper.xml
View file @
254eed67
...
...
@@ -142,12 +142,12 @@
</select>
<!--查询全部-->
<select
id=
"findAll"
resultType=
"User"
>
<select
id=
"findAll"
resultType=
"
cn.wisenergy.model.app.
User"
>
select * from User
</select>
<!--查询用户-->
<select
id=
"findByName"
resultType=
"User"
>
<select
id=
"findByName"
resultType=
"
cn.wisenergy.model.app.
User"
>
select * from User where user_id = #{userId}
</select>
...
...
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/UserService.java
View file @
254eed67
package
cn
.
wisenergy
.
service
.
app
.
impl
;
import
cn.wisenergy.common.utils.R
;
import
cn.wisenergy.mapper.UsersMapper
;
import
cn.wisenergy.model.app.User
;
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
java.util.List
;
/**
* @ Description: 用户接口实现
...
...
wisenergy-web-admin/src/main/java/cn/wisenergy/controller/UserController.java
→
wisenergy-web-admin/src/main/java/cn/wisenergy/controller/User
Sys
Controller.java
View file @
254eed67
...
...
@@ -10,10 +10,9 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
/**
* Created by m1991 on 2021/2/23 15:45
*/
@EnableSwagger2
@RestController
@RequestMapping
(
"/sys"
)
public
class
UserController
{
public
class
User
Sys
Controller
{
@Autowired
UserService
userService
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment