Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
a950579d
提交
a950579d
authored
12月 01, 2021
作者:
tykj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:新增代管单位履历修正接口
上级
0ad4c514
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
34 行增加
和
0 行删除
+34
-0
DeviceCheckController.java
...device/confirmcheck/controller/DeviceCheckController.java
+27
-0
TaskLogDao.java
.../java/com/tykj/dev/device/task/repository/TaskLogDao.java
+7
-0
没有找到文件。
dev-confirmcheck/src/main/java/com/tykj/dev/device/confirmcheck/controller/DeviceCheckController.java
浏览文件 @
a950579d
...
@@ -28,11 +28,13 @@ import com.tykj.dev.device.library.service.DeviceLibraryCacheService;
...
@@ -28,11 +28,13 @@ import com.tykj.dev.device.library.service.DeviceLibraryCacheService;
import
com.tykj.dev.device.library.subject.domin.DeviceLibrary
;
import
com.tykj.dev.device.library.subject.domin.DeviceLibrary
;
import
com.tykj.dev.device.selfcheck.controller.SelfCheckController
;
import
com.tykj.dev.device.selfcheck.controller.SelfCheckController
;
import
com.tykj.dev.device.task.repository.TaskDao
;
import
com.tykj.dev.device.task.repository.TaskDao
;
import
com.tykj.dev.device.task.repository.TaskLogDao
;
import
com.tykj.dev.device.task.service.TaskLogService
;
import
com.tykj.dev.device.task.service.TaskLogService
;
import
com.tykj.dev.device.task.service.TaskService
;
import
com.tykj.dev.device.task.service.TaskService
;
import
com.tykj.dev.device.task.subject.bto.TaskBto
;
import
com.tykj.dev.device.task.subject.bto.TaskBto
;
import
com.tykj.dev.device.task.subject.bto.TaskLogBto
;
import
com.tykj.dev.device.task.subject.bto.TaskLogBto
;
import
com.tykj.dev.device.task.subject.domin.Task
;
import
com.tykj.dev.device.task.subject.domin.Task
;
import
com.tykj.dev.device.task.subject.domin.TaskLog
;
import
com.tykj.dev.device.user.base.enums.AuExample
;
import
com.tykj.dev.device.user.base.enums.AuExample
;
import
com.tykj.dev.device.user.base.ret.UserShenRe
;
import
com.tykj.dev.device.user.base.ret.UserShenRe
;
import
com.tykj.dev.device.user.cache.AreaCache
;
import
com.tykj.dev.device.user.cache.AreaCache
;
...
@@ -147,6 +149,31 @@ public class DeviceCheckController {
...
@@ -147,6 +149,31 @@ public class DeviceCheckController {
private
UnitsService
unitsService
;
private
UnitsService
unitsService
;
@Autowired
@Autowired
private
CheckUnitService
checkUnitService
;
private
CheckUnitService
checkUnitService
;
@Autowired
private
TaskLogDao
taskLogDao
;
@GetMapping
(
"/escow/taskLog"
)
@ApiOperation
(
value
=
"添加阅知信息:终止检查/核查任务"
)
public
ResponseEntity
fixEscowTaskLog
(
@RequestParam
Integer
detailId
)
{
Task
task
=
taskRepo
.
findByBillIdAndBusinessType
(
detailId
,
8
).
orElseThrow
(()
->
new
ApiException
(
"无法找到该任务,deatil:"
+
detailId
));
List
<
TaskLog
>
logs
=
taskLogDao
.
findAllByTaskId
(
task
.
getId
());
for
(
TaskLog
taskLog
:
logs
)
{
if
(
taskLog
.
getRemark
().
contains
(
"专管员A操作成功,等待专管员B操作"
))
{
taskLog
.
setDeleteTag
(
1
);
taskLogDao
.
save
(
taskLog
);
}
if
(
taskLog
.
getRemark
().
contains
(
"专管员B处理完毕,任务结束"
))
{
taskLog
.
setRemark
(
"任务结束"
);
taskLogDao
.
save
(
taskLog
);
}
}
return
ResponseEntity
.
ok
(
"修改detail log"
);
}
@GetMapping
(
"/msg"
)
@GetMapping
(
"/msg"
)
@ApiOperation
(
value
=
"添加阅知信息:终止检查/核查任务"
)
@ApiOperation
(
value
=
"添加阅知信息:终止检查/核查任务"
)
...
...
dev-task/src/main/java/com/tykj/dev/device/task/repository/TaskLogDao.java
浏览文件 @
a950579d
...
@@ -17,4 +17,11 @@ public interface TaskLogDao extends JpaRepository<TaskLog, Integer>, JpaSpecific
...
@@ -17,4 +17,11 @@ public interface TaskLogDao extends JpaRepository<TaskLog, Integer>, JpaSpecific
*/
*/
List
<
TaskLog
>
getAllByTaskId
(
Integer
taskId
);
List
<
TaskLog
>
getAllByTaskId
(
Integer
taskId
);
/**
* 根据id查找
* @param taskId task id
* @return rs
*/
List
<
TaskLog
>
findAllByTaskId
(
Integer
taskId
);
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论