Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
notes2.0
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zjm
notes2.0
Commits
5b6209a2
提交
5b6209a2
authored
3月 19, 2020
作者:
zjm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改job的bug
上级
0c5bdffe
流水线
#90
已取消 于阶段
变更
7
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
43 行增加
和
24 行删除
+43
-24
WorkController.java
...com/zjty/tynotes/job/basic/controller/WorkController.java
+11
-7
WorkService.java
.../java/com/zjty/tynotes/job/basic/service/WorkService.java
+8
-0
WorkServiceImpl.java
.../zjty/tynotes/job/basic/service/impl/WorkServiceImpl.java
+8
-3
BusinessTreeManagementImpl.java
...s/job/status/service/impl/BusinessTreeManagementImpl.java
+4
-3
MyUserDetailsServiceImpl.java
...com/zjty/tynotes/pas/config/MyUserDetailsServiceImpl.java
+1
-0
UnionApplication.java
...rc/main/java/com/zjty/tynotes/union/UnionApplication.java
+10
-10
application-simc.properties
notes-union/src/main/resources/application-simc.properties
+1
-1
没有找到文件。
notes-job/src/main/java/com/zjty/tynotes/job/basic/controller/WorkController.java
浏览文件 @
5b6209a2
...
@@ -134,21 +134,25 @@ public class WorkController {
...
@@ -134,21 +134,25 @@ public class WorkController {
@ApiImplicitParam
(
name
=
"workId"
,
value
=
"任务id"
,
dataType
=
"String"
,
paramType
=
"query"
,
required
=
true
),
@ApiImplicitParam
(
name
=
"workId"
,
value
=
"任务id"
,
dataType
=
"String"
,
paramType
=
"query"
,
required
=
true
),
@ApiImplicitParam
(
name
=
"userId"
,
value
=
"人员id"
,
dataType
=
"String"
,
paramType
=
"query"
,
required
=
true
),
@ApiImplicitParam
(
name
=
"userId"
,
value
=
"人员id"
,
dataType
=
"String"
,
paramType
=
"query"
,
required
=
true
),
@ApiImplicitParam
(
name
=
"status"
,
value
=
"状态"
,
dataType
=
"String"
,
paramType
=
"query"
,
required
=
true
),
@ApiImplicitParam
(
name
=
"status"
,
value
=
"状态"
,
dataType
=
"String"
,
paramType
=
"query"
,
required
=
true
),
@ApiImplicitParam
(
name
=
"msg"
,
value
=
"消息"
,
dataType
=
"String"
,
paramType
=
"query"
,
required
=
true
)
@ApiImplicitParam
(
name
=
"msg"
,
value
=
"消息"
,
dataType
=
"String"
,
paramType
=
"query"
,
required
=
true
),
@ApiImplicitParam
(
name
=
"re"
,
value
=
"操作1是撤回2是不同"
,
dataType
=
"String"
,
paramType
=
"query"
,
required
=
true
)
})
})
public
ResponseEntity
<
JobResponse
>
alterTaskStatus
(
@RequestParam
String
workId
,
public
ResponseEntity
<
JobResponse
>
alterTaskStatus
(
@RequestParam
String
workId
,
@RequestParam
String
userId
,
@RequestParam
String
userId
,
@RequestParam
String
status
,
@RequestParam
String
status
,
@RequestParam
String
msg
)
{
@RequestParam
String
msg
,
@RequestParam
String
re
)
{
switch
(
status
)
{
switch
(
status
)
{
case
"ongoing"
:
case
"ongoing"
:
Work
work
=
workService
.
findById
(
workId
);
Work
work
=
workService
.
findById
(
workId
);
workService
.
alterTaskStatus
(
workId
,
status
,
userId
);
if
(
work
.
getExecutor
().
equals
(
userId
)){
if
(
"1"
.
equals
(
re
)){
//撤回
//撤回
businessTreeManagement
.
saveAction
(
userId
,
workId
,
Action
.
COMMIT_BACK_WORK
,
new
Date
(),
msg
);
businessTreeManagement
.
saveAction
(
userId
,
workId
,
Action
.
COMMIT_BACK_WORK
,
new
Date
(),
msg
);
}
else
{
workService
.
alterTaskStatus1
(
workId
,
status
,
userId
);
}
else
{
workService
.
alterTaskStatus
(
workId
,
status
,
userId
);
businessTreeManagement
.
saveAction
(
userId
,
workId
,
Action
.
BACK_WORK
,
new
Date
(),
msg
);
businessTreeManagement
.
saveAction
(
userId
,
workId
,
Action
.
BACK_WORK
,
new
Date
(),
msg
);
//审核不通过
//审核不通过
}
}
...
...
notes-job/src/main/java/com/zjty/tynotes/job/basic/service/WorkService.java
浏览文件 @
5b6209a2
...
@@ -89,6 +89,14 @@ public interface WorkService {
...
@@ -89,6 +89,14 @@ public interface WorkService {
*/
*/
void
alterTaskStatus
(
String
taskId
,
String
status
,
String
userId
);
void
alterTaskStatus
(
String
taskId
,
String
status
,
String
userId
);
/**
* 撤回任务的状态
* @param taskId 任务id
* @param status 要修改的状态
*/
void
alterTaskStatus1
(
String
taskId
,
String
status
,
String
userId
);
/**
/**
* 逻辑删除任务
* 逻辑删除任务
* @param taskId 任务id
* @param taskId 任务id
...
...
notes-job/src/main/java/com/zjty/tynotes/job/basic/service/impl/WorkServiceImpl.java
浏览文件 @
5b6209a2
...
@@ -143,11 +143,8 @@ public class WorkServiceImpl implements WorkService {
...
@@ -143,11 +143,8 @@ public class WorkServiceImpl implements WorkService {
ob
.
setStatus
(
status
);
ob
.
setStatus
(
status
);
Date
time
=
new
Date
();
Date
time
=
new
Date
();
if
(
WorkStatus
.
ONGOING
.
equals
(
status
)){
if
(
WorkStatus
.
ONGOING
.
equals
(
status
)){
if
(
ob
.
getPublisher
().
equals
(
userId
)){
ob
.
setAuditTime
(
time
);
ob
.
setAuditTime
(
time
);
workTimeService
.
saveWorkEndTime
(
ob
,
time
);
workTimeService
.
saveWorkEndTime
(
ob
,
time
);
}
}
else
if
(
WorkStatus
.
AUDIT
.
equals
(
status
)){
}
else
if
(
WorkStatus
.
AUDIT
.
equals
(
status
)){
ob
.
setSubmitTime
(
time
);
ob
.
setSubmitTime
(
time
);
...
@@ -178,6 +175,13 @@ public class WorkServiceImpl implements WorkService {
...
@@ -178,6 +175,13 @@ public class WorkServiceImpl implements WorkService {
workRepository
.
save
(
ob
);
workRepository
.
save
(
ob
);
}
}
@Override
public
void
alterTaskStatus1
(
String
taskId
,
String
status
,
String
userId
)
{
Work
ob
=
workRepository
.
findById
(
taskId
).
get
();
ob
.
setStatus
(
status
);
workRepository
.
save
(
ob
);
}
private
Float
practical
(
String
workId
){
private
Float
practical
(
String
workId
){
Float
count
=
0.0f
;
Float
count
=
0.0f
;
List
<
WorkTime
>
workTimes
=
workTimeService
.
selectWorkTime
(
workId
);
List
<
WorkTime
>
workTimes
=
workTimeService
.
selectWorkTime
(
workId
);
...
@@ -243,6 +247,7 @@ return 0.0f;
...
@@ -243,6 +247,7 @@ return 0.0f;
Work
ob
=
workRepository
.
findById
(
taskId
).
get
();
Work
ob
=
workRepository
.
findById
(
taskId
).
get
();
ob
.
setPWorkload
(
personalWorkload
);
ob
.
setPWorkload
(
personalWorkload
);
ob
.
setWorkloadCount
(
workloadCount
);
ob
.
setWorkloadCount
(
workloadCount
);
ob
.
setStatus
(
WorkStatus
.
DELETE
);
workRepository
.
save
(
ob
);
workRepository
.
save
(
ob
);
}
}
...
...
notes-job/src/main/java/com/zjty/tynotes/job/status/service/impl/BusinessTreeManagementImpl.java
浏览文件 @
5b6209a2
...
@@ -180,10 +180,11 @@ public class BusinessTreeManagementImpl implements BusinessTreeManagement {
...
@@ -180,10 +180,11 @@ public class BusinessTreeManagementImpl implements BusinessTreeManagement {
break
;
break
;
case
9
:
case
9
:
String
actionMsg
;
ScoreCoefficient
scoreCoefficient
=
scoreCoefficientRepository
.
findByWordId
(
work
.
getId
()).
get
(
0
);
if
(!
noteResource
.
getId
().
equals
(
work
.
getPublisher
())){
String
actionMsg
=
null
;
if
(
scoreCoefficient
.
getScore1
()!=
null
){
actionMsg
=
name
+
"对任务进行了自我评价"
;
actionMsg
=
name
+
"对任务进行了自我评价"
;
}
else
{
}
else
if
(
scoreCoefficient
.
getScore2
()!=
null
)
{
actionMsg
=
name
+
"对任务进行了发布者评价"
;
actionMsg
=
name
+
"对任务进行了发布者评价"
;
}
}
actionHistory
.
setActionMsg
(
actionMsg
);
actionHistory
.
setActionMsg
(
actionMsg
);
...
...
notes-pas/src/main/java/com/zjty/tynotes/pas/config/MyUserDetailsServiceImpl.java
浏览文件 @
5b6209a2
...
@@ -52,6 +52,7 @@ public class MyUserDetailsServiceImpl implements UserDetailsService {
...
@@ -52,6 +52,7 @@ public class MyUserDetailsServiceImpl implements UserDetailsService {
@Override
@Override
public
UserDetails
loadUserByUsername
(
String
username
)
throws
UsernameNotFoundException
{
public
UserDetails
loadUserByUsername
(
String
username
)
throws
UsernameNotFoundException
{
System
.
out
.
println
(
"userService验证:"
+
username
);
System
.
out
.
println
(
"userService验证:"
+
username
);
if
(
username
.
equals
(
"root"
)){
if
(
username
.
equals
(
"root"
)){
User
root
=
init
.
root
;
User
root
=
init
.
root
;
// root.setPassword("root");
// root.setPassword("root");
...
...
notes-union/src/main/java/com/zjty/tynotes/union/UnionApplication.java
浏览文件 @
5b6209a2
...
@@ -27,7 +27,7 @@ public class UnionApplication {
...
@@ -27,7 +27,7 @@ public class UnionApplication {
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
UnionApplication
.
class
,
args
);
SpringApplication
.
run
(
UnionApplication
.
class
,
args
);
}
}
// 开始支持http
//
//
开始支持http
@Bean
@Bean
public
ServletWebServerFactory
servletContainer
()
{
public
ServletWebServerFactory
servletContainer
()
{
TomcatServletWebServerFactory
tomcat
=
new
TomcatServletWebServerFactory
();
TomcatServletWebServerFactory
tomcat
=
new
TomcatServletWebServerFactory
();
...
@@ -35,14 +35,14 @@ public class UnionApplication {
...
@@ -35,14 +35,14 @@ public class UnionApplication {
return
tomcat
;
return
tomcat
;
}
}
private
Connector
createHTTPConnector
()
{
private
Connector
createHTTPConnector
()
{
Connector
connector
=
new
Connector
(
"org.apache.coyote.http11.Http11NioProtocol"
);
Connector
connector
=
new
Connector
(
"org.apache.coyote.http11.Http11NioProtocol"
);
//同时启用http(8080)、https(8443)两个端口
//同时启用http(8080)、https(8443)两个端口
connector
.
setScheme
(
"http"
);
connector
.
setScheme
(
"http"
);
connector
.
setSecure
(
false
);
connector
.
setSecure
(
false
);
connector
.
setPort
(
8084
);
connector
.
setPort
(
8084
);
connector
.
setRedirectPort
(
8289
);
connector
.
setRedirectPort
(
8289
);
return
connector
;
return
connector
;
}
}
}
}
notes-union/src/main/resources/application-simc.properties
浏览文件 @
5b6209a2
...
@@ -3,7 +3,7 @@ spring.application.name=workbook
...
@@ -3,7 +3,7 @@ spring.application.name=workbook
# https端口号.
# https端口号.
server.port
=
8289
server.port
=
8289
#
#
证书的路径.
# 证书的路径.
server.ssl.key-store
=
classpath:2586377_workbook.zjtys.com.cn.pfx
server.ssl.key-store
=
classpath:2586377_workbook.zjtys.com.cn.pfx
# 证书密码,请修改为您自己证书的密码.
# 证书密码,请修改为您自己证书的密码.
server.ssl.key-store-password
=
bMEPW9BG
server.ssl.key-store-password
=
bMEPW9BG
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论