Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
notes2.0
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zjm
notes2.0
Commits
28ebee5a
提交
28ebee5a
authored
3月 19, 2020
作者:
gongwenjie
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of git.yfzx.zjtys.com.cn:zjm/notes2.0
上级
c8c1b752
02909cfd
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
26 行增加
和
12 行删除
+26
-12
WorkServiceImpl.java
.../zjty/tynotes/job/basic/service/impl/WorkServiceImpl.java
+5
-3
WorkingTime.java
...in/java/com/zjty/tynotes/job/basic/utils/WorkingTime.java
+14
-1
BusinessTreeManagementImpl.java
...s/job/status/service/impl/BusinessTreeManagementImpl.java
+3
-4
application-prod.properties
notes-union/src/main/resources/application-prod.properties
+1
-1
application-simc.properties
notes-union/src/main/resources/application-simc.properties
+2
-2
application.properties
notes-union/src/main/resources/application.properties
+1
-1
没有找到文件。
notes-job/src/main/java/com/zjty/tynotes/job/basic/service/impl/WorkServiceImpl.java
浏览文件 @
28ebee5a
...
...
@@ -148,13 +148,11 @@ public class WorkServiceImpl implements WorkService {
workTimeService
.
saveWorkEndTime
(
ob
,
time
);
}
}
else
if
(
WorkStatus
.
AUDIT
.
equals
(
status
)){
ob
.
setSubmitTime
(
time
);
workTimeService
.
saveWorkStartTime
(
ob
,
time
);
}
else
if
(
WorkStatus
.
REVIEW
.
equals
(
status
))
{
//计算分数
Float
expect
=
score
(
ob
.
getStateTime
(),
ob
.
getCompleteTime
());
Float
practical
=
practical
(
taskId
);
if
(
expect
<
practical
){
...
...
@@ -168,6 +166,10 @@ public class WorkServiceImpl implements WorkService {
ob
.
setWorkCoefficient
(
advance
(
1
,
1.0f
,
times
));
}
}
else
if
(
WorkStatus
.
REVIEW
.
equals
(
status
))
{
//
ob
.
setAuditTime
(
time
);
}
else
if
(
status
.
equals
(
WorkStatus
.
FINISHED
)){
pWorkload
(
taskId
);
ob
.
setEndTime
(
time
);
...
...
notes-job/src/main/java/com/zjty/tynotes/job/basic/utils/WorkingTime.java
浏览文件 @
28ebee5a
...
...
@@ -63,7 +63,20 @@ public class WorkingTime {
System
.
out
.
println
(
"endTime.getHours()---"
+
endTime
.
getHours
()
+
"------flag.getMinutes():"
+
flag
.
getMinutes
());
float
endHours
=
endTime
.
getHours
()
+
(
float
)
endTime
.
getMinutes
()/
60
;
float
startHours
=
flag
.
getHours
()
+
(
float
)
flag
.
getMinutes
()/
60
;
//时间在大于上午上班时间
if
(
endHours
<=
morningBegin
){
if
(
startHours
<
morningBegin
)
{
leaveDays
=
leaveDays
-
operHours
+
operHours
;
}
else
if
(
startHours
>=
morningBegin
&&
startHours
<=
morningEnd
)
{
leaveDays
=
leaveDays
+
eveningWork
+
morningEnd
-
startHours
-
operHours
;
}
else
if
(
startHours
>
morningEnd
&&
startHours
<=
eveningBegin
)
{
leaveDays
=
leaveDays
+
eveningWork
-
operHours
;
}
else
if
(
startHours
>
eveningBegin
&&
startHours
<
eveningEnd
)
{
leaveDays
=
leaveDays
-
operHours
+
eveningEnd
-
startHours
;
}
else
if
(
startHours
>=
eveningEnd
){
leaveDays
=
leaveDays
-
operHours
;
}
}
//时间在上午上班时间
if
(
endHours
>
morningBegin
&&
endHours
<=
morningEnd
)
{
//结束时间在工作时间内 判断开始时间是否在上班时间之后
...
...
notes-job/src/main/java/com/zjty/tynotes/job/status/service/impl/BusinessTreeManagementImpl.java
浏览文件 @
28ebee5a
...
...
@@ -180,11 +180,10 @@ public class BusinessTreeManagementImpl implements BusinessTreeManagement {
break
;
case
9
:
ScoreCoefficient
scoreCoefficient
=
scoreCoefficientRepository
.
findByWordId
(
noteResource
.
getTaskId
()).
get
(
0
);
String
actionMsg
=
""
;
if
(
scoreCoefficient
.
getScore1
()!=
null
){
String
actionMsg
;
if
(!
noteResource
.
getId
().
equals
(
work
.
getPublisher
())){
actionMsg
=
name
+
"对任务进行了自我评价"
;
}
else
if
(
scoreCoefficient
.
getScore2
()!=
null
)
{
}
else
{
actionMsg
=
name
+
"对任务进行了发布者评价"
;
}
actionHistory
.
setActionMsg
(
actionMsg
);
...
...
notes-union/src/main/resources/application-prod.properties
浏览文件 @
28ebee5a
...
...
@@ -13,7 +13,7 @@ server.ssl.keyStoreType=PKCS12
server.ssl.keyAlias
=
alias
#mongodb configuration
spring.data.mongodb.uri
=
mongodb://localhost:27017/test
2
spring.data.mongodb.uri
=
mongodb://localhost:27017/test
3
# servlet configuration
spring.servlet.multipart.max-file-size
=
100MB
spring.servlet.multipart.max-request-size
=
1000MB
...
...
notes-union/src/main/resources/application-simc.properties
浏览文件 @
28ebee5a
...
...
@@ -3,7 +3,7 @@ spring.application.name=workbook
# https端口号.
server.port
=
8289
# 证书的路径.
#
#
证书的路径.
server.ssl.key-store
=
classpath:2586377_workbook.zjtys.com.cn.pfx
# 证书密码,请修改为您自己证书的密码.
server.ssl.key-store-password
=
bMEPW9BG
...
...
@@ -13,7 +13,7 @@ server.ssl.keyStoreType=PKCS12
server.ssl.keyAlias
=
alias
#mongodb configuration
spring.data.mongodb.uri
=
mongodb://localhost:27017/test
2
spring.data.mongodb.uri
=
mongodb://localhost:27017/test
3
# servlet configuration
spring.servlet.multipart.max-file-size
=
100MB
spring.servlet.multipart.max-request-size
=
1000MB
...
...
notes-union/src/main/resources/application.properties
浏览文件 @
28ebee5a
...
...
@@ -4,7 +4,7 @@ spring.application.name=workbook
## https端口号.
server.port
=
8289
## 证书的路径.
##
#
证书的路径.
server.ssl.key-store
=
classpath:2586377_workbook.zjtys.com.cn.pfx
# 证书密码,请修改为您自己证书的密码.
server.ssl.key-store-password
=
bMEPW9BG
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论