Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
fa6f7c93
提交
fa6f7c93
authored
8月 06, 2021
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[多模块]修改多个代码
上级
75574eb2
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
46 行增加
和
23 行删除
+46
-23
AllotBillController.java
...tykj/dev/device/allot/controller/AllotBillController.java
+6
-6
BackController.java
.../com/tykj/dev/device/allot/controller/BackController.java
+3
-3
UnitNameVo.java
...va/com/tykj/dev/device/library/subject/vo/UnitNameVo.java
+21
-0
RepairController.java
...m/tykj/dev/device/repair/controller/RepairController.java
+12
-12
TaskDao.java
...ain/java/com/tykj/dev/device/task/repository/TaskDao.java
+1
-1
TaskServiceImpl.java
...om/tykj/dev/device/task/service/impl/TaskServiceImpl.java
+3
-1
没有找到文件。
dev-allot/src/main/java/com/tykj/dev/device/allot/controller/AllotBillController.java
浏览文件 @
fa6f7c93
...
...
@@ -217,13 +217,13 @@ public class AllotBillController {
//直接发起
if
(
allotBillSaveVo
.
getTaskId
()
==
null
)
{
// TaskBto taskBto = new TaskBto(StatusEnum.ALLOTING.id, allotBillSaveVo.getSendUnit() + "配发型号" + StringSplitUtil.stringListToString(allotBillSaveVo.getScriptSaveVos().stream().map(ScriptSaveVo::getModel).distinct().collect(Collectors.toList())) + "的装备共" + allotBillSaveVo.getAllotCount() + "件至" + allotBillSaveVo.getReceiveUnit(), null, ".", billId, 3, userPublicService.findUnitIdByName(allotBillSaveVo.getReceiveUnit()), 1, null, userIds);
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
ALLOTING
.
id
,
"["
+
allotBillSaveVo
.
getReceiveUnit
()+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件"
,
null
,
"."
,
billId
,
3
,
userPublicService
.
findUnitIdByName
(
allotBillSaveVo
.
getReceiveUnit
()),
1
,
null
,
userIds
);
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
ALLOTING
.
id
,
"["
+
allotBillSaveVo
.
getReceiveUnit
()
.
substring
(
0
,
3
)
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件"
,
null
,
"."
,
billId
,
3
,
userPublicService
.
findUnitIdByName
(
allotBillSaveVo
.
getReceiveUnit
()),
1
,
null
,
userIds
);
saveEntity
=
taskService
.
start
(
taskBto
);
}
//从草稿发起
else
{
TaskBto
taskBto
=
taskService
.
get
(
allotBillSaveVo
.
getTaskId
());
taskBto
.
setTitle
(
"["
+
allotBillSaveVo
.
getReceiveUnit
()
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件"
);
taskBto
.
setTitle
(
"["
+
allotBillSaveVo
.
getReceiveUnit
()
.
substring
(
0
,
3
)
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件"
);
//添加当前操作人为涉及人员
TaskBto
taskBto1
=
taskService
.
addInvolveUser
(
taskBto
,
userId
);
//任务所属单位改为收件单位
...
...
@@ -232,20 +232,20 @@ public class AllotBillController {
saveEntity
=
taskService
.
moveToSpecial
(
taskBto1
,
StatusEnum
.
ALLOTING
,
0
);
}
//生成发件方上传配发单的子任务
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_ALLOT_FILE
.
id
,
"["
+
allotBillSaveVo
.
getReceiveUnit
()
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件"
,
saveEntity
.
getId
(),
saveEntity
.
getNodeIdDetail
()
+
saveEntity
.
getId
()
+
"."
,
saveEntity
.
getBillId
(),
3
,
userPublicService
.
findUnitIdByName
(
allotBillEntity
.
getSendUnit
()),
0
,
null
,
Collections
.
singletonList
(
0
));
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_ALLOT_FILE
.
id
,
"["
+
allotBillSaveVo
.
getReceiveUnit
()
.
substring
(
0
,
3
)
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件"
,
saveEntity
.
getId
(),
saveEntity
.
getNodeIdDetail
()
+
saveEntity
.
getId
()
+
"."
,
saveEntity
.
getBillId
(),
3
,
userPublicService
.
findUnitIdByName
(
allotBillEntity
.
getSendUnit
()),
0
,
null
,
Collections
.
singletonList
(
0
));
taskService
.
start
(
taskBto2
);
}
//横向配发
else
{
//直接发起
if
(
allotBillSaveVo
.
getTaskId
()
==
null
)
{
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_CROSS_FILE
.
id
,
"["
+
allotBillSaveVo
.
getReceiveUnit
()
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件"
,
null
,
"."
,
billId
,
3
,
userPublicService
.
findUnitIdByName
(
allotBillEntity
.
getSendUnit
()),
1
,
"country"
,
userIds
);
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_CROSS_FILE
.
id
,
"["
+
allotBillSaveVo
.
getReceiveUnit
()
.
substring
(
0
,
3
)
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件"
,
null
,
"."
,
billId
,
3
,
userPublicService
.
findUnitIdByName
(
allotBillEntity
.
getSendUnit
()),
1
,
"country"
,
userIds
);
saveEntity
=
taskService
.
start
(
taskBto2
);
}
//从草稿发起
else
{
TaskBto
taskBto
=
taskService
.
get
(
allotBillSaveVo
.
getTaskId
());
taskBto
.
setTitle
(
"["
+
allotBillSaveVo
.
getReceiveUnit
()
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件"
);
taskBto
.
setTitle
(
"["
+
allotBillSaveVo
.
getReceiveUnit
()
.
substring
(
0
,
3
)
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件"
);
taskBto
.
setCustomInfo
(
"country"
);
//添加当前操作人为涉及人员
TaskBto
taskBto1
=
taskService
.
addInvolveUser
(
taskBto
,
userId
);
...
...
@@ -498,7 +498,7 @@ public class AllotBillController {
allotBill1
.
setSendUseraId
(
userId
);
AllotBill
allotBill
=
allotBillService
.
addEntity
(
allotBill1
);
//发起草稿任务
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
ALLOT_DRAFT
.
id
,
"["
+
allotBillSaveVo
.
getReceiveUnit
()+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件"
,
null
,
"."
,
allotBill
.
getId
(),
3
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
ALLOT_DRAFT
.
id
,
"["
+
allotBillSaveVo
.
getReceiveUnit
()
.
substring
(
0
,
3
)
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件"
,
null
,
"."
,
allotBill
.
getId
(),
3
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
TaskBto
taskBto1
=
taskService
.
start
(
taskBto
);
//返回保存成功的id
Integer
id
=
taskBto1
.
getId
();
...
...
dev-allot/src/main/java/com/tykj/dev/device/allot/controller/BackController.java
浏览文件 @
fa6f7c93
...
...
@@ -145,7 +145,7 @@ public class BackController {
//直接发起
if
(
allotBillSaveVo
.
getTaskId
()==
null
)
{
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
ALLOT_BACKING
.
id
,
"["
+
allotBillSaveVo
.
getReceiveUnit
()+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))+
"的装备共有"
+
allotBillSaveVo
.
getAllotCount
()+
"件"
,
null
,
"."
,
billId
,
22
,
userPublicService
.
findUnitIdByName
(
allotBillSaveVo
.
getReceiveUnit
()),
1
,
null
,
userIds
);
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
ALLOT_BACKING
.
id
,
"["
+
allotBillSaveVo
.
getReceiveUnit
()
.
substring
(
0
,
3
)
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))+
"的装备共有"
+
allotBillSaveVo
.
getAllotCount
()+
"件"
,
null
,
"."
,
billId
,
22
,
userPublicService
.
findUnitIdByName
(
allotBillSaveVo
.
getReceiveUnit
()),
1
,
null
,
userIds
);
saveEntity
=
taskService
.
start
(
taskBto
);
}
//从草稿发起
...
...
@@ -159,7 +159,7 @@ public class BackController {
saveEntity
=
taskService
.
moveToSpecial
(
taskBto1
,
StatusEnum
.
ALLOT_BACKING
,
0
);
}
//生成发件方上传退回单的子任务
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_BACK_FILE_2
.
id
,
allotBillSaveVo
.
getSendUnit
()+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))+
"的装备共有"
+
allotBillSaveVo
.
getAllotCount
()+
"件至"
+
allotBillSaveVo
.
getReceiveUnit
(),
saveEntity
.
getId
(),
saveEntity
.
getNodeIdDetail
()
+
saveEntity
.
getId
()
+
"."
,
saveEntity
.
getBillId
(),
22
,
userPublicService
.
findUnitIdByName
(
allotBackBill1
.
getSendUnit
()),
0
,
null
,
Collections
.
singletonList
(
0
));
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_BACK_FILE_2
.
id
,
allotBillSaveVo
.
getSendUnit
()
.
substring
(
0
,
3
)
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))+
"的装备共有"
+
allotBillSaveVo
.
getAllotCount
()+
"件至"
+
allotBillSaveVo
.
getReceiveUnit
(),
saveEntity
.
getId
(),
saveEntity
.
getNodeIdDetail
()
+
saveEntity
.
getId
()
+
"."
,
saveEntity
.
getBillId
(),
22
,
userPublicService
.
findUnitIdByName
(
allotBackBill1
.
getSendUnit
()),
0
,
null
,
Collections
.
singletonList
(
0
));
taskService
.
start
(
taskBto2
);
List
<
FileVo
>
fileVoList
=
new
ArrayList
<>();
//存装备日志
...
...
@@ -498,7 +498,7 @@ public class BackController {
allotBackBill
.
setSendUseraId
(
userId
);
AllotBackBill
allotBackBill1
=
allotBackBillService
.
addEntity
(
allotBackBill
);
//发起草稿任务
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
BACK_DRAFT
.
id
,
"["
+
allotBillSaveVo
.
getReceiveUnit
()+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))+
"的装备共有"
+
allotBillSaveVo
.
getAllotCount
()+
"件"
,
null
,
"."
,
allotBackBill1
.
getId
(),
22
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
BACK_DRAFT
.
id
,
"["
+
allotBillSaveVo
.
getReceiveUnit
()
.
substring
(
0
,
3
)
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))+
"的装备共有"
+
allotBillSaveVo
.
getAllotCount
()+
"件"
,
null
,
"."
,
allotBackBill1
.
getId
(),
22
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
TaskBto
taskBto1
=
taskService
.
start
(
taskBto
);
//返回保存成功的id
Integer
id
=
taskBto1
.
getId
();
...
...
dev-library/src/main/java/com/tykj/dev/device/library/subject/vo/UnitNameVo.java
0 → 100644
浏览文件 @
fa6f7c93
package
com
.
tykj
.
dev
.
device
.
library
.
subject
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
org.springframework.stereotype.Repository
;
/**
* @author zsp
*/
@Data
@ApiModel
(
"装备单位类"
)
@AllArgsConstructor
@NoArgsConstructor
public
class
UnitNameVo
{
@ApiModelProperty
(
"单位名称"
)
private
String
unitName
;
}
dev-repair/src/main/java/com/tykj/dev/device/repair/controller/RepairController.java
浏览文件 @
fa6f7c93
...
...
@@ -190,7 +190,7 @@ public class RepairController {
deviceRepairSendBillEntity
.
setDeviceRepairBillId
(
repairBill1
.
getId
());
deviceRepairSendBillService
.
addEntity
(
deviceRepairSendBillEntity
);
//发起任务
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
REPAIR_SEND_DRAFT
.
id
,
"["
+
repairBillSaveVo
.
getReceiveUnit
()
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
repairBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"共有"
+
repairBillSaveVo
.
getSendingCount
()
+
"件"
,
null
,
"."
,
repairBill1
.
getId
(),
5
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
REPAIR_SEND_DRAFT
.
id
,
"["
+
repairBillSaveVo
.
getReceiveUnit
()
.
substring
(
0
,
3
)
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
repairBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"共有"
+
repairBillSaveVo
.
getSendingCount
()
+
"件"
,
null
,
"."
,
repairBill1
.
getId
(),
5
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
TaskBto
taskBto1
=
taskService
.
start
(
taskBto
);
Integer
id
=
taskBto1
.
getId
();
myWebSocket
.
sendMessage1
();
...
...
@@ -405,7 +405,7 @@ public class RepairController {
deviceRepairSendBillEntity
.
setDeviceRepairBillId
(
repairBill1
.
getId
());
deviceRepairSendBillEntity
.
setAgent
(
repairBillSaveVo
.
getAgent
());
deviceRepairSendBillEntity
.
setTitle
(
"["
+
repairBillSaveVo
.
getReceiveUnit
()
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
repairBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"共有"
+
repairBillSaveVo
.
getSendingCount
()
+
"件"
);
deviceRepairSendBillEntity
.
setTitle
(
"["
+
repairBillSaveVo
.
getReceiveUnit
()
.
substring
(
0
,
3
)
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
repairBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"共有"
+
repairBillSaveVo
.
getSendingCount
()
+
"件"
);
if
(
repairBillSaveVo
.
getSendFileList
()
!=
null
&&
repairBillSaveVo
.
getSendFileList
().
size
()
>
0
)
{
deviceRepairSendBillEntity
.
setSendFiles
(
FilesUtil
.
stringFileToList
(
repairBillSaveVo
.
getSendFileList
()));
}
...
...
@@ -421,13 +421,13 @@ public class RepairController {
ownUnit
=
userUtils
.
getCurrentUnitId
();
//直接发起的
if
(
repairBillSaveVo
.
getTaskId
()
==
null
)
{
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_FILE
.
id
,
"["
+
repairBillSaveVo
.
getReceiveUnit
()
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
repairBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"共有"
+
repairBillSaveVo
.
getSendingCount
()
+
"件"
,
null
,
"."
,
repairBill1
.
getId
(),
5
,
ownUnit
,
1
,
"country"
,
userIds
);
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_FILE
.
id
,
"["
+
repairBillSaveVo
.
getReceiveUnit
()
.
substring
(
0
,
3
)
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
repairBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"共有"
+
repairBillSaveVo
.
getSendingCount
()
+
"件"
,
null
,
"."
,
repairBill1
.
getId
(),
5
,
ownUnit
,
1
,
"country"
,
userIds
);
saveEntity
=
taskService
.
start
(
taskBto
);
}
//从草稿发起的
else
{
TaskBto
taskBto1
=
taskService
.
get
(
repairBillSaveVo
.
getTaskId
());
taskBto1
.
setTitle
(
"["
+
repairBillSaveVo
.
getReceiveUnit
()
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
repairBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"共有"
+
repairBillSaveVo
.
getSendingCount
()
+
"件"
);
taskBto1
.
setTitle
(
"["
+
repairBillSaveVo
.
getReceiveUnit
()
.
substring
(
0
,
3
)
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
repairBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"共有"
+
repairBillSaveVo
.
getSendingCount
()
+
"件"
);
taskBto1
.
setCustomInfo
(
"country"
);
saveEntity
=
taskService
.
moveToSpecial
(
taskBto1
,
StatusEnum
.
WAIT_UPLOAD_FILE
);
}
...
...
@@ -435,7 +435,7 @@ public class RepairController {
ownUnit
=
userPublicService
.
findUnitIdByName
(
repairBill
.
getReceiveUnit
());
//直接发起的
if
(
repairBillSaveVo
.
getTaskId
()
==
null
)
{
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
WAIT_RECEIVE
.
id
,
"["
+
repairBillSaveVo
.
getReceiveUnit
()
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
repairBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"共有"
+
repairBillSaveVo
.
getSendingCount
()
+
"件"
,
null
,
"."
,
repairBill1
.
getId
(),
5
,
ownUnit
,
1
,
null
,
userIds
);
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
WAIT_RECEIVE
.
id
,
"["
+
repairBillSaveVo
.
getReceiveUnit
()
.
substring
(
0
,
3
)
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
repairBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"共有"
+
repairBillSaveVo
.
getSendingCount
()
+
"件"
,
null
,
"."
,
repairBill1
.
getId
(),
5
,
ownUnit
,
1
,
null
,
userIds
);
saveEntity
=
taskService
.
start
(
taskBto
);
}
//从草稿发起的
...
...
@@ -449,7 +449,7 @@ public class RepairController {
.
map
(
User:
:
getUserId
)
.
collect
(
Collectors
.
toList
()));
//生成子任务(发件方上传回执单)
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_SEND_FILE
.
id
,
"["
+
repairBillSaveVo
.
getReceiveUnit
()
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
repairBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"共有"
+
repairBillSaveVo
.
getSendingCount
()
+
"件"
,
saveEntity
.
getId
(),
saveEntity
.
getNodeIdDetail
()
+
saveEntity
.
getId
()
+
"."
,
saveEntity
.
getBillId
(),
5
,
userPublicService
.
findUnitIdByName
(
repairSendBill
.
getSendUnit
()),
0
,
null
,
Collections
.
singletonList
(
0
));
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_SEND_FILE
.
id
,
"["
+
repairBillSaveVo
.
getReceiveUnit
()
.
substring
(
0
,
3
)
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
repairBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"共有"
+
repairBillSaveVo
.
getSendingCount
()
+
"件"
,
saveEntity
.
getId
(),
saveEntity
.
getNodeIdDetail
()
+
saveEntity
.
getId
()
+
"."
,
saveEntity
.
getBillId
(),
5
,
userPublicService
.
findUnitIdByName
(
repairSendBill
.
getSendUnit
()),
0
,
null
,
Collections
.
singletonList
(
0
));
taskService
.
start
(
taskBto2
);
}
for
(
DeviceDetailVo
d
:
repairBillSaveVo
.
getDeviceList
())
{
...
...
@@ -853,7 +853,7 @@ public class RepairController {
repairBackBill1
.
setDocNum
(
s1
);
deviceRepairBackBillService
.
update
(
repairBackBill1
);
//发起任务
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
REPAIR_BACK_DRAFT
.
id
,
"["
+
repairBackBillSaveVo
.
getReceiveUnit
()
+
"]型号"
+
repairBackBillSaveVo
.
getScriptSaveVos
().
get
(
0
).
getModel
()
+
"共有"
+
repairBackBillSaveVo
.
getSendingCount
()
+
"件至"
,
null
,
"."
,
repairBackBill1
.
getId
(),
BusinessEnum
.
REPAIR_BACK
.
id
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
REPAIR_BACK_DRAFT
.
id
,
"["
+
repairBackBillSaveVo
.
getReceiveUnit
()
.
substring
(
0
,
3
)
+
"]型号"
+
repairBackBillSaveVo
.
getScriptSaveVos
().
get
(
0
).
getModel
()
+
"共有"
+
repairBackBillSaveVo
.
getSendingCount
()
+
"件至"
,
null
,
"."
,
repairBackBill1
.
getId
(),
BusinessEnum
.
REPAIR_BACK
.
id
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
TaskBto
taskBto1
=
taskService
.
start
(
taskBto
);
Integer
id
=
taskBto1
.
getId
();
myWebSocket
.
sendMessage1
();
...
...
@@ -903,7 +903,7 @@ public class RepairController {
}
repairBackBill
.
setBackStatus
(
2
);
repairBackBill
.
setSendTime
(
new
Date
());
repairBackBill
.
setTitle
(
"["
+
repairBackBillSaveVo
.
getReceiveUnit
()
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
repairBackBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"共有"
+
repairBackBillSaveVo
.
getSendingCount
()
+
"件"
);
repairBackBill
.
setTitle
(
"["
+
repairBackBillSaveVo
.
getReceiveUnit
()
.
substring
(
0
,
3
)
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
repairBackBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"共有"
+
repairBackBillSaveVo
.
getSendingCount
()
+
"件"
);
repairBackBill
.
setAgent
(
repairBackBillSaveVo
.
getAgent
());
//生成单位签章id
Long
signId2
=
snowflake
.
creatNextId
();
...
...
@@ -926,14 +926,14 @@ public class RepairController {
TaskBto
task
;
//草稿发起
if
(
repairBackBillSaveVo
.
getTaskId
()
==
null
)
{
TaskBto
taskBto1
=
new
TaskBto
(
StatusEnum
.
WAIT_BACK_RECEIVE
.
id
,
"["
+
repairBackBillSaveVo
.
getReceiveUnit
()
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
repairBackBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"共有"
+
repairBackBillSaveVo
.
getSendingCount
()
+
"件"
,
null
,
"."
,
deviceRepairBackBillEntity1
.
getId
(),
BusinessEnum
.
REPAIR_BACK
.
id
,
userPublicService
.
findUnitIdByName
(
repairBackBill
.
getReceiveUnit
()),
1
,
null
,
userIds
);
TaskBto
taskBto1
=
new
TaskBto
(
StatusEnum
.
WAIT_BACK_RECEIVE
.
id
,
"["
+
repairBackBillSaveVo
.
getReceiveUnit
()
.
substring
(
0
,
3
)
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
repairBackBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"共有"
+
repairBackBillSaveVo
.
getSendingCount
()
+
"件"
,
null
,
"."
,
deviceRepairBackBillEntity1
.
getId
(),
BusinessEnum
.
REPAIR_BACK
.
id
,
userPublicService
.
findUnitIdByName
(
repairBackBill
.
getReceiveUnit
()),
1
,
null
,
userIds
);
task
=
taskService
.
start
(
taskBto1
);
}
else
{
TaskBto
taskBto1
=
taskService
.
get
(
repairBackBillSaveVo
.
getTaskId
());
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
.
getReceiveUnit
()
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
repairBackBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"共有"
+
repairBackBillSaveVo
.
getSendingCount
()
+
"件"
,
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
.
getReceiveUnit
()
.
substring
(
0
,
3
)
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
repairBackBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"共有"
+
repairBackBillSaveVo
.
getSendingCount
()
+
"件"
,
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
<>();
...
...
@@ -1056,11 +1056,11 @@ public class RepairController {
//不缺少单据直接办结
if
(
repairReceiveVo
.
getStatus
()
==
0
)
{
userIds
.
add
(
userId
);
TaskBto
taskBto1
=
new
TaskBto
(
StatusEnum
.
END
.
id
,
"["
+
repairBackBill
.
getReceiveUnit
()
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
repairReceiveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"共有"
+
repairBackBill
.
getReceiveCount
()
+
"件"
,
null
,
"."
,
repairBackBill1
.
getId
(),
BusinessEnum
.
REPAIR_BACK
.
id
,
userUtils
.
getCurrentUnitId
(),
0
,
"country"
,
userIds
);
TaskBto
taskBto1
=
new
TaskBto
(
StatusEnum
.
END
.
id
,
"["
+
repairBackBill
.
getReceiveUnit
()
.
substring
(
0
,
3
)
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
repairReceiveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"共有"
+
repairBackBill
.
getReceiveCount
()
+
"件"
,
null
,
"."
,
repairBackBill1
.
getId
(),
BusinessEnum
.
REPAIR_BACK
.
id
,
userUtils
.
getCurrentUnitId
(),
0
,
"country"
,
userIds
);
taskBto2
=
taskService
.
start
(
taskBto1
);
}
else
{
userIds
.
add
(
0
);
TaskBto
taskBto1
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_BACK_FILE
.
id
,
"["
+
repairBackBill
.
getReceiveUnit
()
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
repairReceiveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"共有"
+
repairBackBill
.
getReceiveCount
()
+
"件"
,
null
,
"."
,
repairBackBill1
.
getId
(),
BusinessEnum
.
REPAIR_BACK
.
id
,
userUtils
.
getCurrentUnitId
(),
0
,
"country"
,
userIds
);
TaskBto
taskBto1
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_BACK_FILE
.
id
,
"["
+
repairBackBill
.
getReceiveUnit
()
.
substring
(
0
,
3
)
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
repairReceiveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"共有"
+
repairBackBill
.
getReceiveCount
()
+
"件"
,
null
,
"."
,
repairBackBill1
.
getId
(),
BusinessEnum
.
REPAIR_BACK
.
id
,
userUtils
.
getCurrentUnitId
(),
0
,
"country"
,
userIds
);
taskBto2
=
taskService
.
start
(
taskBto1
);
}
//遍历改变维修详情
...
...
dev-task/src/main/java/com/tykj/dev/device/task/repository/TaskDao.java
浏览文件 @
fa6f7c93
...
...
@@ -88,6 +88,6 @@ public interface TaskDao extends JpaRepository<Task, Integer>, JpaSpecificationE
Task
findByParentTaskId
(
Integer
parentTaskId
);
//zsp
List
<
Task
>
findAllByBusinessTypeAndOwnUnitAndCustomInfo
(
Integer
businessType
,
Integer
ownUnit
,
String
customInfo
);
List
<
Task
>
findAllByBusinessTypeAndOwnUnitAndCustomInfo
(
Integer
businessType
,
Integer
ownUnit
,
String
customInfo
);
}
dev-task/src/main/java/com/tykj/dev/device/task/service/impl/TaskServiceImpl.java
浏览文件 @
fa6f7c93
...
...
@@ -1146,7 +1146,9 @@ public class TaskServiceImpl implements TaskService {
@Override
public
List
<
Task
>
findAllByBillAndBusinessTypeAndOwnUnit
(
Integer
businessType
,
Integer
ownUnit
)
{
return
taskDao
.
findAllByBusinessTypeAndOwnUnitAndCustomInfo
(
businessType
,
ownUnit
,
null
);
List
<
Integer
>
list
=
new
ArrayList
<>(
Arrays
.
asList
(
StatusEnum
.
END
.
id
,
StatusEnum
.
ARCHIVE
.
id
,
StatusEnum
.
REVOKEALLOTTASK
.
id
));
return
taskDao
.
findAllByBusinessTypeAndOwnUnitAndCustomInfo
(
businessType
,
ownUnit
,
null
)
.
stream
().
filter
(
task
->
task
.
getTitle
().
contains
(
"系统发起"
)
&&
!
list
.
contains
(
task
.
getBillStatus
())).
collect
(
Collectors
.
toList
());
}
@Override
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论