Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
b7b360a8
提交
b7b360a8
authored
12月 06, 2021
作者:
zjm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(培训模块): 修改终止培训阅知时间有问题
修改终止培训阅知时间有问题
上级
5dfd28df
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
6 行增加
和
3 行删除
+6
-3
TrainJobController.java
.../tykj/dev/device/train/controller/TrainJobController.java
+6
-3
没有找到文件。
dev-train/src/main/java/com/tykj/dev/device/train/controller/TrainJobController.java
浏览文件 @
b7b360a8
...
@@ -47,6 +47,7 @@ import org.springframework.transaction.annotation.Transactional;
...
@@ -47,6 +47,7 @@ import org.springframework.transaction.annotation.Transactional;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
springfox.documentation.annotations.ApiIgnore
;
import
springfox.documentation.annotations.ApiIgnore
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
@@ -253,10 +254,11 @@ public class TrainJobController {
...
@@ -253,10 +254,11 @@ public class TrainJobController {
}
}
private
String
messageToString
(
TrainTheme
trainTheme
){
private
String
messageToString
(
TrainTheme
trainTheme
){
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
if
(
trainTheme
.
getTrainType
()==
0
)
{
if
(
trainTheme
.
getTrainType
()==
0
)
{
return
"培训名称:"
+
trainTheme
.
getName
()
+
",时间:"
+
trainTheme
.
getStartTime
()
;
return
"培训名称:"
+
trainTheme
.
getName
()
+
",时间:"
+
formatter
.
format
(
trainTheme
.
getStartTime
())
;
}
else
{
}
else
{
return
"培训名称:"
+
trainTheme
.
getName
()
+
",时间:"
+
trainTheme
.
getStartTime
(
)
+
return
"培训名称:"
+
trainTheme
.
getName
()
+
",时间:"
+
formatter
.
format
(
trainTheme
.
getStartTime
()
)
+
",培训地点:"
+
trainTheme
.
getTrainLocation
();
",培训地点:"
+
trainTheme
.
getTrainLocation
();
}
}
}
}
...
@@ -654,7 +656,8 @@ public class TrainJobController {
...
@@ -654,7 +656,8 @@ public class TrainJobController {
@GetMapping
(
"/suspendTrain/{taskId}/{trainId}"
)
@GetMapping
(
"/suspendTrain/{taskId}/{trainId}"
)
public
ResponseEntity
suspendTrain
(
@ApiIgnore
@AuthenticationPrincipal
SecurityUser
securityUser
,
@PathVariable
Integer
taskId
,
@PathVariable
Integer
trainId
)
{
public
ResponseEntity
suspendTrain
(
@ApiIgnore
@AuthenticationPrincipal
SecurityUser
securityUser
,
@PathVariable
Integer
taskId
,
@PathVariable
Integer
trainId
)
{
TrainTheme
trainTheme
=
trainThemeService
.
findById
(
trainId
);
TrainTheme
trainTheme
=
trainThemeService
.
findById
(
trainId
);
trainTheme
.
setDeleteTag
(
1
);
// trainTheme.setDeleteTag(1);
trainTheme
.
setTrainStatus
(
StatusEnum
.
ARCHIVE
.
id
);
trainThemeService
.
save
(
trainTheme
);
trainThemeService
.
save
(
trainTheme
);
TaskBto
taskBto
=
taskService
.
findBillIdAndBusinessTypeNotBillStatus
(
trainTheme
.
getTrainId
(),
BusinessEnum
.
TRAIN
.
id
).
get
().
parse2Bto
();
TaskBto
taskBto
=
taskService
.
findBillIdAndBusinessTypeNotBillStatus
(
trainTheme
.
getTrainId
(),
BusinessEnum
.
TRAIN
.
id
).
get
().
parse2Bto
();
taskService
.
moveToArchive
(
taskBto
);
taskService
.
moveToArchive
(
taskBto
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论