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
df89ca64
Commit
df89ca64
authored
Jul 27, 2020
by
ilal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
508e6fc4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
src/main/java/cn/timer/api/controller/kqgl/atttimer/AttendanceTaskTiming.java
+1
-1
src/main/java/cn/timer/api/controller/qyzx/Auth.java
+11
-2
No files found.
src/main/java/cn/timer/api/controller/kqgl/atttimer/AttendanceTaskTiming.java
View file @
df89ca64
...
@@ -119,7 +119,7 @@ public class AttendanceTaskTiming{
...
@@ -119,7 +119,7 @@ public class AttendanceTaskTiming{
// @Scheduled(cron = "0 37 18 * * ?") // 测试:5秒执行一次 0 0 19 * * ?
// @Scheduled(cron = "0 37 18 * * ?") // 测试:5秒执行一次 0 0 19 * * ?
// @Scheduled(cron = "0 */5 * * * ?")
// @Scheduled(cron = "0 */5 * * * ?")
// @Scheduled(cron = "0 3
0 19 * * ?")
@Scheduled
(
cron
=
"0
0 19 * * ?"
)
public
void
AttendanceTask
()
throws
ParseException
{
public
void
AttendanceTask
()
throws
ParseException
{
// boolean implement = false;
// boolean implement = false;
...
...
src/main/java/cn/timer/api/controller/qyzx/Auth.java
View file @
df89ca64
...
@@ -62,6 +62,12 @@ public class Auth {
...
@@ -62,6 +62,12 @@ public class Auth {
.
eq
(
QyzxEmpEntAsso:
:
getEmpNum
,
empNum
)
.
eq
(
QyzxEmpEntAsso:
:
getEmpNum
,
empNum
)
.
eq
(
QyzxEmpEntAsso:
:
getUserType
,
SysRoleType
.
U_TYPE_ADMIN
.
getType
()));
.
eq
(
QyzxEmpEntAsso:
:
getUserType
,
SysRoleType
.
U_TYPE_ADMIN
.
getType
()));
}
}
private
QyzxEmpEntAsso
selectMain_
(
Integer
orgCode
,
Integer
empNum
)
{
return
QyzxEmpEntAsso
.
builder
().
build
()
.
selectOne
(
new
LambdaQueryWrapper
<
QyzxEmpEntAsso
>().
eq
(
QyzxEmpEntAsso:
:
getOrgCode
,
orgCode
)
.
eq
(
QyzxEmpEntAsso:
:
getEmpNum
,
empNum
));
}
@PostMapping
(
value
=
"/addChildAccount"
)
@PostMapping
(
value
=
"/addChildAccount"
)
@ApiOperation
(
value
=
"新增子账号"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"新增子账号"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
...
@@ -69,7 +75,9 @@ public class Auth {
...
@@ -69,7 +75,9 @@ public class Auth {
public
Result
<
Void
>
addChildAccount
(
@CurrentUser
UserBean
userBean
,
@RequestParam
Integer
childEmpNum
)
{
public
Result
<
Void
>
addChildAccount
(
@CurrentUser
UserBean
userBean
,
@RequestParam
Integer
childEmpNum
)
{
Integer
orgCode
=
userBean
.
getOrgCode
();
Integer
orgCode
=
userBean
.
getOrgCode
();
Integer
empNum
=
userBean
.
getEmpNum
();
Integer
empNum
=
userBean
.
getEmpNum
();
QyzxEmpEntAsso
qyzxEmpEntAsso
=
selectMain
(
orgCode
,
empNum
);
// QyzxEmpEntAsso qyzxEmpEntAsso = selectMain(orgCode, empNum);
QyzxEmpEntAsso
qyzxEmpEntAsso
=
selectMain_
(
orgCode
,
childEmpNum
);
if
(
qyzxEmpEntAsso
!=
null
)
{
if
(
qyzxEmpEntAsso
!=
null
)
{
if
(
qyzxEmpEntAsso
.
getUserType
()
==
SysRoleType
.
U_TYPE_ADMIN
.
getType
()
if
(
qyzxEmpEntAsso
.
getUserType
()
==
SysRoleType
.
U_TYPE_ADMIN
.
getType
()
||
qyzxEmpEntAsso
.
getUserType
()
==
SysRoleType
.
U_TYPE_C_ADMIN
.
getType
())
||
qyzxEmpEntAsso
.
getUserType
()
==
SysRoleType
.
U_TYPE_C_ADMIN
.
getType
())
...
@@ -93,7 +101,8 @@ public class Auth {
...
@@ -93,7 +101,8 @@ public class Auth {
public
Result
<
Void
>
removeChildAccount
(
@CurrentUser
UserBean
userBean
,
@RequestParam
Integer
childEmpNum
)
{
public
Result
<
Void
>
removeChildAccount
(
@CurrentUser
UserBean
userBean
,
@RequestParam
Integer
childEmpNum
)
{
Integer
orgCode
=
userBean
.
getOrgCode
();
Integer
orgCode
=
userBean
.
getOrgCode
();
Integer
empNum
=
userBean
.
getEmpNum
();
Integer
empNum
=
userBean
.
getEmpNum
();
QyzxEmpEntAsso
qyzxEmpEntAsso
=
selectMain
(
orgCode
,
empNum
);
// QyzxEmpEntAsso qyzxEmpEntAsso = selectMain(orgCode, empNum);
QyzxEmpEntAsso
qyzxEmpEntAsso
=
selectMain_
(
orgCode
,
childEmpNum
);
if
(
qyzxEmpEntAsso
!=
null
)
{
if
(
qyzxEmpEntAsso
!=
null
)
{
if
(
qyzxEmpEntAsso
.
getUserType
()
==
SysRoleType
.
U_TYPE_ADMIN
.
getType
())
if
(
qyzxEmpEntAsso
.
getUserType
()
==
SysRoleType
.
U_TYPE_ADMIN
.
getType
())
return
ResultUtil
.
error
(
"主账号暂时不能删除"
);
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