Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ioc_sixiang_license
Project
Project
Details
Activity
Releases
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
zengtianlai3
ioc_sixiang_license
Commits
bce0537f
Commit
bce0537f
authored
Jun 16, 2022
by
zengtianlai3
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'm33' into 'master'
修改设备数量显示出错问题 See merge request
!38
parents
f159dae6
9aaff620
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
UserVo.java
...se/src/main/java/iot/sixiang/license/model/vo/UserVo.java
+2
-2
UserMapper.xml
license/src/main/resources/mapper/UserMapper.xml
+3
-1
No files found.
license/src/main/java/iot/sixiang/license/model/vo/UserVo.java
View file @
bce0537f
...
...
@@ -10,6 +10,6 @@ import lombok.Data;
@Data
public
class
UserVo
extends
User
{
@ApiModelProperty
(
"
应用
数量"
)
public
int
app
Count
;
@ApiModelProperty
(
"
设备
数量"
)
public
int
device
Count
;
}
license/src/main/resources/mapper/UserMapper.xml
View file @
bce0537f
...
...
@@ -15,7 +15,9 @@
</update>
<select
id=
"getUserList"
resultType=
"iot.sixiang.license.model.vo.UserVo"
>
SELECT user.user_id, user_name, password, company, user.create_time, user.update_time,app_id, COUNT(app_name) AS appCount
SELECT user.user_id, user_name, PASSWORD, company, user.create_time,
user.update_time,apply.app_id,
(SELECT COUNT(sn) FROM device WHERE apply.`app_id` = device.`app_id`) deviceCount
FROM USER LEFT JOIN apply ON user.user_id = apply.user_id
where 1=1
<if
test=
"null != userName and '' != userName"
>
...
...
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