Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
c1b25f35
提交
c1b25f35
authored
6月 17, 2021
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[维修退回]修改了标题,[业务模块]新增了任务测回
上级
75778001
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
32 行增加
和
3 行删除
+32
-3
AllotBill.java
...va/com/tykj/dev/device/allot/subject/domin/AllotBill.java
+1
-1
RepairController.java
...m/tykj/dev/device/repair/controller/RepairController.java
+2
-2
TaskController.java
...a/com/tykj/dev/device/task/controller/TaskController.java
+29
-0
没有找到文件。
dev-allot/src/main/java/com/tykj/dev/device/allot/subject/domin/AllotBill.java
浏览文件 @
c1b25f35
...
...
@@ -82,7 +82,7 @@ public class AllotBill {
/**
* 配发类型
*/
@ApiModelProperty
(
value
=
"配发类型"
)
@ApiModelProperty
(
value
=
"配发类型"
,
notes
=
"1 是纵向,"
)
private
Integer
allotType
;
/**
* 签发人和发件经办人(A岗位)
...
...
dev-repair/src/main/java/com/tykj/dev/device/repair/controller/RepairController.java
浏览文件 @
c1b25f35
...
...
@@ -866,7 +866,7 @@ public class RepairController {
TaskBto
task
;
//草稿发起
if
(
repairBackBillSaveVo
.
getTaskId
()==
null
)
{
TaskBto
taskBto1
=
new
TaskBto
(
StatusEnum
.
WAIT_BACK_RECEIVE
.
id
,
repairBackBillSaveVo
.
getSendUnit
()+
"维修退回型号
:
"
+
StringSplitUtil
.
stringListToString
(
repairBackBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))+
"共有"
+
repairBackBillSaveVo
.
getSendingCount
()+
"件至"
+
repairBackBillSaveVo
.
getReceiveUnit
(),
null
,
"."
,
deviceRepairBackBillEntity1
.
getId
(),
BusinessEnum
.
REPAIR_BACK
.
id
,
userPublicService
.
findUnitIdByName
(
repairBackBill
.
getReceiveUnit
()),
1
,
null
,
userIds
);
TaskBto
taskBto1
=
new
TaskBto
(
StatusEnum
.
WAIT_BACK_RECEIVE
.
id
,
repairBackBillSaveVo
.
getSendUnit
()+
"维修退回型号"
+
StringSplitUtil
.
stringListToString
(
repairBackBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))+
"共有"
+
repairBackBillSaveVo
.
getSendingCount
()+
"件至"
+
repairBackBillSaveVo
.
getReceiveUnit
(),
null
,
"."
,
deviceRepairBackBillEntity1
.
getId
(),
BusinessEnum
.
REPAIR_BACK
.
id
,
userPublicService
.
findUnitIdByName
(
repairBackBill
.
getReceiveUnit
()),
1
,
null
,
userIds
);
task
=
taskService
.
start
(
taskBto1
);
}
else
{
...
...
@@ -874,7 +874,7 @@ public class RepairController {
taskBto1
.
setOwnUnit
(
userPublicService
.
findUnitIdByName
(
repairBackBill
.
getReceiveUnit
()));
task
=
taskService
.
moveToSpecial
(
taskBto1
,
StatusEnum
.
WAIT_BACK_RECEIVE
);
}
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_BACK_SEND_FILE
.
id
,
repairBackBillSaveVo
.
getSendUnit
()+
"维修退回型号
:
"
+
StringSplitUtil
.
stringListToString
(
repairBackBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))+
"共有"
+
repairBackBillSaveVo
.
getSendingCount
()+
"件至"
+
repairBackBillSaveVo
.
getReceiveUnit
(),
task
.
getId
(),
task
.
getNodeIdDetail
()
+
task
.
getId
()
+
"."
,
task
.
getBillId
(),
BusinessEnum
.
REPAIR_BACK
.
id
,
userPublicService
.
findUnitIdByName
(
repairBackBill
.
getSendUnit
()),
0
,
null
,
Collections
.
singletonList
(
0
));
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_BACK_SEND_FILE
.
id
,
repairBackBillSaveVo
.
getSendUnit
()+
"维修退回型号"
+
StringSplitUtil
.
stringListToString
(
repairBackBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))+
"共有"
+
repairBackBillSaveVo
.
getSendingCount
()+
"件至"
+
repairBackBillSaveVo
.
getReceiveUnit
(),
task
.
getId
(),
task
.
getNodeIdDetail
()
+
task
.
getId
()
+
"."
,
task
.
getBillId
(),
BusinessEnum
.
REPAIR_BACK
.
id
,
userPublicService
.
findUnitIdByName
(
repairBackBill
.
getSendUnit
()),
0
,
null
,
Collections
.
singletonList
(
0
));
taskService
.
start
(
taskBto2
);
//添加业务日志
List
<
FileVo
>
fileVoList
=
new
ArrayList
<>();
...
...
dev-task/src/main/java/com/tykj/dev/device/task/controller/TaskController.java
浏览文件 @
c1b25f35
...
...
@@ -2,6 +2,9 @@ package com.tykj.dev.device.task.controller;
import
com.tykj.dev.config.GlobalMap
;
import
com.tykj.dev.config.swagger.AutoDocument
;
import
com.tykj.dev.device.library.service.DeviceChangeService
;
import
com.tykj.dev.device.library.service.DeviceLibraryService
;
import
com.tykj.dev.device.library.subject.domin.DeviceLibrary
;
import
com.tykj.dev.device.task.repository.TaskDao
;
import
com.tykj.dev.device.task.service.TaskLogService
;
import
com.tykj.dev.device.task.service.TaskService
;
...
...
@@ -59,6 +62,8 @@ public class TaskController {
@Autowired
private
UserRecordDao
userRecordDao
;
@Autowired
private
DeviceLibraryService
deviceLibraryService
;
@ApiOperation
(
value
=
"业务分页查询"
,
notes
=
"可以通过这个接口分页查询业务"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/manage/summary"
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
...
...
@@ -317,6 +322,30 @@ public class TaskController {
return
ResponseEntity
.
ok
(
map
);
}
@ApiOperation
(
value
=
"任务撤回"
,
notes
=
"根据任务id撤回任务"
)
@GetMapping
(
"/revokeTask/taskId"
)
public
ResponseEntity
revokeTask
(
Integer
taskId
){
//根据任务id查询子任务 发件方是子任务 收件方是主任务
TaskBto
taskBto
=
taskService
.
get
(
taskId
);
Integer
parentTaskId
=
taskBto
.
getParentTaskId
();
//查询父任务
TaskBto
parentTask
=
taskService
.
get
(
parentTaskId
);
//父任务未被完成 可以被撤回
Integer
billId
=
taskBto
.
getBillId
();
String
title
=
taskBto
.
getTitle
();
List
<
DeviceLibrary
>
deviceLibraryList
=
deviceLibraryService
.
getListByBillId
(
billId
);
for
(
DeviceLibrary
deviceLibrary
:
deviceLibraryList
)
{
deviceLibrary
.
setLifeStatus
(
2
);
}
//将任务都完结
taskService
.
moveToArchive
(
taskBto
);
taskService
.
moveToArchive
(
parentTask
);
return
ResponseEntity
.
ok
(
title
+
"的任务撤回成功"
);
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论