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
6ac67a3d
Commit
6ac67a3d
authored
Feb 02, 2023
by
ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改报警bug
parent
fb517438
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
UserController.java
...n/java/iot/sixiang/license/controller/UserController.java
+9
-4
UserMapper.xml
license/src/main/resources/mapper/UserMapper.xml
+2
-2
No files found.
license/src/main/java/iot/sixiang/license/controller/UserController.java
View file @
6ac67a3d
...
@@ -13,23 +13,23 @@ import io.swagger.annotations.ApiImplicitParam;
...
@@ -13,23 +13,23 @@ import io.swagger.annotations.ApiImplicitParam;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
iot.sixiang.license.entity.Permission
;
import
iot.sixiang.license.entity.Permission
;
import
iot.sixiang.license.entity.Report
;
import
iot.sixiang.license.entity.User
;
import
iot.sixiang.license.entity.User
;
import
iot.sixiang.license.entity.UserPermission
;
import
iot.sixiang.license.entity.UserPermission
;
import
iot.sixiang.license.handler.IotLicenseException
;
import
iot.sixiang.license.handler.IotLicenseException
;
import
iot.sixiang.license.jwt.UserUtils
;
import
iot.sixiang.license.jwt.UserUtils
;
import
iot.sixiang.license.log.BusinessType
;
import
iot.sixiang.license.log.BusinessType
;
import
iot.sixiang.license.log.MyLog
;
import
iot.sixiang.license.log.MyLog
;
import
iot.sixiang.license.mapper.UserMapper
;
import
iot.sixiang.license.model.BaseResult
;
import
iot.sixiang.license.model.BaseResult
;
import
iot.sixiang.license.model.PageInfoModel
;
import
iot.sixiang.license.model.PageInfoModel
;
import
iot.sixiang.license.model.PageResult
;
import
iot.sixiang.license.model.PageResult
;
import
iot.sixiang.license.model.ResResult
;
import
iot.sixiang.license.model.ResResult
;
import
iot.sixiang.license.model.dto.AssignUserPermissionDTO
;
import
iot.sixiang.license.model.dto.AssignUserPermissionDTO
;
import
iot.sixiang.license.model.dto.UpdateNotifyDTO
;
import
iot.sixiang.license.model.dto.UpdateNotifyDTO
;
import
iot.sixiang.license.model.vo.UserDeleteVO
;
import
iot.sixiang.license.model.vo.*
;
import
iot.sixiang.license.model.vo.UserDetailVO
;
import
iot.sixiang.license.model.vo.UserUpdatePwdVo
;
import
iot.sixiang.license.model.vo.UserVo
;
import
iot.sixiang.license.service.PermissionService
;
import
iot.sixiang.license.service.PermissionService
;
import
iot.sixiang.license.service.ReportService
;
import
iot.sixiang.license.service.UserPermissionService
;
import
iot.sixiang.license.service.UserPermissionService
;
import
iot.sixiang.license.service.UserService
;
import
iot.sixiang.license.service.UserService
;
import
iot.sixiang.license.util.CommonUtil
;
import
iot.sixiang.license.util.CommonUtil
;
...
@@ -45,6 +45,7 @@ import org.springframework.web.bind.annotation.*;
...
@@ -45,6 +45,7 @@ import org.springframework.web.bind.annotation.*;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -68,6 +69,10 @@ public class UserController {
...
@@ -68,6 +69,10 @@ public class UserController {
private
PermissionService
permissionService
;
private
PermissionService
permissionService
;
@Resource
@Resource
private
UserPermissionService
userPermissionService
;
private
UserPermissionService
userPermissionService
;
@Resource
ReportService
reportService
;
@Resource
UserMapper
userMapper
;
@Value
(
"${rsa.private_key}"
)
@Value
(
"${rsa.private_key}"
)
private
String
PRIVATE_KRY
;
private
String
PRIVATE_KRY
;
...
...
license/src/main/resources/mapper/UserMapper.xml
View file @
6ac67a3d
...
@@ -53,14 +53,14 @@
...
@@ -53,14 +53,14 @@
</select>
</select>
<select
id=
"getUserBySn"
resultType=
"iot.sixiang.license.model.vo.UserInfoVO"
>
<select
id=
"getUserBySn"
resultType=
"iot.sixiang.license.model.vo.UserInfoVO"
>
SELECT `user`.user_name, `user`.company FROM user
SELECT `user`.user_name, `user`.company
, `user`.notify
FROM user
INNER JOIN apply on user.user_id = apply.user_id
INNER JOIN apply on user.user_id = apply.user_id
INNER JOIN device on device.app_id = apply.app_id
INNER JOIN device on device.app_id = apply.app_id
WHERE device.sn = #{sn}
WHERE device.sn = #{sn}
</select>
</select>
<select
id=
"getRootAccount"
resultType=
"iot.sixiang.license.model.vo.UserInfoVO"
>
<select
id=
"getRootAccount"
resultType=
"iot.sixiang.license.model.vo.UserInfoVO"
>
SELECT user_name, company FROM `user` WHERE parent IS NULL AND `level` = 1 LIMIT 1
SELECT user_name, company
, notify
FROM `user` WHERE parent IS NULL AND `level` = 1 LIMIT 1
</select>
</select>
</mapper>
</mapper>
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