Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
notes2.0
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zjm
notes2.0
Commits
249d8cb5
提交
249d8cb5
authored
3月 31, 2020
作者:
gongwenjie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
考勤
上级
c6b09091
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
20 行增加
和
2 行删除
+20
-2
ApprovalInformationServiceImpl.java
...tendance/service/impl/ApprovalInformationServiceImpl.java
+18
-0
SecurityConfig.java
...main/java/com/zjty/tynotes/pas/config/SecurityConfig.java
+1
-1
UserController.java
.../java/com/zjty/tynotes/pas/controller/UserController.java
+1
-1
没有找到文件。
notes-attendance/src/main/java/com/zjty/tynotes/attendance/service/impl/ApprovalInformationServiceImpl.java
浏览文件 @
249d8cb5
...
@@ -192,6 +192,24 @@ public class ApprovalInformationServiceImpl implements ApprovalInformationServic
...
@@ -192,6 +192,24 @@ public class ApprovalInformationServiceImpl implements ApprovalInformationServic
* 计算调休时长
* 计算调休时长
*/
*/
private
Long
computeTime
(
Date
startTime
,
Date
endTime
){
private
Long
computeTime
(
Date
startTime
,
Date
endTime
){
Config
config
=
configDao
.
findAll
().
get
(
0
);
String
workTime
=
config
.
getWorkTime
();
//上班时间
String
afterWorkTime
=
config
.
getAfterWorkTime
();
//下班时间
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
SimpleDateFormat
sdf2
=
new
SimpleDateFormat
(
"yyyy-MM-dd 00:00:00"
);
String
format
=
sdf2
.
format
(
startTime
);
try
{
Date
parse
=
sdf2
.
parse
(
format
);
List
<
Day
>
days
=
dayDao
.
findAllByStatusAndDateBetween
(
"0"
,
parse
,
endTime
);
long
hours
=
0
;
if
(
days
!=
null
){
for
(
Day
day
:
days
)
{
}
}
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
}
// SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
// SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
// Config config = configDao.findAll().get(0);
// Config config = configDao.findAll().get(0);
// SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy-MM-dd "+config.getWorkTime());
// SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy-MM-dd "+config.getWorkTime());
...
...
notes-pas/src/main/java/com/zjty/tynotes/pas/config/SecurityConfig.java
浏览文件 @
249d8cb5
...
@@ -56,7 +56,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
...
@@ -56,7 +56,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
httpSecurity
httpSecurity
.
cors
().
and
()
.
cors
().
and
()
.
authorizeRequests
()
.
authorizeRequests
()
.
antMatchers
(
"/
tes
t/**"
).
permitAll
()
.
antMatchers
(
"/
pas/user/judgeParen
t/**"
).
permitAll
()
.
antMatchers
(
"/pas/user/addGuanLian"
).
permitAll
()
.
antMatchers
(
"/pas/user/addGuanLian"
).
permitAll
()
.
antMatchers
(
HttpMethod
.
GET
,
"/pas/user"
).
permitAll
()
.
antMatchers
(
HttpMethod
.
GET
,
"/pas/user"
).
permitAll
()
.
antMatchers
(
"/pas/user/encryPas"
).
permitAll
()
.
antMatchers
(
"/pas/user/encryPas"
).
permitAll
()
...
...
notes-pas/src/main/java/com/zjty/tynotes/pas/controller/UserController.java
浏览文件 @
249d8cb5
...
@@ -137,7 +137,7 @@ public class UserController {
...
@@ -137,7 +137,7 @@ public class UserController {
return
ok
(
"重置密码失败"
);
return
ok
(
"重置密码失败"
);
}
}
@ApiOperation
(
value
=
"查询该用户是否是某用户的上级"
)
@ApiOperation
(
value
=
"查询该用户是否是某用户的上级
,并且拥有修改任务权限
"
)
@GetMapping
(
"/judgeParent/{id}/{userId}"
)
@GetMapping
(
"/judgeParent/{id}/{userId}"
)
public
ResponseEntity
judgeParent
(
@PathVariable
String
id
,
@PathVariable
String
userId
)
{
public
ResponseEntity
judgeParent
(
@PathVariable
String
id
,
@PathVariable
String
userId
)
{
boolean
flag
=
iUserService
.
judgeParent
(
id
,
userId
);
boolean
flag
=
iUserService
.
judgeParent
(
id
,
userId
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论