Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
0ec85b2a
Commit
0ec85b2a
authored
Aug 06, 2020
by
ilal
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
fa3bb8e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
src/main/java/cn/timer/api/controller/LoginController.java
+17
-0
No files found.
src/main/java/cn/timer/api/controller/LoginController.java
View file @
0ec85b2a
...
...
@@ -1060,4 +1060,21 @@ public class LoginController {
}
@GetMapping
(
value
=
"/switch/{orgcodeid}"
)
@ApiOperation
(
value
=
"切换企业"
,
httpMethod
=
"GET"
,
notes
=
"是否有账号"
)
public
Result
<
QyzxEmpLogin
>
Switching_Enterprises
(
@CurrentUser
UserBean
userBean
,
@PathVariable
(
"orgcodeid"
)
Integer
orgcodeid
,
HttpServletRequest
request
)
{
//
QyzxEmpLogin
.
builder
().
orgId
(
orgcodeid
).
build
().
update
(
new
QueryWrapper
<
QyzxEmpLogin
>().
lambda
().
eq
(
QyzxEmpLogin:
:
getPhone
,
userBean
.
getQyzxEmpLogin
().
getPhone
()));
QyzxEmpLogin
qyzxEmpLogin1
=
new
LambdaQueryChainWrapper
<
QyzxEmpLogin
>(
qyzxEmpLoginMapper
)
.
eq
(
QyzxEmpLogin:
:
getPhone
,
userBean
.
getQyzxEmpLogin
().
getPhone
()).
one
();
if
(
qyzxEmpLogin1
!=
null
)
{
return
loginhan
(
qyzxEmpLogin1
,
request
);
}
else
{
return
ResultUtil
.
error
(
"切换失败!!"
);
}
}
}
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